[Live-devel] Local clock drift/offset compensation?

Marian Durkovic md at bts.sk
Tue Nov 8 09:49:02 PST 2005


On Mon, Nov 07, 2005 at 01:16:20AM -0800, Ross Finlayson wrote:
> 
> >Or is the mediaplayer supposed to
> >compensate for the offset/drift between the local clock and 
> >PresentationTime
> >as computed by liveMedia library?
> 
> Yes.

Well, but the mediaplayer does not have all the necessary information to
correctly compute the clock drift - for example, the real packet arrival
time is not known by the mediaplayer.

On the other hand, liveMedia library has all the info - RTP timestamps, RTCP
SRs as well as real packet arrival times. So computing the clock drift is much
easier in liveMedia library - and if the PresentationTime would be adjusted to
the local clock, the mediaplayer could use it without further processing.
I'm afraid that's what mediaplayers are doing now anyway since after 24
hours of playback there's a drift of several seconds.

Wouldn't it therefore make sense to implement this in liveMedia - perhaps
with an option to turn it on/off via some parameter?


	Thanks & kind regards,

		M.


--------------------------------------------------------------------------
----                                                                  ----
----   Marian Durkovic                       network  manager         ----
----                                                                  ----
----   Slovak Technical University           Tel: +421 2 524 51 301   ----
----   Computer Centre, Nam. Slobody 17      Fax: +421 2 524 94 351   ----
----   812 43 Bratislava, Slovak Republic    E-mail/sip: md at bts.sk    ----
----                                                                  ----
--------------------------------------------------------------------------


More information about the live-devel mailing list