[MPlayer-dev-eng] Low resolution on pts in demux_mkv

Uoti Urpala uoti.urpala at pp1.inet.fi
Sun Oct 4 17:50:14 CEST 2009


On Sun, 2009-10-04 at 17:32 +0200, Dan Oscarsson wrote:
> On 2009-10-04 at 18:18 +0300 Uoti Urpala wrote:
>  rounded precision is still 1/1000 second here. That's not exactly
> > "low resolution". Do you really need more precision? Do your files
> > really use a tc_scale that would give more actual precision even without
> > rounding?
> > 
> 
> I have been working on problems when move fps is same as display refresh
> rate. A 23.976hz movie in .mkv gets video pts: 0, 0.042, 0.083, 0.125.
> The time between frames are 42 ms, 41 ms, 42 ms.
> So when mplayer displays frames the time between frames will vary and
> that will now and then result in uneven display when frame flip happens
> around vsync time.

Most files do not store the timestamps with any higher precision. In
other words the frame intervals will be exactly that long even if
MPlayer does no rounding - the video as stored in the file really
doesn't have quite the same length for every frame. And even if it did
relying on non-vsync-aware timing to match vsync timing with precision
better than 1 ms would not be reliable.




More information about the MPlayer-dev-eng mailing list