[MPlayer-users] Re: BUG: av sync problem

Dirk Meyer dmeyer at tzi.de
Sat Oct 4 16:47:43 CEST 2003


ase00 at speedy.co.il wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> When playing the file angel_av_sync_problem.avi (uploaded to
>  ftp://mplayerhq.hu/MPlayer/incoming/), the audio is not synchronized
> with the video.
> I've tried using the relevant flags, but they do not help (except -delay).
> Running mplayer with '-delay -0.7' makes the audio synchronized.
> This problem occurs only on this file.
> Moreover, the file plays OK when using aviplay (aviflile).

I don't have that file, but have one with a similar problem. It looks
to me that mplayer doesn't calc the audio delay from the avi
header. The mplayer code is very complex, but maybe I can help by
sending you the calculation: in the strh struct from the audio stream:

delay in sec: dwStart / ( dwRate / dwScale )

When I add this value as negative one with -delay to mplayer,
everything is ok.


Dischi

-- 
When someone says, 'do you want my opinion?' - have you noticed that
it's always a negative one.



More information about the MPlayer-users mailing list