Page 1 of 1

RTSP stream stops after 60 seconds

Posted: 08 Feb 2021 09:17
by Schlaefer
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.

Re: RTSP stream stops after 60 seconds

Posted: 08 Feb 2021 16:07
by RĂ©mi Denis-Courmont
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.

Re: RTSP stream stops after 60 seconds

Posted: 08 Feb 2021 17:01
by Schlaefer
I had success with

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

30 was still cutting out.

Thank you very much!