specifying which port to stream to
Posted: 04 Apr 2004 00:55
by the4runner
Hi,
Is is possible to specify which port the VLC should send stream output to?
What I want to do is to read an mp4 file and stream it to a specific udp port .
Also, does this use sockets to send to that port?
Would appreciate any insight into this.
Re: specifying which port to stream to
Posted: 04 Apr 2004 01:17
by the4runner
I tried streaming using VLC and was also able to specify the port and stuff.
What I really need to know now is whether the udp streaming uses sockets, because in my project I want to be able to sniff at that port and send it along to different players through my overlay network. ( without having to have direct unicasts between the vlcs on different machines.
Is this possible?
Could any one briefly explain to me how the udp streaming works?
I've installed vlc 0.7.1 on RH 9.0
Posted: 04 Apr 2004 01:18
by markfm
Yes, you can control the port.
In the GUI, Streaming Wizard, the "1234" you see in Step 2 is the port.
From the command line, it's similar. For instance:
:sout=#duplicate{dst=std{access=udp,mux=ts,url=192.168.10.20:4567}}
is a UDP stream to IP address 192.168.10.20, port 4567.
Streaming Wizard is handy -- look at the display box at the top of Step 1 and Step 2, to see how to construct a command line, if you want it.
For me, Windows, a command line is:
"c:\vlc\vlc.exe" the_stuff_at_the_top_of_Step1 the_stuff_at_the_top_of_Step2
You can experiment, try streaming a Webcam vs sending a file, to see how the "Step 1" part of the command line varies. Likewise, in Step 2 you can play with the different methods, try transcoding at different rates, using different mechanisms, and copy the stuff displayed at the top of the Step 2 window.