[MPlayer-dev-eng] Updated video pts handling patch

Uoti Urpala uoti.urpala at pp1.inet.fi
Wed Jul 5 16:44:37 CEST 2006


On Mon, 2006-07-03 at 13:47 +0300, Uoti Urpala wrote:
> Filters can now insert new frames properly. I updated vf_tfields and

I think I might commit the current version even though it's not polished
code and not useful for most "normal" users yet. It shouldn't break
anything as long as the -correct-pts switch is not used and I think the
code isn't too ugly even though it'll need to be improved later.

The -correct-pts mode does work for at least the following cases:
- Gives correct timestamps for mkv and probably some other containers (I
haven't checked the demuxer behaviors to be sure about which others).
Currently mkv video timestamps are off by as many video frames as there
is decoder lag. This affects both audio sync and subtitles, most notably
subtitles timed to scene changes using the SSA patch (the timing of the
default subtitle code seems quite broken, SSA patch had subtitles
disappearing 2 frames too early without -correct-pts and correct with it
on a test file with decoder lag 2, default subtitle code was 6/4...)
- Works better with -demuxer lavf and B frames (the lavf demuxer doesn't
sort timestamps into monotonous order and current MPlayer code doesn't
like that).
- Allows testing the frame-adding filters in MPlayer.




More information about the MPlayer-dev-eng mailing list