[Live-devel] RTP timestamp changes when second client connected to same stream.

Marat Shchuchinsky maratshch at gmail.com
Tue Nov 9 02:15:54 PST 2010


Dear Mr. Ross Finlayson!
I'm very glad for your detail explanation, but RTP timestamp is really
changed.
I print timestamp value into MultiFramedRTPSink::setTimestamp() after call
of convertToRTPTimestamp().
Saw that printed value "jumped" once after the second instance of VLC player
connected to same RTP stream.
Watch of stream into WireShark get me same result.
I use live555 version from 2007 year, distributed by
Appro Technology(c) with wis-streamer.
Thank you very much again.



On Tue, Nov 9, 2010 at 10:28 AM, Ross Finlayson <finlayson at live555.com>wrote:

> The conversion from presentation time to RTP timestamp (in the server
> code), and from RTP timestamp to presentation time (in the client code)
> happens automatically, and is not something that you should concern yourself
> with.  As a (server or client) developer, you need concern yourself only
> with presentation times.
>
>
>
> When secondary client connected to same stream I saw "jump" into RTP
>> timestamp in first stream.
>>
>
> No, that doesn't happen.  What can happen, however, is that presentation
> times - as seen by clients - may change abruptly shortly after a stream
> starts to be received.  This is explained in the FAQ (which you were asked
> to read before posting to the mailing list :-)
>
>
>
> What is reason for base timestamp use randomaly value and not real time
>> stamp, created by gettimeofday()???
>>
>
> Because the RTP timestamp field is only 32 bits, which does not - by itself
> - have enough resolution.  Instead, servers and clients use 64-bit
> "presentation times" (seconds+microseconds), which are aligned with the
> 'wall clock' time generated by "gettimeofday()".
>
> This is explained in the RTP/RTCP specification (RFC 3550).
>
> --
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
> _______________________________________________
> live-devel mailing list
>
> live-devel at lists.live555.com
>  http://lists.live555.com/mailman/listinfo/live-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20101109/7eacc4f7/attachment.html>


More information about the live-devel mailing list