[MPlayer-G2-dev] Darwin port
Arpi
arpi at thot.banki.hu
Sun May 11 16:46:40 CEST 2003
Hi,
> >
> > it should return the timing error, not the actual time spent in sleep.
> > so, in ideal case (very accurate timer) it should return 0.
> > you should try sth like return time_frame-(end-start);
> >
> > Btw how accurate is that CFRunLoopRunInMode() ? <+-1ms?
>
> In my tests, it's almost always ~0,3ms off, but when I use it for
> timing, A-V drifts up to a second. nanosleep seems quite reliable, and
> it's mostly 0,1ms and less off. I now use CFRunLoop for "long"
> intervals and nanosleep for short ones.
>
> If a long interval is >0,005, I get drift up to ~0,3s, if it's 0,01,
> drift is up to ~0,1s. Disk access, swap, etc. can throw it up to a
hmm. you should test it by printing the return value of sleep_accurate(),
it should be close to zero. it should be never less than -0.005 and more
than 0.010, but in ideal case it's max +-0.001 off.
> second off. How much A-V drift is acceptable?
zero
but never moe than half frametime, ie around 0.020 for a 25fps video
btw that alice dj clip isn't too good for testing, as it have wma audio,
which's a-v sycn is somewhat broken with the ddwma decoder (and g2 doesn't
supports DLL decoder yet, but it would be useless on macosx anyway)
try some mpegs instead
A'rpi / Astral & ESP-team
--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
More information about the MPlayer-G2-dev
mailing list