-------- Original Message -------- Subject: Re: [Live-devel] Delay problem of the first RTCP "SR" packet From: Steve Ha <stev...@u2sr.com> To: LIVE555 Streaming Media - development & use <live-de...@us.live555.com> Date: 2021-01-22 04:52+0300
Thanks for your quick and useful response, I have checked it and admit that the "SR" always comes to the client before the first RTP packet. But I still wonder about two things: 1) Since the RTPTimestamp bound to the first "SR" is different from the one bound to the first RTP packet, how can PTS be synchronized to the server's NTP correctly at the client side?
Steve, This might get mangled (ASCII art formatting) but From RFC 3550, 6.5.1 +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ sender | NTP timestamp, most significant word | info +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NTP timestamp, least significant word | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RTP timestamp | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The NTP time stamp in the sender report is accompanied by the random offset NTP stream timestamp also used RTP packet headers, so the receiver should be able to carry forward the offset between sender NTP time and RTP packets.
2) Does PTS at client always monotonically increase even in case RTPTimestamp (32-bit) is wrapped around?.
that I don't know....
Regards. Steve. On Fri, Jan 22, 2021 at 4:01 PM Ross Finlayson <finlay...@live555.com <mailto:finlay...@live555.com>> wrote: > On Jan 22, 2021, at 4:05 PM, Steve Ha <stev...@u2sr.com <mailto:stev...@u2sr.com>> wrote: > > My question is how can I force the first RTCP "SR" packet to be delivered at the same time as the first RTP packet so that the RTSP client could get all frames with correct PTS? Basically, you can’t. (But even if you could, there’d be no guarantee that it would be received, as it (like all RTCP (and RTP packets) are datagrams.) However, our RTSP server implementation *does* send an initial RTCP “SR”, before the first RTP packet, precisely for this reason. (See “OnDemandServerMediaSubsession.cpp”, line 550.) Ross Finlayson Live Networks, Inc. http://www.live555.com/ _______________________________________________ live-devel mailing list live-devel@lists.live555.com <mailto:live-devel@lists.live555.com> http://lists.live555.com/mailman/listinfo/live-devel _______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel