To Quote:
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
where:
12 is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers).
telnet launches the telnet interface of the vlc.
videolan is the password to connect to the telnet interface.
0.0.0.0 is the host address.
5554 is the port on which you stream.
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
where:
server is the address of the streaming server (IP or DNS)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=
OR YOU CAN fire up vlc's gui and select File-Open Network Stream- and select rtsp and rtsp://server:5554/Test
AND THEN What Really works for me (to quote again, from up the page)
Configuration Files
A VLM configuration file is a list of command lines : one line corresponds to one command line.
To create a configuration file, just edit a text file and type a list of VLM commands. Beware of recursive calls: you an put a load (file) in a configuration file which can lead to recursive inclusion of the same file and result in VLC's crash.
As of versions > 0.8.1, any line where the first non white space character is a # is considered as a comment.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
So anyways, your configuration file look like this:
new test vod enabled
setup test input test.mpg
new test2 vod enabled
setup test input test2.mpg
save it with your videos with a .vlm extension
and then, cd into the directory where you have your videos,
and fire up vlc by typing
vlc --vlm-conf nameofconfigfile.vlm --ttl 12 -vvv --color -I telnet --telnet-password videolan --rtsp-host 0.0.0.0:5554
you know, I guess we could leave out the telnet and telnet-password flags, now that we are feeding it via a vlm-conf
The quotes are quoted from:
http://www.videolan.org/doc/streaming-h ... /ch05.html