Hi,

I use avifile to play some video in my application, but I don't manage 
to play them at the right speed ... For example, I have a video of 1200 
frames, whose length is about 100 seconds, but when I play it, the video 
is played entirely in about 20 seconds.


I play the stream in a very basic way :
/**********************************************/
        renderer = ... ;

        while (!stream->Eof() && (frames < nb_frames))
        {
            stream->ReadFrame(true);
            CImage* im = stream->GetFrame();
            if (im)
            {
                if (renderer)
                {
                    renderer->Draw(im);
                    renderer->Sync();
                }
                im->Release();
            }
            frames++;
        }
/**********************************************/

Do I have to check myself the frame rate while the video is decoded ? 
And how could I do that (If there's no other way) ?

Cheers.

Adrien.



_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to