原文链接:
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
<
none
---
>
digest
164c164
<
true
---
>
false
199c199
<
*.*.*.*
---
>
127.0.0.*
重启
/etc/init.d/dss restart
增加推流权限
新增文件/var/dss/movies/qtaccess内容如下:
require any-user
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才可以播放,不然就报错。
阅读(3874) | 评论(0) | 转发(0) |