[MPlayer-dev-eng] [PATCH] Get Demuxer Time for Proper DVD Time

Nico Sabbi nicola.sabbi at poste.it
Wed Aug 4 15:24:09 CEST 2010


Paul Huwe ha scritto:
> Hello,
>
> I've created a small tweak to add a slave command "get_demux_time_pos" to return the present demuxer time as a float (out to 3 digits, aka millisecond accuracy). I was inspired to create this because "get_time_pos" gets reset to zero during the course of playing a DVD and I need the proper DVD time throughout (to sub-second accuracy). Searching on google showed numerous posts where others have a need for a timer that does not reset.
>
>
>    

the demuxer will report the PTS present in the mpeg stream, that is 
subject to be reset quite often (possibly even at
every cell entry point) and in many cases it does.
In the case of DVDs the stream layer reports the correct timestamp, even 
though at most with
0.5 seconds of accuracy. It's already used to indicate the current time 
in the OSD



More information about the MPlayer-dev-eng mailing list