easydarwin推流rtsp服务搭建

 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

你可能感兴趣的:(图形处理,实时音视频)