On Tue, Apr 16, 2002 at 11:00:58AM -0300, Bruno Muller Junior wrote:
Hi,
> When I read avi files, the frame rate is not respected. That is, it
> reads as fast as possible and do not obey the frame rate. Is there
> some built-in way to force avifile to read the frames in some
> predefined rate? That is, if the frame rate is X frames/sec (or if
> I chabge the frame rate to X frames/sec), then ReadFrame will
> return to my application X frames per second.
>
> I guess that the alternative will be to use the same method that is
> presented in aviplay, is this correct?
Reading frames for the stream is completely different thing then
synchronization with time - stream reader doens't know anything about
real time flow.
If you want to use synchronized playback - you should take a look
at aviplay class which provides playback synchronized with realtime.
(though you currently can't select different speed)
Time synchronization is relatively complicated thing and will not
be a part of stream reading class (e.g. you might want to drop frame,
seeking, skiping without waiting and many other thing)
So yes - it's correct you should use something like aviplay class does
(eventually you may propose some updates to this class - i.e.
if you would like to see implemented support for some new command
(check the list))
--
.''`. Which fundamental human right do you want to give up today?
: :' : Debian GNU/Linux maintainer - www.debian.{org,cz}
`. `' Zdenek Kabelac kabi@{debian.org, users.sf.net, fi.muni.cz}
`- When in doubt, just blame the Euro. :)
_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile