1. 程式人生 > >ffserver RTSP伺服器配置

ffserver RTSP伺服器配置

用一個MP3檔案測試,config配置如下:

RTSPPort 5454
BindAddress 0.0.0.0
RTSPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000
#MP3 audio
<Stream cry.mp3>
File "/media/sf_chuchen/ffmpeg/cry.mp3"
Format rtp
NoVideo
</Stream>
其中,以下兩條必須指定

RTSPPort 5454  #rtsp server 埠

Format rtp  #格式為rtp,在http下,為流的格式(MP3)

vlc播放:

rtsp://ip_addr:5454/stream_name