ffserver 搭建rtsp視訊和音訊伺服器
視訊:
1.ffserver.conf
RTSPPort 8554
BindAddress 0.0.0.0
RTSPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 30000
CustomLog -
NoDaemon
#NoDefaults
<Stream hh.264>
File "/home/wht/share/test/live/mediaServer/hh.264"
Format rtp
</Stream>
2.ffserver -f ffserver.conf
音訊:
1.ffserver.conf
- 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