How do I prevent video before RTCP SR arrival?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
davecove
New Cone
New Cone
Posts: 8
Joined: 13 Dec 2011 05:51

How do I prevent video before RTCP SR arrival?

Postby davecove » 22 Jan 2015 19:56

I have a problem, streaming from IP cameras using RTSP, wherein I get video for a few seconds, then the screen goes gray, and then the video comes back for good.

I have discovered the cause: When the video first appears, after the first buffer period, the first few presentation times (PCRs) - before the RTCP sync occurs - are just 'guesses' made by the receiving code (based on the receiver's system clock and the RTP timestamp). Once the RTCP sync report (SR) occurs, all subsequent presentation times will be accurate, but the ones in the buffer from before the SR are inaccurate.

In the VLC log, I very clearly see this:

Code: Select all

live555 debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP() main error: ES_OUT_RESET_PCR called
The first line is a notification that the RTCP synchronization has just happened. The second indicates that the buffer has been flushed because their PCRs are incorrect. Buffering then happens again and video begins playing consistently after that.

I need to tell VLC to hold off on rendering until after the RTCP SR arrives and not show video using those 'guessed' values before the SR arrives. Can anyone tell me how?

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How do I prevent video before RTCP SR arrival?

Postby Rémi Denis-Courmont » 25 Jan 2015 06:19

This is a sender bug. It should send a RTCP-SR element before the first RTP packets. As for the receiving code, it lies inside liblive555, not VLC; but since this is a sender bug, don't expect the liblive555 developer to do anything.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 29 guests