[MPlayer-dev-eng] [PATCH] changing fps + audiofile with ogm bug

Attila Kinali attila at kinali.ch
Sun Sep 19 08:49:15 CEST 2004


On Tue, Jul 27, 2004 at 03:49:05PM +0200, Denes Sexty wrote:
> 
>  I tried to watch a movie with dubbed sound form a separate file, which
> would need the movie to have other fps: 25 instead of 23.976
>  However, if i use
> mplayer movie.avi -audiofile dub.mp3 -fps 25
>  this would still play the movie with fps=23.976, because in the main
>  A-V sync loop v_pts is still framenumber/23.976, so mplayer tries
> to play 25 frames, but A-V sync pulls it back to 23.976
>  ( v_pts comes from the demuxer, which gets it form the file itself. (Am I
> right here?))
> 
>  So i did a little patch which adds a new variable: old_fps
> and in the A-V sync module corrects v_pts:
>   v_pts*=old_fps/force_fps;
> 
>  This patch is not enough to solve the problem, because if the fps is
> changed, seeking should be modified too.
> 
> + BUG
> when using
> mplayer movie.ogm -audiofile dub.mp3
> after seeking the sound starts from the beginning, not the position where
> the video seeked.

Any demuxer / a/v sync specialist out there who could check this patch ?


			Attila Kinali




More information about the MPlayer-dev-eng mailing list