[FFmpeg-user] Simultaneous two-pass?

Jesse Gordon tojesseg at gmail.com
Thu Sep 27 09:13:24 CEST 2012


Is it possible to run both passes at the same time -- for example pipe 
the log output of pass 1 to the log input of pass 2 so that as the log 
is generated pass 2 can start recoding?

I tried using a named pipe for the log file and the pass2 process dies 
saying "bad address" as soon as the pass1 process writes to the pipe.

I glanced over the source code in ffmpeg.c and it looks like pass2 tries 
to read in the whole log file before even starting encoding -- so maybe 
what I want to do just won't work.

Does pass 2 need the log data for the last frame of pass 1 before even 
starting?

(I have more then one CPU so running both passes somewhat concurrently 
would be meaningful.)

Thanks very much,

Jesse Gordon


More information about the ffmpeg-user mailing list