RTP/RTSP multicast streaming

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
XavierCodogni
New Cone
New Cone
Posts: 2
Joined: 24 Jan 2018 14:39

RTP/RTSP multicast streaming

Postby XavierCodogni » 24 Jan 2018 15:00

Hello,

We are currently trying to stream a .mp4 video sample from our servers over RTSP using RTP with a multicast address (for some reasons, we cannot use a different setup). The fact is that getting the .sdp file is impossible using the 2.2.8 version, although this is achievable with the older 2.1.5 version. Default preferences are used.

The player used to send data from the server is vlc 2.1.6 launched with the following commandline:
vlc /tmp/test.mp4 --repeat --sout="#rtp{dst=230.0.100.10,port=31300,sdp=rtsp://192.168.100.12:8554/test.sdp,mux=ts,ttl=10}" -I dummy --verbose=2 --extraintf logger --rtsp-mcast

The error on the client is (truncated version):
VLC is unable to open the MRL 'rtsp://192.168.100.12:8554/test.sdp'. Check the log for details.

Console messages:
live555 error: SETUP of'video/MP2T' failed 461 Unsupported transport
live555 debug: setup start: 0.000000 stop:0.000000
live555 error: Nothing to play for rtsp://192.168.100.12:8554/test.sdp
core debug: no access_demux modules matched
core debug: creating access 'rtsp' location='192.168.100.12:8554/test.sdp', path='\\192.168.100.12:8554\test.sdp'
core debug: looking for access module matching "rtsp": 21 candidates
core debug: net: connecting to 192.168.100.12 port 8554
core debug: connection succeeded (socket = 1744)
access_realrtsp warning: Cseq mismatch, got 1, assumed 0
access_realrtsp debug: rtsp connected
access_realrtsp warning: only real/helix rtsp servers supported for now
core debug: no access modules matched
core error: open of `rtsp://192.168.100.12:8554/test.sdp' failed
core debug: finished input
core debug: dead input
core debug: changing item without a request (current 0/1)
core debug: nothing to play
qt4 debug: IM: Deleting the input


I have captured the RTSP data with Wireshark for both versions. The only difference I can notice is in the Transport: section of the SETUP request sent by the client (also note the different LIVE555 libraries):

[2.1.5]
SETUP rtsp://192.168.100.12:8554/test.sdp/trackID=0 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/2.1.5 (LIVE555 Streaming Media v2014.05.27)
Transport: RTP/AVP;multicast;client_port=31300-31301

RTSP/1.0 200 OK
Server: VLC/2.1.6
Date: Wed, 24 Jan 2018 15:14:41 GMT
Transport: RTP/AVP/UDP;destination=230.0.100.10;port=31300-31301;ttl=10;mode=play
Session: 1072007177;timeout=60
Content-Length: 0
Cache-Control: no-cache
Cseq: 4


[2.2.8]
SETUP rtsp://192.168.100.12:8554/test.sdp/trackID=0 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/2.2.8 (LIVE555 Streaming Media v2016.02.22)
Transport: RTP/AVP;multicast;port=31300-31301

RTSP/1.0 461 Unsupported transport
Server: VLC/2.1.6
Date: Wed, 24 Jan 2018 15:10:17 GMT


As you can see, the older version of the client sends a "client_port" information while the latest one sends a "port" parameter.
Could the trouble we are experiencing here be linked to this SETUP message ? Am I missing a configuration parameter or are just client v2.2.x and servers v2.1.x not compatible on this feature ? I can provide more debugging data if needed.
I know that RTSP is not meant for sending multicast data, but this is the case we need to achieve here.

Thanks,

Xavier

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: RTP/RTSP multicast streaming

Postby InTheWings » 24 Jan 2018 17:22

Works as by RFC. https://www.ietf.org/rfc/rfc2326.txt

client_port is invalid for multicast
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

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

Re: RTP/RTSP multicast streaming

Postby Rémi Denis-Courmont » 24 Jan 2018 17:24

That's a server bug. client_port is for unicast, port for multicast.

In any case, that's a compatibility issue between live555 and your server, so not much VLC can do about.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

XavierCodogni
New Cone
New Cone
Posts: 2
Joined: 24 Jan 2018 14:39

Re: RTP/RTSP multicast streaming

Postby XavierCodogni » 24 Jan 2018 18:20

Thank you for posting a link to the relevant documentation.

I might not have been clear about the fact that VLC (2.1.6) is also used as the streaming server and works perfectly with the 2.1.5 client. My point was that "client_port" with multicast streams used to be acceptable from a server point of view at the time of this version, in spite of the non-compliancy with the RFC. Maybe this has been fixed in 2.2.x versions, hence the "Unsupported transport" error.

Anyway, I will stick with the 2.1.x client/server setup, which works for me.
Thanks

Xavier

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: RTP/RTSP multicast streaming

Postby InTheWings » 24 Jan 2018 19:11

Options are set in the live555 library.
If you want to have it working, use same vlc both sides or build your own version with patched live555.
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

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

Re: RTP/RTSP multicast streaming

Postby Rémi Denis-Courmont » 25 Jan 2018 22:01

Err, the VLC RTSP server accepts neither port nor client_port for multicast stream. It imposes the port value on server side.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

vityusha
New Cone
New Cone
Posts: 2
Joined: 23 Mar 2018 12:48

Re: RTP/RTSP multicast streaming

Postby vityusha » 26 Mar 2018 15:02

I confirm this issue. Multicast RTSP streaming not works properly in VLC since version 2.2.2.

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 (server and player) this sample doesn't work with error code 461 (as was described in first post).
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):
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.

Any suggestions?

vityusha
New Cone
New Cone
Posts: 2
Joined: 23 Mar 2018 12:48

Re: RTP/RTSP multicast streaming

Postby vityusha » 26 Mar 2018 15:24

Moreother...
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.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 85 guests