[MPlayer-dev-eng] [PATCH] Detect and compensate pts reset in MPEG streams

Nicolas George nicolas.george at normalesup.org
Wed Oct 20 12:12:09 CEST 2010


Le quartidi 14 vendémiaire, an CCXIX, Nicolas George a écrit :
> The attached patch adds an option to detect and compensate pts resets often
> founds in MPEG streams from DVDs.
> 
> At the very least, it allowed me to solve an A-V desync problem, see my
> message in mplayer-users yesterday.

Hi. I'm back for this patch. In the last two weeks, I'v been trying to
solve the A-V desync problem I was having (extra audio at the end of a
chapter => need for a high -mc value; timestamp reset at the start of the
next chapter => -mc goes crazy compensating), but to no avail:

- -demuxer lavf has the same problem, _and_ it does not see the subtitles,
  as the appear only in the second chapter.

- Remuxing the file with ffmpeg removes the timestamp reset, but just as
  above, ffmpeg does not see the subtitles, even with a huge probesize.

- Encoding the chapters separately loses the extra audio at the end of the
  first one.

I know that this implementation of -detect-pts-reset is a hack, but it
(1) is clearly documented as experimental, (2) does not change anything
unless explicitly activated and (3) actually solves a very real problem.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20101020/38be0d44/attachment.pgp>


More information about the MPlayer-dev-eng mailing list