DarwinStreamingServer搭建RTSP服务器

原文链接:
http://blog.yikuyiku.com/?p=4555


安装
wget http://blog.yikuyiku.com/down/DarwinStreamingServer-6.0.3-4.x86_64.rpm
md5sum DarwinStreamingServer-6.0.3-4.x86_64.rpm #24a8ba7c428106fa4da0ec0c37842d1d
yum install perl-Net-SSLeay
rpm -ivh DarwinStreamingServer-6.0.3-4.x86_64.rpm


修改配置
cp /etc/dss/streamingserver.xml /etc/dss/streamingserver.xml.bak
vim /etc/dss/streamingserver.xml
diff /etc/dss/streamingserver.xml /etc/dss/streamingserver.xml.bak
77c77
< <PREF NAME="authentication_scheme" >none</PREF>
---
> <PREF NAME="authentication_scheme" >digest</PREF>
164c164
< <PREF NAME="allow_invalid_hint_track_refs" TYPE="Bool16" >true</PREF>
---
> <PREF NAME="allow_invalid_hint_track_refs" TYPE="Bool16" >false</PREF>
199c199
< <PREF NAME="ip_allow_list" >*.*.*.*</PREF>
---
> <PREF NAME="ip_allow_list" >127.0.0.*</PREF>


重启
/etc/init.d/dss restart


增加推流权限
新增文件/var/dss/movies/qtaccess内容如下:
<Limit WRITE>  
require any-user  
</Limit>  
require any-user  


FFmpeg推流命令
ffmpeg -re -i 360x480.mp4 -vcodec copy -acodec copy -f rtsp -y rtsp://192.168.0.1/top.sdp


点播
点播文件默认放在/var/dss/movies/目录下。
要带有mp4hint才可以播放,不然就报错。

你可能感兴趣的:(DarwinStreamingServer搭建RTSP服务器)