Page 1 of 1

VLC: multicast a rtsp input stream ?

Posted: 11 Jul 2007 18:39
by jockyw2001
Is it possible to feed a unicast rtsp stream to VLC which then multicasts it w/o transcoding in a LAN?

Re: VLC: multicast a rtsp input stream ?

Posted: 11 Jul 2007 21:43
by dionoea
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)

Re: VLC: multicast a rtsp input stream ?

Posted: 12 Jul 2007 17:23
by jockyw2001
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

Re: VLC: multicast a rtsp input stream ?

Posted: 17 Jul 2007 16:52
by dionoea
Try removing /test.sdp on the server's command line.