[Ffmpeg-devel] b_quant_factor and B frames

Panagiotis Issaris takis.issaris
Fri Sep 15 16:36:47 CEST 2006


Hi,

In my removal of additional option from the OptionDef array, I noticed
that the regression tests fail if I remove the b_quant_factor and use
the AVOption one instead.

While investigating why this was/is happening, I noticed that b_quant_factor
always turned up as being 2.0 in my tracings.

Now, apparently, in ffmpeg.c, the following lines occur:
  3044         if (b_frames) {
  3045             video_enc->max_b_frames = b_frames;
  3046             video_enc->b_quant_factor = 2.0;
  3047         }

I had the impression b_quant_factor was only relevant when B-frames were
used. If so, then it seems weird to me that it is always fixed at 2.0
while there exists a commandline option to alter it.

Any hints?

With friendly regards,
Takis




More information about the ffmpeg-devel mailing list