[MPlayer-users] AV-sync, and AV-delay

Lluís Batlle i Rossell viric at vicerveza.homeunix.net
Sat Mar 26 00:01:38 CET 2005


Hi...

I've just came into this list because I've never seen the AV-delay working fine
(at least, that set by keys).

In the latest versions, when I set with keys "+-" the AVdelay, after some
seconds, the delay was 'corrected', and set to '0' again (as seen in the movie,
not as set in the variable audio_delay).

So, I took a look at the code of "mplayer.c". And I changed some lines, which I
don't understand completely ;)

The first one: when seeking is done, sed "audio_delay" to 0. The seeking is
always done without caring about Audio-Video-delay.

The second and last one: also in 'mplayer.c', line 2347 of version 1.0pre5
- I removed the line with text:
  if(!frame_time_remaining){ sh_audio->delay+=x; c_total+=x;}
  which caused the tendency to zero-av-delay in playing (ignoring of
  audio_delay)


Maybe some developer can say something about that... But now, when I use the
keys "+" and "-" of the keypad, the delay works until seeking :) And after
seeking, also works, because it's set to 0.

I've tried it mostly with matroska files, and also with an AVI file.

Thanks for the player :)))

-- 
In its laws, society makes its mightiest collective effort to impose
predictability upon human behavior.
  - S. I. Hayakawa, "Language in thought and action"




More information about the MPlayer-users mailing list