<div dir="ltr">Hello Ross,<div><br></div><div>I have subclassed OnDemandServerMediaSubsession and added support for 'trick play' using absolute times. All is working fine but the client (which is also using Live555) is receiving wrong timestamps from the server after pause/play is triggered. Basically I follow these steps:</div>
<div><br></div><div>1 - Client connects to the server for live video - OK</div><div>2 - Pause the client (sendPauseCommand) - OK</div><div>3 - Wait for some seconds and play the client again (sendPlayCommand("YYYYMM....")) - The frames are correct but the client reports wrong timestamps for 1 or 2 seconds, and then shows the correct timestamps.</div>
<div><br></div><div><br></div><div>Looking at the implementation of OnDemandServerMediaSubsession I see that the other seekStream (with NPT) is changing the rtpSink presentation times with rtpSink->resetPresentationTimes(), while the other is not. Could this be the problem?</div>
<div><br></div><div><br></div><div>Here is a sample of the received frames (in the client) after the play command (step 3). All the frames before <span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">1378839810.868667 are correct but the timestamps are wrong</span>:</div>
<div><br></div><div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Received 205 new bytes of response data.<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Received a complete PLAY response:<br></font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">RTSP/1.0 200 OK<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">CSeq: 7<br></font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Date: Tue, Sep 10 2013 19:03:37 GMT<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Range: clock=20130910T210329.68Z-<br></font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Session: 6B73948F<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">RTP-Info: url=rtsp://<a href="http://192.168.1.6:9000/2/playback/track1;seq=42948;rtptime=1877910131">192.168.1.6:9000/2/playback/track1;seq=42948;rtptime=1877910131</a></font></span><font face="arial, helvetica, sans-serif" style="background-color:rgb(255,255,255)" color="#000000"><br>
</font><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000"><br></font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 122886 bytes. Presentation time: 1378839817.440850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 122886 bytes. Presentation time: 1378839817.506850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123596 bytes. Presentation time: 1378839817.572850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123451 bytes. Presentation time: 1378839817.638850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 122796 bytes. Presentation time: 1378839817.704850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123719 bytes. Presentation time: 1378839817.770850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 122876 bytes. Presentation time: 1378839817.836850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 122963 bytes. Presentation time: 1378839817.902850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123406 bytes. Presentation time: 1378839817.968850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123183 bytes. Presentation time: 1378839818.034850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123008 bytes. Presentation time: 1378839818.100850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123460 bytes. Presentation time: 1378839818.166850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123108 bytes. Presentation time: 1378839818.232850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123045 bytes. Presentation time: 1378839818.298850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123708 bytes. Presentation time: 1378839818.364850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123219 bytes. Presentation time: 1378839818.430850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123228 bytes. Presentation time: 1378839818.496850<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123398 bytes. Presentation time: 1378839810.868667<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 122975 bytes. Presentation time: 1378839810.934667<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123151 bytes. Presentation time: 1378839811.000667<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123915 bytes. Presentation time: 1378839811.066667<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 122808 bytes. Presentation time: 1378839811.132667<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123383 bytes. Presentation time: 1378839811.198667<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123518 bytes. Presentation time: 1378839811.264667<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 122613 bytes. Presentation time: 1378839811.330667<br>
</font></span><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Stream "rtsp://<a href="http://192.168.1.6:9000/2/playback/">192.168.1.6:9000/2/playback/</a>"; video/JPEG: Received 123482 bytes. Presentation time: 1378839811.396667</font></span></blockquote>
</div><div><br></div><div><br></div><div>Thanks in advance.</div><div>-- <br><div dir="ltr"><div><span style="color:rgb(0,0,0);font-size:small;font-family:Helvetica;text-align:-webkit-auto">Francisco Feijoo</span><br></div>
<div><span style="text-align:-webkit-auto;border-collapse:separate;font-family:Helvetica"><font><font color="#000000">Software Engineer<br>EyeLynx Limited<br></font><br><font color="#000000">T: </font><a value="+442081339388" style="color:rgb(17,85,204)">+44 020 8133 9388</a><br>
<font color="#000000">E: </font><a href="mailto:francisco@eyelynx.com" style="color:rgb(17,85,204)" target="_blank">francisco@eyelynx.com</a><br><font color="#000000">W:</font><font color="#888888"> </font><a href="http://www.eyelynx.com/" style="color:rgb(17,85,204)" target="_blank">www.eyelynx.com</a></font></span></div>
</div>
</div></div>