Log in

View Full Version : About avi files encoded with Xvid


MoonWalker
3rd October 2002, 15:40
Does XviD store quant(I/P, quantizer etc) information on the avi(just as DivX was doing)?...If so which bytes??

Thanks,
MoonWalker

-h
3rd October 2002, 16:27
It does indeed, but the information is stored inside a VOP header which is not always at the same offset. The VOP header also is of variable length from frame to frame.

Look at XviD's xvidcore/src/bitstream/bitstream.c file, there is a horrible great BitstreamReadHeaders() function which you can use to extract the quantizer (the line "if ((*quant = BitstreamGetBits(bs, dec->quant_bits)) < 1) // vop_quant").

-h