[MPlayer-dev-eng] [PATCH] A/V sync with mpeg pts wraparound

Zoltan Hidvegi mplayer at hzoli.2y.net
Mon May 17 22:27:35 CEST 2004


> is it better to use -mc 0 or -mc some_large_value when the demuxer gives 
> correct
> PTS that wrap around (mpeg  ps/ts ) ?

Are you talking about the mpeg timestamp which wraps back to 0?  The
current mplayer/mencoder will make a mess in that case unless you use
-mc 0.  The problem is that the audio and video pts will not wrap at
the same time, so there is an interval when mencoder thinks that the
a/v is way off sync.  With -mc 0 it does not matter.  However, try
this patch, it should fix it for nonzero -mc.  It only fixes mencoder.

Zoli
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pts-wrap.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040517/fbdeece1/attachment.asc>


More information about the MPlayer-dev-eng mailing list