how to dynamically adding dst w/o interrupting

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
tlegras
New Cone
New Cone
Posts: 9
Joined: 18 Mar 2008 18:36

how to dynamically adding dst w/o interrupting

Postby tlegras » 20 Mar 2008 09:54

Hi,

I use videolan to stream to several receivers, say A and B. At some time i need to add some new receivers, say C and D. Currently i use telnet interface to add new receivers with something like:

> control stream1 stop
> setup stream1 output #duplicate{dst=standard{access=udp,mux=ts,dst=A},dst=standard{access=udp,mux=ts,dst=B},dst=standard{access=udp,mux=ts,dst=C},dst=standard{access=udp,mux=ts,dst=D}}
> control stream1 play

So the problem is that in this way the streaming to A and B is interrupted a couple of seconds.
Unfortunately i cannot use multicast due to my network limitation.

Is there a way to dynamically add new receivers without interrupting the streaming?

Thanks for any help,
Thierry.

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: how to dynamically adding dst w/o interrupting

Postby revolunet » 20 Mar 2008 11:23

why not creating other streams with the same input ?
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

tlegras
New Cone
New Cone
Posts: 9
Joined: 18 Mar 2008 18:36

Re: how to dynamically adding dst w/o interrupting

Postby tlegras » 20 Mar 2008 12:07

Is it possible if input is also a stream? I did a quick test with the GUI VLM manager and it works when input is a local file, but does not seem to work if input is udp:

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: how to dynamically adding dst w/o interrupting

Postby revolunet » 20 Mar 2008 12:10

i didnt test this setup, you can try and tell us

Code: Select all

new channel1 broadcast enabled setup channel1 input udp://A setup channel1 output #rtp{mux=ts,dst=239.255.1.1,sdp=sap,name="Channel 1"} control channel1 play new channel2 broadcast enabled setup channel2 input udp://A setup channel2 output #rtp{mux=ts,dst=239.255.1.2,sdp=sap,name="Channel 2"} control channel2 play
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

tlegras
New Cone
New Cone
Posts: 9
Joined: 18 Mar 2008 18:36

Re: how to dynamically adding dst w/o interrupting

Postby tlegras » 20 Mar 2008 12:40

thanks for your help but it does not work either :(

only one of the channel is working (sometimes only the first, sometimes only the second BTW).
i also tried your script with unicast address. same result, only one stream is working.

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: how to dynamically adding dst w/o interrupting

Postby revolunet » 20 Mar 2008 12:54

ok sorry, this is a quesiton for the IRC team : http://krishna.videolan.org/cgi-bin/irc/irc.cgi
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

tlegras
New Cone
New Cone
Posts: 9
Joined: 18 Mar 2008 18:36

Re: how to dynamically adding dst w/o interrupting

Postby tlegras » 20 Mar 2008 16:57

For information i post here the best workaround i could find :). here is the telnet conf file i made:
# this one dispatch to destX broadcast using (local) multicast
new receiver broadcast enabled
setup receiver input udp:
# does not work with RTP
#setup receiver output #rtp{mux=ts,ttl=0,dst=239.255.0.1}
setup receiver output #standard{access=http,mux=asf,dst=127.0.0.1:8080}

# indeed "dest" broadcast are supposed to be added dynamically
new dest1 broadcast enabled
# does not work with RTP
#setup dest1 input udp:@239.255.0.1
setup dest1 input http://127.0.0.1:8080
setup dest1 output #rtp{mux=ts,dst=127.0.0.1,port=2001}

# indeed "dest" broadcast are supposed to be added dynamically
new dest2 broadcast enabled
# does not work with RTP
#setup dest2 input udp:@239.255.0.1
setup dest2 input http://127.0.0.1:8080
setup dest2 output #rtp{mux=ts,dst=127.0.0.1,port=2002}

control source play
control receiver play
control dest1 play
control dest2 play
Indeed dest1, dest2, ... are supposed to be added dynamically.

For some reasons it does not work when using udp from receiver to several destX. it does not seem reproductible. sometimes only dest1 works, sometimes only dest2 works, and in some very rare cases both streams work! i tried to start the stream not too fast with an interactive telnet session, with no luck.


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 11 guests