Skip to content

Cannot play multicast stream via RTSP in version > 2.2.1

Multicast RTSP streaming not works properly in VLC since version 2.2.2 including 3.0 branch.

My test suite:

  1. Streaming command line

Code: Select all vlc.exe file:///d:\SampleContent\video.mpg -vvv --file-logging --logfile=log.txt --log-verbose=5 -I dummy --ignore-config --no-osd --disable-screensaver --plugin-path=./plugins --sout-avcodec-strict=-2 --rtsp-timeout=-1 --audio-desync=0 :sout=#transcode{vcodec=mpgv,vb=2048,scale=1,acodec=mpga,channels=2,samplerate=44100,soverlay,deinterlace}:rtp{mux=ts{use-key-frames},proto=udp,dst=239.255.42.42,port=6000,sdp=rtsp://:8554/Stream,ttl=2} 2. Player command line

Code: Select all vlc.exe rtsp://localhost:8554/Stream -vvv --file-logging --logfile=playlog.txt --log-verbose=5

With VLC > 2.2.1 on both sides (streaming server and player) this sample doesn't work with error code 461 (Unsupported transport): live555 debug: RTP subsession 'video/MP2T' live555 error: SETUP of'video/MP2T' failed 461 Client error

It happens due to live555 bug fix. But is very strange... Since in 2015 live555 introduce fix to be compliant with RFC2326 (about multicast port= settings in SETUP query):

(live555 changelog) 2015.06.21: Updated "RTSPClient" to put "port=" rather than "client_port=" in "Transport:" headers when requesting a multicast stream, in accordance with RFC 2326.

I don't think that this bug related to live555 only. Because test progs from live555 works fine with VLC version > 2.2.2. For example i stream multicast data via live555's testMPEG1or2AudioVideoStreamer. VLC any version show this RTSP stream correctly. And live555's openRTSP show this stream correctly too.

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