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

Ross Finlayson finlayson at live555.com
Thu Mar 10 08:55:02 PST 2016


> 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?

Yes, of course.  The “openRTSP” demo application (a RTSP client) explicitly outputs the ‘presentation time’ for each received frame of data.  Just run it.

IMHO, you should not be using ‘libav’ or ‘ffmpeg’ to implement RTSP/RTP/RTCP (for either servers or clients).  Although these libraries apparently do contain an implementation of these protocols, it is incomplete and buggy (as you have discovered).  Instead, I suggest using our “LIVE555 Streaming Media” code - whose RTSP/RTP/RTCP implementation is far more developed.

In any case, this mailing list is specifically for discussion of the "LIVE555 Streaming Media” software, so discussion of other libraries’ RTSP/RTP/RTCP implementation is off-topic here.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list