[FFmpeg-user] Usages about multi outputs

xiaoyaobms at 163.com xiaoyaobms at 163.com
Thu Jan 15 11:06:26 CET 2015


Thanks Moritz,

Perfect! It works with small change  from -map "0:a" to -map 0:a.
Thanks a lot! 

 
From: Moritz Barsnick
Date: 2015-01-15 17:53
To: FFmpeg user discussions
Subject: Re: [FFmpeg-user] Usages about multi outputs
On Thu, Jan 15, 2015 at 10:27:02 +0100, Moritz Barsnick wrote:
> On Thu, Jan 15, 2015 at 16:35:20 +0800, xiaoyaobms at 163.com wrote:
> > ./ffmpeg -i input.mp4 -i logo.png -filter_complex "yadif=deint=1,subtitles=subtitle.ass,delogo=x=60:y=60:w=100:h=77:band=10,overlay=10:10,split=2[a][b]" -map "[a]" -map 0:a -filter_complex scale=640:-1 -pass 1 -vcodec libx264 -r 25 -b:v 230k -profile:v high -c:a libfdk_aac -b:a 64k -ar 44100 -profile:a aac_he output1.mp4 -map "[b]" -map 0:a -filter_complex scale=960:-1 -pass 1 -vcodec libx264 -r 25 -b:v 550k -profile:v high -c:a libfdk_aac -b:a 64k -ar 44100 -profile:a aac_he output2.mp4
 
Here, I have tried to combine those three filters for you properly.
Just guessing, but this should work:
 
$   ./ffmpeg -i input.mp4 -i logo.png -filter_complex "yadif=deint=1,subtitles=subtitle.ass,delogo=x=60:y=60:w=100:h=77:band=10,overlay=10:10,split=2[a][b]; [a]scale=640:-1[a2]; [b]scale=960:-1[b2]" -map "[a2]" -map "[0:a]" -pass 1 -vcodec libx264 -r 25 -b:v 230k -profile:v high -c:a libfdk_aac -b:a 64k -ar 44100 -profile:a aac_he output1.mp4 -map "[b2]" -map "0:a" -pass 1 -vcodec libx264 -r 25 -b:v 550k -profile:v high -c:a libfdk_aac -b:a 64k -ar 44100 -profile:a aac_he output2.mp4
 
Moritz
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1518 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20150115/a464ead7/attachment.gif>


More information about the ffmpeg-user mailing list