以下文字摘自这里,但在原文上作了细微的修正使其能正确运行,特此记录以作备忘!
First launch the vlc
$ vlc --ttl 12 -vvv --color -I telnet --telnet-password videolan --rtsp-host 0.0.0.0 \
--rtsp-port=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:
$ 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:
$ vlc rtsp://server:5554/Test
where:
- server is the address of the streaming server (IP or DNS)
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。