如下文字摘自這裏,但在原文上做了細微的修正使其能正確運行,特此記錄以做備忘!html
First launch the vlcide
$ vlc --ttl 12 -vvv --color -I telnet --telnet-password videolan --rtsp-host 0.0.0.0 \ --rtsp-port=5554
where:code
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).router
telnet launches the telnet interface of the vlc.server
videolan is the password to connect to the telnet interface.htm
0.0.0.0 is the host address.get
5554 is the port on which you stream.input
Then you connect to the vlc telnet interface and create the vod object:it
$ telnet 0.0.0.0 4212 Trying 0.0.0.0... Connected to 0.0.0.0. Escape character is '^]'. VLC media player 2.0.8 Twoflower Password: Welcome, Master > new Test vod enabled new > setup Test input my_video.mpg setup
You can access to the stream with:ast
$ vlc rtsp://server:5554/Test
where: