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

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


On Sun, 2009-10-04 at 17:10 +0200, Dan Oscarsson wrote:
> I have been looking at pts values for some time. pts values from .mkv
> files end up with low resolution even if the pts values in the .mkv file
> have a high resolution. This is due to the code in
> libmpdemux/demux_mkv.c
> 
> In handle_block pts values are calculated from:
> 
>     tc = ((time*mkv_d->tc_scale+mkv_d->cluster_tc) /1000000.0 - mkv_d->first_tc);
> 
> As tc is an integer, precision will be lost.

That 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?




More information about the MPlayer-dev-eng mailing list