11

Is there any way at all that I can set up VLC on a server PC in such a way that I can access a list of all my videos from another PC, and pick one to be streamed on demand?

I've been pointed at this streaming guide (pdf), but it's pretty useless. For a start, most of the menus in those screenshots don't match the actual current version VLC, and then it sort of assumes you already know what you're doing.

So far I managed to figure out how to stream a single file, which I must choose before watching on the server PC - pretty useless if you ask me! The impenetrable "UI" doesn't help either...

(P.S. The reason I'm going for streaming rather than the very simple to set up network drive is described in this question)

3 Answers 3

9
+50

VideoLAN Manager is a small media manager designed to control multiple streams with only one instance of VLC. It allows multiple streaming and video on demand (VoD). This manager being a new feature, it can only be controlled by the telnet interface or the http interface.

Steps : http://www.videolan.org/doc/streaming-howto/en/ch05.html

For Exanmple

vlm configuration files.

new channel1 broadcast enabled
setup channel1 input http://host.mydomain/movie.mpeg
setup channel1 output #rtp{mux=ts,dst=239.255.1.1,sap,name="Channel 1"}

new channel2 broadcast enabled
setup channel2 input rtp://@239.255.12.42
setup channel2 output #rtp{mux=ts,dst=239.255.1.2,sap,name="Channel 2"}

control channel1 play
control channel2 play

Video On Demand Basic example

First launch the vlc

% vlc --ttl 12 -vvv --color -I telnet --telnet-password videolan --rtsp-host 0.0.0.0:5554

Then you connect to the vlc telnet interface and create the vod object

new Test vod enabled
setup Test input my_video.mpg

You can access to the stream with:

% vlc rtsp://server:5554/Test
1
  • thanks joe, i tried the VOD method and it gave me errors socket bind error (permission denied) and cannot create socket(s) for HTTP host so i did the following steps to fix it 1. disable the firewall sudo ufw disable or you can keep it enabled and open the ports you want need 5554 4212 etc, 2. use vlc-wrapper instead of vlc , because with vlc-wrapper you can run it as root, so the command will be sudo vlc-wrapper --ttl 12 -vvv --color -I telnet --rtsp-host 0.0.0.0:5554, i removed --telnet-password videolan so default password will be admin ....
    – AmmarR
    Sep 16, 2012 at 19:22
9

In VLC :

Click “File > Open File” to bring up the “Open” dialog box.

alt text

Click on the “Browse” button to bring up a standard Windows file selection box. Select the file you want to play. Then click “Open”. We've selected multiple files so VLC will build a playlist.

alt text

Your selection should appear in the text box next to the “Browse” button. Click the checkbox for “Stream Output” and then click the button “Settings.”

alt text

Check the box next to “Play Locally” under “Output Methods.” When streaming to another system you don't have to play the file on the server, but we will use this option to visually confirm that our video is playing properly before trying to access the stream from another computer.

Check the box marked “UDP” and type in the IP address of the computer you want to stream the file to. Then click “OK”. The file is ready to play so click “OK” in the “Open” dialog box too.

[This step did not work with my .flv video. Though the server was playing the video locally, the client (localhost:8181) did not play the video. Corrective action was to uncheck "UDP" checkbox" (this could be because my UDP transport protocol was not working on my laptop or MPEG-TS was not a corrective format container for streaming. MPEG-TS was the only format container or encapsulation method available when "UDP" is selected) and click "HTTP" checkbox, then set "Address" as 127.0.0.1 and port as "8181". Now select "ASF" as the encapsulation method and keep the rest of the "Stream output" dialog defaults. Click "OK" to go bakc to the "Open" dialog box and then click "OK" in the "Open" dialog box to start playing the video.]

alt text

The video or audio file should begin playing on the computer. The last thing to do before switching to your second computer is to turn on VLC’s web interface by clicking “Settings > Add Interface > Web Interface”.

alt text

Open VLC on your second machine. We are using a Linux machine.

Click on “File > Open Network Stream”. UDP is already selected so you just need to click the “OK” button and VLC will start playing your stream.

alt text

Now that the stream is successfully playing on your computer you can open up a web browser to control VLC remotely. Type “http://:8080/” into the address bar. The web browser will present you with all of the controls you need to manage playlists and playback remotely.

Source

2
  • 2
    +1 for streaming Teenage Mutant Ninja Turtles as your example!
    – warren
    Oct 7, 2009 at 1:21
  • sorry, SO auto-accepted an answer before I had a chance to review them :(
    – RomanSt
    Oct 15, 2009 at 20:05
0

Here is a blog with instructions for how to do exactly what the OP asked:

http://www.makeuseof.com/tag/create-linux-vlc-streaming-media-server-home/

(The server in that example is Linux, but the same steps should work for a Windows VLC server.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .