How to stream multiple files on demand in VLC?

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

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