[MPlayer-dev-eng] [PATCH] Fix for fix for mpeg2 A/V sync bug.

Dan Oscarsson Dan.Oscarsson at tieto.com
Sun Oct 23 14:53:36 CEST 2011


sön 2011-10-23 klockan 14:34 +0200 skrev Reimar Döffinger:
> On Sat, Oct 22, 2011 at 06:25:23PM +0200, Dan Oscarsson wrote:
> > Recently I sent an updated mplayer with my patches added to a friend who
> > plays a lot of mpeg-ts files gotten from DVB-t TV streams. And they no
> > longer played correctly. I checked and now I remember that about a year
> > ago I had a patch for this, but we never included my patch instead the
> > above patch we removed, fixed it.
> > 
> > The problem is that when playing a mpeg-ts file with h264 in, pts values
> > are not reordered as demux_ts do not set correct-pts. This results in
> > pts values not being in order.
> 
> Which should not cause any issues without -correct-pts, that's the
> whole point of it.

When they are not in order it looks like:

A:91864.773438 V:91864.751222 A-V:  0.019 ct: -2.925 856/856 
A:91864.804688 V:91864.911222 A-V: -0.103 ct: -2.929 857/857 
A:91864.851562 V:91864.831222 A-V:  0.021 ct: -2.927 858/858 
A:91864.890625 V:91864.871222 A-V:  0.019 ct: -2.925 859/859 
A:91864.929688 V:91865.031222 A-V: -0.103 ct: -2.929 860/860 
A:91864.968750 V:91864.951222 A-V:  0.021 ct: -2.927 861/861 

mplayer all the time thinks a-v is out of sync and corrects all the time.
In reality the video frames are in correct order but have incorrect pts values.

    Dan




More information about the MPlayer-dev-eng mailing list