[Mplayer-users] Fwd: argh! i've found the bug in audio sync

Arpi arpi at thot.banki.hu
Sun May 27 02:20:11 CEST 2001


So, all you with AVI seeking/sync/ni problems please check current CVS version!

And always use the -bps option!!! (-nobps (default) sync method not yet

For normal files:
mplayer -bps file.avi
For non-interleaved or badly interleaved files (Too many packets... error):
mplayer -bps -ni file.avi

seeking should work well, even with many fast-forwarding!

if it sill desync, then check the last number on the status line, if it
increasing (isn't constant 0) then your CPU isn't powerfull enough :(

--------- Forwarded message ---------
From: Arpi <arpi at thot.banki.hu>
To: mplayer-dev-eng at lists.sourceforge.net
Subject: [Mplayer-dev-eng] argh! i've found the bug in audio sync


I found the bug. it's the _float_data_type- itself!!!

I get different results for a and b if they are float, and equal with double:
for(i=1;i<30000;i++) a+=1.0f/fps;

This was the reason of the -bps audio desync problems!

Now AVI with -bps should be ok, even with seeking!

-nobps (default) is still broken, need some more coding to fix it.

A'rpi / Astral & ESP-team

mailto:arpi at thot.banki.hu

Mplayer-dev-eng mailing list
Mplayer-dev-eng at lists.sourceforge.net

Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net

More information about the MPlayer-users mailing list