Skip to content

Getting `live555 error: keep-alive failed: recvfrom() error: An existing connection was forcibly closed by the remote host` when using VLC 3.0.14 as RTSP server and client

Hi all,

I am trying to stream using RTSP the video from a capture device/camera using VLC 3.0.14 on Windows 10. The command that I am using to do this is the following

.\vlc.exe -vv dshow:// --dshow-vdev="UB3300 USB, Video Capture" --dshow-adev=none --sout "#transcode{vcodec=h264,acodec=none}:rtp{sdp=rtsp://:8080/ch}" --no-sout-audio --no-sout-all --sout-keep

The UB3300 USB, Video Capture is the capture device, but I have tested it with the virtual camera from OBS Studio which has the same behavior.

So, when I am trying to playback the stream rtsp://127.0.0.1:8080/ch on the VLC 3.0.14 from the windows interface, after a minute or so, the streaming is ending and I could see in the logs the following

live555 error: keep-alive failed: recvfrom() error: An existing connection was forcibly closed by the remote host

I have attached the log, vlc-3.0.14-rtsp-client-windows_from_vlc-3.0.14-rtsp-server-windows.log from both the RTSP server and client side.

I have a Linux Virtual Box Ubuntu 20.04 with VLC 3.0.9.2 installed. I used the same capture device and I run the following command

cvlc -vv v4l2:///dev/video0 --sout "#transcode{vcodec=h264,acodec=none}:rtp{sdp=rtsp://:8080/ch}" --no-sout-audio --no-sout-all --sout-keep

So, when I tried to playback the stream rtsp://10.23.45.100:8080/ch on the VLC 3.0.14 from the windows interface I could not see the previous issue, I could playback with no issue after the 1 minute.

I have attached the logs, vlc-3.0.9.2-rtsp-server-linux.log and vlc-3.0.14-rtsp-client-windows_from_vlc-3.0.9.2-rtsp-server-linux.log from this test.

It seems that something changed between 3.0.9.2 and 3.0.14 regarding the behavior of RTSP streaming.

Let me know if you need more information or this is not an issue and I messed up with the command to RTSP stream.

Kind regards,

Stavros

vlc-3.0.9.2-rtsp-server-linux.log

vlc-3.0.14-rtsp-client-windows_from_vlc-3.0.9.2-rtsp-server-linux.log

vlc-3.0.14-rtsp-client-windows_from_vlc-3.0.14-rtsp-server-windows.log

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information