[XviD-devel] [QUESTION] how 2pass2 plugin work?

suxen_drol suxen_drol at hotmail.com
Wed Apr 9 18:34:33 CEST 2003


On Wed, 9 Apr 2003 01:11:48 +0200 Edouard Gomez <ed.gomez at free.fr> wrote:
> My second test was with 2 max_bframes. First pass goes ok. But when i
> perform the second pass, i get this:
> 
> $ ./xvid_encraw -pass2 stats.log 512000 -i
> /mnt/vrac/xvid-test/sequences/foreman-352x288.yuv -w 352 -h 288 -max_bframes 2 
> xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
> undersize warning
> middle frame size for asymmetric curve compression: -2147483648
> middle frame size for asymmetric curve compression: -2147483648
> middle frame size for asymmetric curve compression: -2147483648
>     0: key=1, time=    14, length=  27611
> Floating point exception
> 
> If i do  the same test with only ipframes, and  then force an "undersize
> warning"  setting the  bitrate to  a very  low value  (let's  say 512b/s
> instead of 512kb/s) then it's just the same: Floating point exception. 
> 
> I'll track that tomorrow, but the  first item on the ToDo list has still
> to be achieved.

-2147483648 == -(2^31), which suggests theres an a signed/unsigned
division problem. the code is mostly identical to the original 2pass and
your unix-compatibile lib, with some major cleanups.

-- pete




More information about the XviD-devel mailing list