<div dir="ltr"><div><div><div><div><div>Hi franco,<br><br></div>I think the issue you are experimenting is more related to FFMPEG or LIBAV than Live555. I am trying achieve the same you are tyring to, however I don't have much time to dedicate to it. Up to now I am using the same approach you suggested (using the current system time in PTS == 0 and starting to increase it with PTS units) with some sort of success, however I don't like this hacky solution, I am pretty sure there is a better approach.<br><br></div>After digging a while I managed to find timing information in AVFormatContext struct of FFMPEG. Get the RTSPState from priv_data, then from there get the RTSPStream and then the RTPDemux. RTPDemuxContext structure has RTCP information and timestamps, I believe there you can find some sort of absolute timestamp.<br><br></div>I hope it is useful, and I'd be pleased to know if you managed to solve it this way, as I am on the same way too ;)<br><br></div>Regards,<br></div>David<br><div><div><div><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-08 14:25 GMT+01:00 Franco Miceli <span dir="ltr"><<a href="mailto:franco@radixcast.com" target="_blank">franco@radixcast.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I have implemented a live streamer based on live555 and am using a<br>
receiver based on libav.<br>
<br>
The live stream is received and played back correctly.<br>
<br>
My issue is that, although I set a time value to the presentation time<br>
(fPresentationTime) in live555, the pts of the packet is always 0 when<br>
I receive the packet with av_read_frame.<br>
<br>
Should I be setting fPresentationTime in some particuar way (using<br>
getTimeOfDay now)?<br>
Is there any way I can test this with the openRTSP player?<br>
<br>
Thanks for any help.<br>
<br>
Regards,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Eng. Franco Miceli<br>
_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com">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>
</font></span></blockquote></div><br></div>