![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Jul 2016
Location: United Kingdom
Posts: 73
|
![]() Hi everyone,
I'm trying to add a 16:9 intro to videos for my mechbunny site using ffmpeg. So far i have the following filter which i found online: Code:
ffmpeg -i intro.mp4 -i input.mp4 -filter_complex "[0][1]scale2ref=iw:ih[intro][main];[intro]drawbox=t=fill[intro-bg];[0][intro-bg]scale2ref=iw:ih:force_original_aspect_ratio=decrease:flags=spline[intro][intro-bg];[intro-bg][intro]overlay=x='(W-w)/2':y='(H-h)/2'[intro-resized]; [intro-resized][0:a][main][1:a]concat=n=2:v=1:a=1:unsafe=1[v][a]" -map '[v]' -map '[a]' -movflags +faststart -acodec aac -vcodec h264_nvenc -cbr true -b:v 1000k -bt 1000k -y -2pass true -threads 32 -profile:v high -r 30 -preset medium output.mp4 Does anyone know how i can adjust the filter to add black bars down the side of the video to keep it the correct aspect ratio? I'm struggling to get my head around the filters. Thanks in advance
__________________
Highest paying InPage ads: Clickadilla |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,117
|
See if this might be of use to answer your issue:
https://stackoverflow.com/questions/...h-aspect-ratio Looks like they have a few lines of smaller code snippets posted that might do what you want ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
bored
Industry Role:
Join Date: Aug 2003
Location: Metaverse
Posts: 4,675
|
mechbunny doesnt have video conversion?
![]() you are looking for letterboxing.. https://www.google.com/search?q=lett...tterbox+ffmpeg ![]() #
__________________
# ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jul 2016
Location: United Kingdom
Posts: 73
|
It does, it has the option to enter your own ffmpeg command.
Thank you for the help guys but i've given up ![]()
__________________
Highest paying InPage ads: Clickadilla |
![]() |
![]() ![]() ![]() ![]() ![]() |