Page 1 of 1

streaming to two destination

Posted: 25 May 2011 12:59
by koyaya
hi

is it possible to stream rtp (or udp, or whatever) to a broadcast ip address like 192.168.255.255?
i am streaming to two destination on my lan, and want to use as few network bandwitdth as possible
and not doing something like

Code: Select all

% vlc -vvv input_stream --sout '#duplicate{dst=display, dst="transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}: duplicate{dst=rtp{mux=ts,dst=192.168.1.2,port=50008}, dst=rtp{mux=ts,dst=192.168.1.12,port=50010}"}'
if it is possible what will be the command line in the client for receiving such a stream

thanks

Re: streaming to two destination

Posted: 09 Jun 2011 16:16
by Moriquendi
I am not an expert but cant u just multicast the stream? This works for me;

Code: Select all

% vlc -vvv input_stream --sout '#duplicate{dst=display, dst="transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}: duplicate{dst=rtp{mux=ts,dst=224.0.0.0}"}'
For the client side(s), open vlc instance network stream as
rtp://224.0.0.0
Multicast addresses vary from 224.0.0.0 to 239.255.255.255 as far as i know, so you may just use one of those instead.