<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><base href="x-msg://3432/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div lang="DA" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">We use the RTSPClient from Live555 to access live video and video recordings from surveillance cameras, utilizing the cameras built-in RTSP server and recording storage (An SD card).<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">We have a problem regarding the presentation time when streaming video recordings.<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">Let’s say we have a video recording from “last week” which we would like to stream. We start the stream; we can even start the stream from a specific time in the video recording, so that’s swell.<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">BUT, the presentation time we receive is “now”, not “last week”.</span></div></div></div></blockquote><div><br></div>You're misunderstanding the purpose of "presentation time".  The "presentation time" is a timestamp - generated by the server and conveyed to the client for each RTP packet - that tells the client the relative spacing of successive frames of the same media type, and also - if both audio and video substreams are present - allows the client to synchronize the audio and video (i.e., 'lip sync').  The absolute value of the presentation times is undefined and irrelevant.  (It is often the 'current' time, but doesn't have to be.  E.g., if the server's clock happens to be set to 1990, then the presentation times will be from then.)</div><div><br></div><div>What you want is something like the "normal play time" (NPT), but (as you discovered) we don't compute that when the client is seeking by absolute time, which I think is what you're doing.</div><div><br></div><div>But I think some sort of solution should be possible.  To be sure, please give us an example of a RTSP protocol exchange between your client and the server, when you're asking to stream from some time in the past - i.e., the "DESCRIBE", "SETUP", and "PLAY" commands, and their responses.</div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>