RTSP stream stops after 60 seconds

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Schlaefer
New Cone
New Cone
Posts: 2
Joined: 08 Feb 2021 08:59

RTSP stream stops after 60 seconds

Postby Schlaefer » 08 Feb 2021 09:17

Server: Raspberry Pi with VLC streaming the camera:

raspivid -o - -t 0 -hf -vf -w 1296 -h 972 -fps 30 --bitrate 3500000 --profile high --level 4.2 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264

Client: Mainly consumed by a VLC client e.g. "Open Network Stream" rtsp://<server-ip>:8554/

Everything was running fine and dandy for months, but yesterday I decided to update the Raspi, which included a VLC update. Now viewing the stream stops after ca. 60 seconds. The client shows:

Code: Select all

live555 error: keep-alive failed: recvfrom() error: Connection reset by peer

Complete protocol from server and client:

https://nextcloud03.webo.cloud/s/ySxGPPqPdTkP3Po

Any ideas how to fix that? Setting the rtsp-timeout on the client to 0 or -1 had no perceivable impact.

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

Re: RTSP stream stops after 60 seconds

Postby Rémi Denis-Courmont » 08 Feb 2021 16:07

Set RTSP timeout to 30 or less on the server. The default in VLC 4.0 has been adjusted to work around this.

Though this is ultimately a bug in live555.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Schlaefer
New Cone
New Cone
Posts: 2
Joined: 08 Feb 2021 08:59

Re: RTSP stream stops after 60 seconds

Postby Schlaefer » 08 Feb 2021 17:01

I had success with

... cvlc --rtsp-timeout 10 ...

30 was still cutting out.

Thank you very much!


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 47 guests