RTSP stream freezes

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.
mr-b
Blank Cone
Blank Cone
Posts: 41
Joined: 01 Feb 2010 15:22

RTSP stream freezes

Postby mr-b » 01 Feb 2021 13:15

Hi

I'm seeing intermittent freezing of RTSP stream from my ip cameras. Potplayer runing in parallel does not freeze.
The connected time counter (bottom left) continues to count and if I press Stop and the Play the stream restarts fine.

The support pages don't cover this so hopefully the below will be of some use.
Also these doc links in the READ FIRST sticky are not found http://www.videolan.org/support/bug-reporting.html, http://www.videolan.org/doc/play-howto/ ... to-en.html, http://www.videolan.org/doc/faq/en/videolan-faq-en.html.

I've enabled the logger on v3.0.12 and it says:

Code: Select all

-- logger module started -- main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. main: playlist is empty hevc: Waiting for VPS/SPS/PPS [x many] main error: buffer deadlock prevented hevc: Waiting for VPS/SPS/PPS [x many] avcodec: Using D3D11VA (NVIDIA GeForce GTX 950, vendor 10de(NVIDIA), device 1402, revision a1) for hardware decoding avcodec error: hardware acceleration picture allocation failed avcodec error: avcodec_send_packet critical error direct3d11 error: SetThumbNailClip failed: 0x800706f4 main error: buffer deadlock prevented hevc: Waiting for VPS/SPS/PPS [x many] avcodec: Using D3D11VA (NVIDIA GeForce GTX 950, vendor 10de(NVIDIA), device 1402, revision a1) for hardware decoding main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1000 ms) hevc: Waiting for VPS/SPS/PPS [x many]
Ther are no timestamps in the log so it makes it hard to correlate events with the frozen timestamp in the stream.
I've changed the prefs to be RTSP over TCP with no difference.

How do I debug this further?

mr-b
Blank Cone
Blank Cone
Posts: 41
Joined: 01 Feb 2010 15:22

Re: RTSP stream freezes

Postby mr-b » 28 Feb 2021 14:48

Any one any ideas how to progress this?

I changed Input/codec h/w accel decoding from Automatic to Disabled and the stream seemed stable. Then I tried using Direct3D11 Accel but the issue returns.

I changed the log to Debug level (Warning showed nothing) and html, but there are so many entries that may or may not be the source of the issue, plus. as noted before, with no timestamps it's hard to know what the triggering event was.

I see lots of these entries:
main warning: picture is too late to be displayed (missing 32 ms)
main debug: resampling stopped (drift: 733 us)
main warning: playback too late (60628): up-sampling
main warning: buffer too late (-567878 us): dropped

One would think that it's obviously the last log entry which shows the problem, but it seems that the log file is only written sporadically, and one has to press stop for the log to be written (and there seems to be no "Stop button pressed" entry), so the correlating a log event to the frozen timestamp on the stream is not at all obvious.
Why are there no timestamps?

I then tried to run two VLC instances with different accel settings but it appears that changing the logger file does not appear to work as a different filename was not generated by the second instance - so maybe there can only be one logger file?


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 51 guests