[FFmpeg-devel] [PATCH] Allow multi-pass encoding with libx264 for multi-video output files
Tudor SUCIU
tudor.suciu at gmail.com
Fri Feb 10 13:32:42 CET 2012
After this patch a 2-pass encoding is possible.
/usr/local/bin/ffmpeg -i test.mov -map 0:0 -map 0:0 -map 0:1 -acodec
libfaac -ab 128000 -ac 2 -ar 48000 -vcodec libx264 -vcodec libx264
-pass 1 -b:v:0 300k -b:v:1 900k -stats:v:1 video2 -stats:v:0 video1 -t
10 -y x.ts
/usr/local/bin/ffmpeg -i test.mov -map 0:0 -map 0:0 -map 0:1 -acodec
libfaac -ab 128000 -ac 2 -ar 48000 -vcodec libx264 -vcodec libx264
-pass 2 -b:v:0 300k -b:v:1 900k -stats:v:1 video2 -stats:v:0 video1 -t
10 -y x.ts
The initial bug in ffmpeg is that -passlogfile is a global option, hot
a per stream as needed here.
It would be helpful if someone can point me the way for a permanent solution.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-libx264-multiple-pass-for-multi-video.patch
Type: text/x-patch
Size: 2586 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120210/3d067870/attachment.bin>
More information about the ffmpeg-devel
mailing list