·您当前的位置:首页 > 技术教程 > Rtsp技术 >

[rtsp]使用VLC配置RTSP服务器(rtsp播放器)英文版

时间:2015-02-06 14:34酷播
[rtsp]使用VLC配置RTSP服务器(rtsp播放器)英文版

[rtsp]使用VLC配置RTSP服务器(rtsp播放器)英文版

http://wiki.videolan.org/Documentation:Streaming_HowTo/VLM

 

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:554

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.
554 is the port on which you stream.

Then you connect to the vlc telnet interface and create the vod object. You can connect to vlc telnet interface by use the terminal.

% telnet localhost 4212

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:554/Test

where:


server is the address of the streaming server (IP or DNS)

Advanced example

You can also specify options, a muxer, or an additional output chain that will be prepended to the RTP output used by VoD (e.g. to enable transcoding).

Note: make sure to enter the corresponding commands before the VoD media is enabled, or before you setup the input.

new Test2 vod setup Test2 output #transcoding{vcodec=h264,vb=512,acodec=mp4a,ab=96} setup Test2 mux mp2t setup Test2 input my_video.mpg setup Test2 enabled

热门文章推荐

请稍候...

保利威视云平台-轻松实现点播直播视频应用

酷播云数据统计分析跨平台播放器