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

Marian Durkovic md at bts.sk
Mon Nov 7 09:11:17 PST 2005


Hi all,

   in RTPSource.cpp, PresentationTime of the RTP packet is computed using
the RTCP SR's as reference and RTPTimestamps as offset to that reference.
It means that the PresentationTime is set based on the sender's timebase.

   If both the client and the sender have synchronized clocks (e.g. by using
NTP), the clien't timebase is identical to sender's timebase and
everything is fine.

   However - what happens, if the client has a freerunning clock with some
offset and frequency difference compared to the server's clock? Is there no
risk of buffer overruns/underruns? Or is the mediaplayer supposed to
compensate for the offset/drift between the local clock and PresentationTime
as computed by liveMedia library?


	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