Windows下环境搭建EasyDarwin流媒体服务器及测试指南

相关网站:
https://github.com/EasyDarwin/EasyDarwin/tree/master/EasyDarwin


一、准备工作,需要先下载我们需要的程序
1、EasyDarwin  下载地址:https://github.com/EasyDarwin/EasyDarwin可以到这里下源码回来编译。也可以
https://github.com/EasyDarwin/EasyDarwin/releases 到这里直接下载编译好的版本。我这里直接选择下载exe


2、nginx       下载地址:http://nginx.org/en/download.html


二、将nginx解压到c盘根目录。cmd进入该目录。 输入 nginx回车。
此时,打开浏览器 输入http://127.0.0.1 如成功,你会懂的。


三、解压下载回来的EasyDarwin程序。我这里是EasyDarwin-Windows-x86_64-v7.2.17.0308.zip
进入解压后的目录,双击start.bat. 接着你会看到黑乎乎的窗口提示什么on running之类。
此时,打开浏览器 输入http://192.168.3.122:10008/api/v1/getserverinfo 可以查看当前流媒体服务器是否正常运行。
输入http://192.168.3.122:10008/api/v1/getrtsplivesessions 可以查看当前有哪些活动的直播。
为什么是10008? 这是easydarwin下的xml配置文件里面的servicelanport那里配的。 如果这两个都正常,说明流媒体服务器运行正常。


四、网上都用FFmpeg来进行流媒体直播编码,但是实测提交流媒体的时候有问题。服务器500错误。因此我用了搭配的流媒体直播客户端来进行流媒体的上传。
EasyPusher:https://github.com/EasyDarwin/EasyPusher/releases
EasyPusher_Win_v1.3.17.0803 打开 设定即可。
设定好流媒体服务器地址端口 直接点start。此时 打开http://192.168.3.122:10008/api/v1/getrtsplivesessions 见到正常说明服务器没有问题。


五、如何查看推流视频?
这里不推荐使用vcl。问题太多。所以使用EasyPlayer:https://github.com/EasyDarwin/EasyPlayer/releases
安卓版在这:https://github.com/EasyDarwin/EasyPlayer_Android 

引用页面:http://blog.csdn.net/xiejiashu/article/details/51449610


大多数资料,都可以在https://github.com/EasyDarwin相关的项目找到。

相关页面

http://blog.csdn.net/jinlong0603/article/details/60886234

http://www.yesuyuan.com/solo/articles/2017/09/02/1504337717293.html


猜你喜欢

转载自blog.csdn.net/glunoy/article/details/77982275