[x264-devel] --direct auto and multipass encoding

Gabriel Bouvigne gabriel.bouvigne at joost.com
Mon Sep 24 16:13:01 CEST 2007


I noticed that when using --direct auto, resulting stream from a 2 pass 
encoding was different when using --pass 2 and --pass 3.

Behaviour:
more skipped MB within B frames when using --pass 3 compared to using 
--pass 2, and higher quality when using --pass 2 compared to --pass 3.

I think that it might be related to analyse.c, x264_macroblock_analyse.
Near line 2330, there is this section:

         if( h->mb.b_direct_auto_write )
         {
             /* direct=auto heuristic: prefer whichever mode allows more 
Skip macroblocks */
             for( i = 0; i < 2; i++ )


This section affects analysis.b_direct_available and b_skip in a 
different way when x264 is reading and writing stats file compared to 
when it's only reading it.


--
Gabriel



More information about the x264-devel mailing list