EasyDarwin是高性能开源RTSP流媒体服务器,基于Darwin Streaming Server 维护和优化:RTSP转发、关键帧缓存、秒开画面
主要是买了个服务器,以前做rtsp相关的时候,也使用过EasyPusher、EasyIPCamera来测试,所以没什么事做就弄来玩一玩
搭建很简单
wget https://github.com/EasyDarwin/EasyDarwin/archive/v7.0.5.zip
unzip v7.0.5.zip
cd EasyDarwin-7.0.5/
cd EasyDarwin/
chmod +x Buildit
./Buildit x64
cd x64/
cp ../WinNTSupport/html/ ./ -r
cp ../WinNTSupport/Movies/ ./ -r
cp ../WinNTSupport/easydarwin.xml ./
然后执行
./easydarwin -c easydarwin.xml -d
服务就起来了
后台管理地址是 http://服务器ip:8088/ 账户admin 密码admin
下面是nodejs版本的
wget https://github.com/EasyDarwin/EasyDarwin/releases/download/v8.0.0/easydarwin-8.0.0-1804031316.zip
unzip easydarwin-8.0.0-1804031316.zip
cd easydarwin-8.0.0-1804031315/
chmod +x start.sh
./start.sh
可以用一下指令来查看log
./node_modules/.bin/pm2 logs EasyDarwin
0|EasyDarw | EasyDarwin rtsp server listening on rtsp://服务器ip:554 in production mode
0|EasyDarw | EasyDarwin http server listening on http://服务器ip:10008 in production mode
后台地址http://服务器ip:10008
登录界面默认用户名 admin, 密码 123456
可以用一下指令来查看状态和停止服务
./node_modules/.bin/pm2 status
./node_modules/.bin/pm2 stop 0
在手机上使用EasyPush,填上rtsp服务器的url, 在手机上用Easyplayer或者VLCplayer来播放推送的url
相关的应用可以上github上搜索