如下文字摘自这里,但在原文上做了细微的修正使其能正确运行,特此记录以做备忘!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: