Hi all,
I would like to combine two kind of filters and I do not know how.
It's about add black bands for those videos who do not fit a full HD resolution (in this case) and adding subtitles from a stream source...
The filters are as follow ...
Black bands ...
DVB Subtitles coming from a stream ...Code:-filter:v 'scale=1920:-1,pad=1920:1080:(ow-iw)/2:(oh-ih)/2'
I hope somebody might help.Code:-filter_complex '[0:v][0:s:1]overlay[v]' -map [v] -map 0:a
Thank you very much in advance indeed!!
Kindest regards,
Mapg
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 5 of 5
Thread
-
Last edited by mapg; 25th Jul 2015 at 15:41.
-
have you tried simply calling one after the other?
Code:-filter:v 'scale=1920:-1,pad=1920:1080:(ow-iw)/2:(oh-ih)/2' -filter_complex '[0:v][0:s:1]overlay[v]' -map [v] -map 0:a
users currently on my ignore list: deadrats, Stears555 -
Selur,
I get the following error ...
Filtergraph 'scale=1920:-1,pad=1920:1080:(ow-iw)/2:(oh-ih)/2' was specified through the -vf/-af/-filter option for output stream 0:0, which is fed from a complex filtergraph.
-vf/-af/-filter and -filter_complex cannot be used together for the same stream.
Best regards,
Mapg -
Then don't use overlay through filter_complex, but also through vf or move everything into a filter_complex call.
something like:
Code:[0:v]scale=1920:-1[scaled];[scaled]pad=1920:1080:(ow-iw)/2:(oh-ih)/2[video];[video][0:s:1]overlay[v];
'[0:v]scale=1920:-1[scaled];' should take [0:v] = the first video track from source 1, scale it and provide the output for later filter under the variable 'scaled'
'[scaled]pad=1920:1080:(ow-iw)/2:(oh-ih)/2[video];' should take the content under 'scaled', evenly add padding to it to reach 1920x1080 and provide the output under for later filters under the variable 'video'
'[video][0:s:1]overlay[v]', should take 'video' and the subtitle stream number 1, overlay the later over the first and then output the combination under 'v'users currently on my ignore list: deadrats, Stears555 -
Hi Selur,
Thank you very much for your help.
I did as follow and seems that ffmpeg is passing the commands without reporting errors. I couldn't test it in a real scenario yet
Code:-filter_complex '[0:v]scale=1920:-1,pad=1920:1080:(ow-iw)/2:(oh-ih)/2[video];[video][0:s:1]overlay[v]' -map [v] -map 0:a
Best,
Mapg
Similar Threads
-
[ffmpeg] Right way to combine PNG + MP3 into an MP4 file?
By yetanotherlogin in forum EditingReplies: 3Last Post: 8th Dec 2013, 04:49 -
DVB to DVD with DVB subtitles and chapters
By havema-1 in forum MacReplies: 1Last Post: 19th Feb 2013, 12:37 -
Errors in ffmpeg while trying to encode dvb-stream
By NGage^ in forum DVB / IPTVReplies: 1Last Post: 13th Oct 2012, 02:28 -
ffmpeg missing filters :(
By hotnoob in forum Video ConversionReplies: 1Last Post: 26th Aug 2011, 04:48 -
When 16:9 isnt 16:9. Black bands top and bottom.
By agoldfish in forum Newbie / General discussionsReplies: 2Last Post: 17th Mar 2011, 11:18