<div dir="ltr">Thanks for your quick and useful response,<div>I have checked it and admit that the "SR" always comes to the client before the first RTP packet.</div><div><br></div><div>But I still wonder about two things: </div><div>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?</div><div>2) Does PTS at client always monotonically increase even in case RTPTimestamp (32-bit) is wrapped around?.</div><div><br></div><div>Regards.</div><div>Steve.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 22, 2021 at 4:01 PM Ross Finlayson <<a href="mailto:finlayson@live555.com">finlayson@live555.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Jan 22, 2021, at 4:05 PM, Steve Ha <<a href="mailto:steveha@u2sr.com" target="_blank">steveha@u2sr.com</a>> wrote:<br>
> <br>
> 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?<br>
<br>
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.)<br>
<br>
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.)<br>
<br>
<br>
Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/" rel="noreferrer" target="_blank">http://www.live555.com/</a><br>
<br>
<br>
_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com" target="_blank">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" rel="noreferrer" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</blockquote></div>