[FFmpeg-devel] [PATCH] Allow multi-pass encoding with libx264 for multi-video output files
Michael Niedermayer
michaelni at gmx.at
Sat Feb 11 04:40:50 CET 2012
On Fri, Feb 10, 2012 at 01:32:42PM +0100, Tudor SUCIU wrote:
> 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.
> ffmpeg.c | 2 +-
> libavcodec/libx264.c | 3 ++-
> 2 files changed, 3 insertions(+), 2 deletions(-)
> 3bbe2d00be426de1f39088dee710b54dfd95046e 0002-libx264-multiple-pass-for-multi-video.patch
> From 8671583f416a2e5abd04daecb79a8f62d189db06 Mon Sep 17 00:00:00 2001
> From: Tudor Suciu <tudor.suciu at gmail.com>
> Date: Fri, 10 Feb 2012 13:18:43 +0100
> Subject: [PATCH 2/2] libx264 multiple pass for multi-video
better patch posted
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Those who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120211/de9cbca7/attachment.asc>
More information about the ffmpeg-devel
mailing list