|
|
@ -1,146 +1,149 @@
|
|
|
|
# EasyDarwin开源流媒体服务器
|
|
|
|
# EasyDarwin开源流媒体服务器
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 主要功能特点
|
|
|
|
## 主要功能特点
|
|
|
|
|
|
|
|
|
|
|
|
- 基于Golang开发维护;
|
|
|
|
- 基于Golang开发维护;
|
|
|
|
|
|
|
|
|
|
|
|
- 支持Windows、Linux平台;
|
|
|
|
- 支持Windows、Linux平台;
|
|
|
|
|
|
|
|
|
|
|
|
- 支持RTSP推流分发(推模式转发);
|
|
|
|
- 支持RTSP推流分发(推模式转发);
|
|
|
|
|
|
|
|
|
|
|
|
- 支持RTSP拉流分发(拉模式转发);
|
|
|
|
- 支持RTSP拉流分发(拉模式转发);
|
|
|
|
|
|
|
|
|
|
|
|
- 服务端录像;
|
|
|
|
- 服务端录像;
|
|
|
|
|
|
|
|
|
|
|
|
- 服务端录像检索与回放(研发中);
|
|
|
|
- 服务端录像检索与回放(研发中);
|
|
|
|
|
|
|
|
|
|
|
|
- 关键帧缓存;
|
|
|
|
- 关键帧缓存;
|
|
|
|
|
|
|
|
|
|
|
|
- 秒开画面;
|
|
|
|
- 秒开画面;
|
|
|
|
|
|
|
|
|
|
|
|
- Web后台管理;
|
|
|
|
- Web后台管理;
|
|
|
|
|
|
|
|
|
|
|
|
- 分布式负载均衡;
|
|
|
|
- 分布式负载均衡;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 安装部署
|
|
|
|
## 安装部署
|
|
|
|
|
|
|
|
|
|
|
|
- [下载解压 release 包](https://github.com/EasyDarwin/EasyDarwin/releases)
|
|
|
|
- [下载解压 release 包](https://github.com/EasyDarwin/EasyDarwin/releases)
|
|
|
|
|
|
|
|
|
|
|
|
- 直接运行(Windows)
|
|
|
|
- 直接运行(Windows)
|
|
|
|
|
|
|
|
|
|
|
|
EasyDarwin.exe
|
|
|
|
EasyDarwin.exe
|
|
|
|
|
|
|
|
|
|
|
|
以 `Ctrl + C` 停止服务
|
|
|
|
以 `Ctrl + C` 停止服务
|
|
|
|
|
|
|
|
|
|
|
|
- 以服务启动(Windows)
|
|
|
|
- 以服务启动(Windows)
|
|
|
|
|
|
|
|
|
|
|
|
ServiceInstall-EasyDarwin.exe
|
|
|
|
ServiceInstall-EasyDarwin.exe
|
|
|
|
|
|
|
|
|
|
|
|
以 ServiceUninstall-EasyDarwin.exe 卸载 EasyDarwin 服务
|
|
|
|
以 ServiceUninstall-EasyDarwin.exe 卸载 EasyDarwin 服务
|
|
|
|
|
|
|
|
|
|
|
|
- 直接运行(Linux)
|
|
|
|
- 直接运行(Linux)
|
|
|
|
|
|
|
|
|
|
|
|
cd EasyDarwin
|
|
|
|
cd EasyDarwin
|
|
|
|
./easydarwin
|
|
|
|
./easydarwin
|
|
|
|
# Ctrl + C
|
|
|
|
# Ctrl + C
|
|
|
|
|
|
|
|
|
|
|
|
- 以服务启动(Linux)
|
|
|
|
- 以服务启动(Linux)
|
|
|
|
|
|
|
|
|
|
|
|
cd EasyDarwin
|
|
|
|
cd EasyDarwin
|
|
|
|
./start.sh
|
|
|
|
./start.sh
|
|
|
|
# ./stop.sh
|
|
|
|
# ./stop.sh
|
|
|
|
|
|
|
|
|
|
|
|
- 查看界面
|
|
|
|
- 查看界面
|
|
|
|
|
|
|
|
|
|
|
|
打开浏览器输入 [http://localhost:10008](http://localhost:10008), 进入控制页面,默认用户名密码是admin/admin
|
|
|
|
打开浏览器输入 [http://localhost:10008](http://localhost:10008), 进入控制页面,默认用户名密码是admin/admin
|
|
|
|
|
|
|
|
|
|
|
|
- 测试推流
|
|
|
|
- 测试推流
|
|
|
|
|
|
|
|
|
|
|
|
ffmpeg -re -i C:\Users\Administrator\Videos\test.mkv -rtsp_transport tcp -vcodec h264 -f rtsp rtsp://localhost/test
|
|
|
|
ffmpeg -re -i C:\Users\Administrator\Videos\test.mkv -rtsp_transport tcp -vcodec h264 -f rtsp rtsp://localhost/test
|
|
|
|
|
|
|
|
|
|
|
|
ffmpeg -re -i C:\Users\Administrator\Videos\test.mkv -rtsp_transport udp -vcodec h264 -f rtsp rtsp://localhost/test
|
|
|
|
ffmpeg -re -i C:\Users\Administrator\Videos\test.mkv -rtsp_transport udp -vcodec h264 -f rtsp rtsp://localhost/test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- 测试播放
|
|
|
|
- 测试播放
|
|
|
|
|
|
|
|
|
|
|
|
ffplay -rtsp_transport tcp rtsp://localhost/test
|
|
|
|
ffplay -rtsp_transport tcp rtsp://localhost/test
|
|
|
|
|
|
|
|
|
|
|
|
ffplay rtsp://localhost/test
|
|
|
|
ffplay rtsp://localhost/test
|
|
|
|
|
|
|
|
|
|
|
|
## 效果图
|
|
|
|
## 效果图
|
|
|
|
|
|
|
|
|
|
|
|
![snapshot](http://ww1.sinaimg.cn/large/79414a05ly1fwzqdbi8efj20w00mrn0c.jpg)
|
|
|
|
![snapshot](http://ww1.sinaimg.cn/large/79414a05ly1fwzqdbi8efj20w00mrn0c.jpg)
|
|
|
|
|
|
|
|
|
|
|
|
## 二次开发
|
|
|
|
## 二次开发
|
|
|
|
|
|
|
|
|
|
|
|
### 准备工具
|
|
|
|
### 准备工具
|
|
|
|
|
|
|
|
|
|
|
|
go get -u github.com/kardianos/govendor
|
|
|
|
go get -u github.com/kardianos/govendor
|
|
|
|
go get -u github.com/caixw/gobuild
|
|
|
|
go get -u github.com/caixw/gobuild
|
|
|
|
|
|
|
|
|
|
|
|
### 编译命令
|
|
|
|
### 编译命令
|
|
|
|
|
|
|
|
|
|
|
|
- 获取代码
|
|
|
|
- 获取代码
|
|
|
|
|
|
|
|
|
|
|
|
cd $GOPATH/src/github.com
|
|
|
|
cd $GOPATH/src/github.com
|
|
|
|
git clone https://github.com/EasyDarwin/EasyDarwin.git EasyDarwin
|
|
|
|
git clone https://github.com/EasyDarwin/EasyDarwin.git EasyDarwin
|
|
|
|
cd EasyDarwin
|
|
|
|
cd EasyDarwin
|
|
|
|
|
|
|
|
|
|
|
|
- 以开发模式运行 server
|
|
|
|
- 以开发模式运行 server
|
|
|
|
|
|
|
|
|
|
|
|
npm run dev
|
|
|
|
npm run dev
|
|
|
|
|
|
|
|
|
|
|
|
- 以开发模式运行前端
|
|
|
|
- 以开发模式运行前端
|
|
|
|
|
|
|
|
|
|
|
|
npm run dev:www
|
|
|
|
npm run dev:www
|
|
|
|
|
|
|
|
|
|
|
|
- 编译前端
|
|
|
|
- 编译前端
|
|
|
|
|
|
|
|
|
|
|
|
cd web_src && npm i
|
|
|
|
cd web_src && npm i
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
npm run build:www
|
|
|
|
npm run build:www
|
|
|
|
|
|
|
|
|
|
|
|
- 编译 Windows 版本
|
|
|
|
- 编译 Windows 版本
|
|
|
|
|
|
|
|
|
|
|
|
npm run build:win
|
|
|
|
npm run build:win
|
|
|
|
|
|
|
|
|
|
|
|
- 编译 Linux 版本 (在 bash 环境下执行)
|
|
|
|
- 编译 Linux 版本 (在 bash 环境下执行)
|
|
|
|
|
|
|
|
|
|
|
|
npm run build:lin
|
|
|
|
npm run build:lin
|
|
|
|
|
|
|
|
|
|
|
|
- 清理编译文件
|
|
|
|
- 清理编译文件
|
|
|
|
|
|
|
|
|
|
|
|
npm run clean
|
|
|
|
npm run clean
|
|
|
|
|
|
|
|
|
|
|
|
- 打包
|
|
|
|
- 打包
|
|
|
|
|
|
|
|
|
|
|
|
# for windows
|
|
|
|
# install pack
|
|
|
|
npm run build:win
|
|
|
|
npm i -g @penggy/pack
|
|
|
|
pack zip
|
|
|
|
|
|
|
|
|
|
|
|
# for windows
|
|
|
|
# for linux
|
|
|
|
npm run build:win
|
|
|
|
npm run build:lin
|
|
|
|
pack zip
|
|
|
|
pack tar
|
|
|
|
|
|
|
|
|
|
|
|
# for linux
|
|
|
|
# for clean
|
|
|
|
npm run build:lin
|
|
|
|
pack clean
|
|
|
|
pack tar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# for clean
|
|
|
|
## 技术支持
|
|
|
|
pack clean
|
|
|
|
|
|
|
|
|
|
|
|
- 邮件:[support@easydarwin.org](mailto:support@easydarwin.org)
|
|
|
|
|
|
|
|
|
|
|
|
## 技术支持
|
|
|
|
- QQ交流群:**436297092**
|
|
|
|
|
|
|
|
|
|
|
|
- 邮件:[support@easydarwin.org](mailto:support@easydarwin.org)
|
|
|
|
- EasyDarwin开源流媒体服务器是属于EasyDarwin开源团队的免费产品,大家免费使用,同时,EasyDarwin开源团队也能提供相应的收费技术咨询、技术服务和技术定制,谢谢大家支持!
|
|
|
|
|
|
|
|
|
|
|
|
- QQ交流群:**436297092**
|
|
|
|
|
|
|
|
|
|
|
|
## 获取更多信息
|
|
|
|
- EasyDarwin开源流媒体服务器是属于EasyDarwin开源团队的免费产品,大家免费使用,同时,EasyDarwin开源团队也能提供相应的收费技术咨询、技术服务和技术定制,谢谢大家支持!
|
|
|
|
|
|
|
|
|
|
|
|
**EasyDarwin**开源项目:[www.EasyDarwin.org](http://www.easydarwin.org)
|
|
|
|
|
|
|
|
|
|
|
|
## 获取更多信息
|
|
|
|
Copyright © EasyDarwin Team 2012-2018
|
|
|
|
|
|
|
|
|
|
|
|
**EasyDarwin**开源项目:[www.EasyDarwin.org](http://www.easydarwin.org)
|
|
|
|
![EasyDarwin](http://www.easydarwin.org/skin/easydarwin/images/wx_qrcode.jpg)
|
|
|
|
|
|
|
|
|
|
|
|
Copyright © EasyDarwin Team 2012-2018
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
![EasyDarwin](http://www.easydarwin.org/skin/easydarwin/images/wx_qrcode.jpg)
|
|
|
|