VLC: multicast a rtsp input stream ?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
jockyw2001
Blank Cone
Blank Cone
Posts: 54
Joined: 24 Jun 2006 10:18

VLC: multicast a rtsp input stream ?

Postby jockyw2001 » 11 Jul 2007 18:39

Is it possible to feed a unicast rtsp stream to VLC which then multicasts it w/o transcoding in a LAN?

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: VLC: multicast a rtsp input stream ?

Postby dionoea » 11 Jul 2007 21:43

Yes it is.

Code: Select all

vlc <input> --sout "#std{access=upd,mux=ts,dst=239.255.1.1:1234}"
will multicast the input on udp://@239.255.1.1:1234 .
Make sure to change the ttl if you're routing the multicast (example: --ttl 12)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

jockyw2001
Blank Cone
Blank Cone
Posts: 54
Joined: 24 Jun 2006 10:18

Re: VLC: multicast a rtsp input stream ?

Postby jockyw2001 » 12 Jul 2007 17:23

Thanks for that. I can get it to work that way with an rtsp input stream from a hardware mpeg4 encoder (rtsp://172.16.1.26:7070)

Now I'd like to generate test rtsp streams with VLC, instead of with the mpeg4 encoder. These streams shall be received by a VLC client instance running on another PC in the LAN
The VLC client shall use the same url, e.g. rtsp://172.16.1.26:7070 (so without anything behind the port number)
What is the cmd line for the VLC sender?

I tried:

Code: Select all

vlc -vvv <input> --sout '#rtp{dst=172.16.1.26,port=7070,sdp=rtsp://172.16.1.26:7070}'
but it won't work, the client VLC says:

Code: Select all

main debug: creating demux: access='rtsp' demux='' path=172.16.1.26:7070 main debug: looking for access_demux module: 1 candidate live555 error: describeURL failed (cannot handle DESCRIBE response: RTSP/1.0 404 Not found)
Update: I got a bit further by using this cmd line on VLC server:

Code: Select all

vlc -vvv <input> --sout '#rtp{dst=172.16.1.26,port=7070,sdp=rtsp://172.16.1.26:7070/test.sdp}'
and on the client:

Code: Select all

http://172.16.1.26:7070/test.sdp
However, with whatever input file I choose, the client only plays audio. For the video I always get a getsocket error:

Code: Select all

live555 warning: RTP subsession 'video/MP4V-ES' failed (getsockname() error: Unknown error)
Update: this is solved, see viewtopic.php?f=2&t=39061 (a reboot was sufficient ...)

Furthermore, the url on the client is not what I want. How can I configure the server such that I can use this url on the player:

Code: Select all

rtsp://172.16.1.26:7070

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: VLC: multicast a rtsp input stream ?

Postby dionoea » 17 Jul 2007 16:52

Try removing /test.sdp on the server's command line.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 13 guests