Tudor SUCIU | 10 Feb 13:32
Picon

[PATCH] Allow multi-pass encoding with libx264 for multi-video output files

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)

Michael Niedermayer | 11 Feb 04:40
Picon
Picon

Re: [PATCH] Allow multi-pass encoding with libx264 for multi-video output files

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

[...]

--

-- 
(Continue reading)


Gmane