[Live-devel] hasBeenSynchronizedUsingRTCP()

Ross Finlayson finlayson at live555.com
Fri Jul 29 07:56:08 PDT 2011


On Jul 29, 2011, at 10:09 AM, Jeff Shanab wrote:

> While I thought this was working before for me it is definitely always returning false at the moment.  I am trying to track this down to see what I may have done to break this but I cannot figure out how the variable it returns ever gets set.  It is constructed false and passed on in each MultiFramedRTPSource::doGetNextFrame1(). 
>  
> So how does this get set?

It gets set by the RTP receiving code, when it receives RTCP "SR" packets.

If, however, the RTP receiving code doesn't receive any RTCP "SR" packets (e.g., because the sender does not implement RTCP), then "hasBeenSynchronizedUsingRTCP()" will never return True.


> Rtsp connected to H264 stream from a security camera. Stream plays fine in VLC, recorded video is ok, but never ever syncs and I wanted to use that sync to trigger the beginning of recording . 

Does your camera stream audio as well as video?  If it streams only video, then I'm not sure what 'syncs' could mean.

If, however, your camera streams both audio and video, then it must implement RTCP, otherwise receiving client will never be able to synchronize audio and video.

So in short: Does your camera send RTCP packets?

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20110729/6313442b/attachment.html>


More information about the live-devel mailing list