Re: why I can't get the same frame numbers?

suxen_drol <[email protected]> Thu, 26 Jun 2003 20:07:18 +1000
Newsgroups gmane.comp.video.xvid.user
Message-ID <[email protected]>
On Tue, 24 Jun 2003 14:26:12 +0800 zzw6789 <[email protected]> wrote:
>  hi, I modify the example code from xvidcore 0.9.1, I use it to read
> video images stored in file, then encode 1000 frames and write every
> frame to encode file, then I read from encode file, decode frames and
> write to decode file, I find it only decode 945 frames, the number of
> decode frame is less than the number of encode frames, where is the
> other frames. why!
> any of you suggestion is appreciate! thanks!

if 1000 frames are in the bitstream, the decoder should decode all 1000
of them.

firstly, you should attempt to find the missing frames: are they really
being encoded, or is the decoder ignoring them.

the easiest way to do this, is to add some print statement in your
encoding program, to display the frame length (bytes) for each call to
XVID_ENC_ENCODE. do the same to the decoding program, but display the
frame lengths that are decoded by XVID_DEC_DECODE.
run your encoder and decoder, and then compare the output.

-- pete