Postby markfm » 30 Jul 2004 12:29
It's pretty straight forward. Your first computer is set up to do a single stream to the second computer -- say point-to-point (unicast) UDP, where the first computer is told to stream to the 2nd computer's IP address. If it is a normal Webcam, say a USB device, make sure that you use Transcoding in the stream -- say, mp4v. (No way to stream the Webcam "raw" video, but you want a CODEC anyhow, given BW constraints)
At the second computer, if you use the WxWidgets interface on VLC, select File -- Open Network Stream. You pick the first option for UDP, the one with no "Address" line next to it. (it's the default choice). At the bottom of this "Open" window is a checkbox for "Stream output" -- select this and click on the Settings button.
In the "Stream Output" window, pick how you want the reflector to make the stream available. If you want to multicast on a local LAN segment, pick UDP and use a valid multicast address. If you want other clients to be able to connect via, say, MMSH, select that option instead. It is valid to have more than one Output method selected for the repromulgated stream. It is also valid to have more than one point-to-point connection coming off of the reflector. For example, you may want three specific addressed UDP re-broadcasts of the stream -- there's no way to do it off of the GUI that I know of, but at a command line you just replicate the line. You may need to change Encapsulation Method depending on what "Output methods" you use.
For example, if there is a point-to-point connection from the first PC to the reflector, and at the reflector I wish to rebrodcast it using two specific point-to-point connections, plus make it available on a generic multicast address, I would use something like:
c:\temp\vlc\vlc.exe udp://
:sout=#duplicate{dst=std{access=udp,mux=ts,url=192.178.2.2:1234},dst=std{access=udp,mux=ts,url=192.178.2.3:1234}, dst=std{access=udp,mux=ts,url=239.20.30.40:1234}}
(239.20.30.40 is a multicast address, administratively scoped for the local LAN segment)
Note that multicast won't work over the Web -- ISPs purposely block it, as there is finite bandwidth and a finite number of multicast addresses. If you want users to access the reflector's data over the Web you will need to use a point-to-point unicast method, something like http.