[XviD-devel] Setting Target Avg. Quant and Interval around it

Christoph Lampert xvid-devel@xvid.org
Sat, 18 Jan 2003 17:32:55 +0100 (CET)


Hi,

I tried to read the source, but there's way to much mathematics in it for
me. Also, I only use the 2pass-lib for transcode, not the VfW, but maybe
the method is similar: 

Is it possible to limit the allowed range of quantizers to a certain 
interval around the average, e.g. [Q-2,Q+2] for a mean quant of Q which is
calculated from 1st pass? 

I would add the checks it myself, but I didn't find the calculation of an
"expected average quant" for the whole movie. Maybe this isn't needed in
current two-pass, but since one uses a linear model anyway 

( 2ndpass-quant = 1stpass-quant * target-framesize / 1stpass-framesize)

I thought the same was maybe done for the whole movie. 

Anyway, I would like to have a quantizer distribution with given (smaller)
support (around a dynamically calculated mean value)... is that
adjustable? 

gruel