1、搭建
ubuntu16.04:172.28.*.*(在ubuntu18.04上編譯錯誤)
mkdir easyDarwin
cd easyDarwin/
wget https://github.com/EasyDarwin/EasyDarwin/archive/v7.0.5.zip
unzip v7.0.5.zip
解壓後到
cd EasyDarwin-7.0.5/EasyDarwin/
然後編譯
chmod +x ./Buildit
./Buildit x64
将下面這兩個檔案夾copy到x64内
WinNTSupport/html/
WinNTSupport/Movies/
将x64放到自己想要放置二進制檔案的位置如/usr/local
sudo cp x64 usr/local/easydarwin (重命名一下,更直覺)
将WinNTSupport/easydarwin.xm配置檔案拷貝到到/usr/local/easydarwin 目錄内
2、啟動
啟動服務:
cd /usr/local
sudo ./easydarwin -c easydarwin.xml -d (該指令不能中斷)
顯示
Streaming Server done starting up
為成功
檢查是否已啟動了服務:
ps -ef|grep easydarwin
3、驗證
浏覽器輸入:
http://外網IP位址:8088/
密碼:admin/admin
此時可以通路http://172.28.*.*:8088/或者http://172.28.*.*:80
4、通過ffmpeg像easydarwin發送流
下面是通過ffmpeg向easydarwin發送流
ffmpeg -i test.mp4 -vcodec copy -acodec copy -rtsp_transport tcp -f rtsp rtsp://172.28.*.*/test.sdp
在vlc中播放:
rtsp://172.28.*.*/test.sdp
參考:https://blog.csdn.net/qq756684177/article/details/81518979