[XviD-devel] Flushing frames oddity ?

Edouard Gomez ed.gomez at free.fr
Sun Sep 5 01:02:26 CEST 2004


Hello,

I'm currently trying to complete the mencoder module for full
bvop support, that means flushing the last frames :-)

The problem i'm facing is that, even if i patch mencoder.c to
allow muxing during uninit, xvidcore doesn't flush as many
frames as i would like.

With packed mode, even if i see one buffered frame at the
encoding beginning, then when flushing nothing comes out at
the end of the encode:
xvid: buffering frame
Skipping frame! <-- dunno what that means
Skipping frame! <-- same
xvid: flushed all frames (End of stream reached)

When using no packed mode i can get a frame out:
xvid: buffering frame
Skipping frame!
Skipping frame!
xvid: muxing buffered frame
xvid: flushed all frames (End of stream reached)

The twopass file has:
$ grep -v "^$" underworld-trailer-c026193d361978eab559429164b0ddae.stats |
  grep -v ".*#" | wc -l
3536 <-- that stats for no packed

$ grep -v "^$" underworld-trailer-960ab3711c3046eafb0350a82d32b4ae.stats |
  grep -v ".*#" | wc -l
3535 <-- that stats for packed

So the same "eat one" frame behavior exists for both passes.

Is that expected behavior that packed munges always one frame
(isn't returned by flush loop) and that two frames are always
missing ?

-- 
Edouard Gomez


More information about the XviD-devel mailing list