[Live-devel] Live555 RTSP server ---- libav packet->pts always 0

Franco Miceli franco at radixcast.com
Thu Mar 10 05:12:02 PST 2016


Thanks David for taking the time to answer my question.

I will try and see what the RTPDemux information has.

If I come up with something I will post it back here.

BR,

Franco

2016-03-10 6:59 GMT-03:00 David Cassany Viladomat <david.cassany at i2cat.net>:
> Hi franco,
>
> 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.
>
> 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.
>
> 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 ;)
>
> Regards,
> David
>
>
> 2016-03-08 14:25 GMT+01:00 Franco Miceli <franco at radixcast.com>:
>>
>> Hello,
>>
>> I have implemented a live streamer based on live555 and am using a
>> receiver based on libav.
>>
>> The live stream is received and played back correctly.
>>
>> My issue is that, although I set a time value to the presentation time
>> (fPresentationTime) in live555, the pts of the packet is always 0 when
>> I receive the packet with av_read_frame.
>>
>> Should I be setting fPresentationTime in some particuar way (using
>> getTimeOfDay now)?
>> Is there any way I can test this with the openRTSP player?
>>
>> Thanks for any help.
>>
>> Regards,
>>
>> --
>> Eng. Franco Miceli
>> _______________________________________________
>> live-devel mailing list
>> live-devel at lists.live555.com
>> http://lists.live555.com/mailman/listinfo/live-devel
>
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>



-- 
Eng. Franco Miceli


More information about the live-devel mailing list