I have tries out your suggestion, and various other alternative strings, however have not been able to stream a source (in this case I used a video file) to two different port via UDP.
I opened one instance of VLC (used only 0.8.6c) and streamed a video to port 1234 via UDP:
Code: Select all
:sout=#duplicate{dst=std{access=udp,mux=ts,dst=192.168.1.64:1234}}
I then opened another instance of VLC and streamed the from port 1234 (UDP) to ports 1235 and 1236 with the code:
Code: Select all
:sout=#duplicate{dst=std{access=udp,mux=ts,dst=192.168.1.64:1235},{dst=std{access=udp,mux=ts,dst=192.168.1.64:1236}}
I then opened up a third instance of VLC and opened network stream from 1235, then 1236. 1235 worked, but 1236 didn't. I also tried this with an additional instance of VLC (one streaming from 1234 to 1235, and one streaming from 1234 to 1236), however only the one which was executed first would work - if the other conflicting instance was stopped, then the other would begin working.
Not sure why that is happening, since if one sets up 4 instances of VLC in series, streaming:
File >> udp://@1234 >> udp://@1235 >> udp://@1236 >> Play locally
It works, just when you try to stream from one port in parallel to two different ones that it fails.
The only thing that did work was streaming from two separate instances of VLC to two other separate instances of VLC.
So, you could try (using 1st instance of 0.9.0):
Code: Select all
vlc dvb-t:// :dvb-frequency=506000 :dvb-bandwidth=8 --ts-es-id-pid --programs=1 :sout=#std{access=udp,mux=,dst=127.0.0.1:1234}
And (using 2nd instance of 0.9.0):
Code: Select all
vlc dvb-t:// :dvb-frequency=506000 :dvb-bandwidth=8 --ts-es-id-pid --programs=2 :sout=#std{access=udp,mux=,dst=127.0.0.1:1235}
Then open two instances of 0.8.6c, one opening udp://@1234, and the other opening udp://@1235 (or multicast UDP).
I am not sure whether that will work with DVB though (I don't have a card to test myself).
Cheers, Arite.