10 Feb 13:32
[PATCH] Allow multi-pass encoding with libx264 for multi-video output files
Tudor SUCIU <tudor.suciu <at> gmail.com>
2012-02-10 12:32:42 GMT
2012-02-10 12:32:42 GMT
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.
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 --- ffmpeg.c | 2 +- libavcodec/libx264.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ffmpeg.c b/ffmpeg.c index a794dd3..cb5caa8 100644 --- a/ffmpeg.c +++ b/ffmpeg.c(Continue reading)
RSS Feed