forked from EasyDarwin/EasyDarwin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
macbookpro
committed
Jan 6, 2019
1 parent
34d11b4
commit 72bead0
Showing
1 changed file
with
156 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,156 +1,156 @@ | ||
# EasyDarwin开源流媒体服务器 | ||
|
||
|
||
## 主要功能特点 | ||
|
||
- 基于Golang开发维护; | ||
|
||
- 支持Windows、Linux、macOS平台; | ||
|
||
- 支持RTSP推流分发(推模式转发); | ||
|
||
- 支持RTSP拉流分发(拉模式转发); | ||
|
||
- 服务端录像; | ||
|
||
- 服务端录像检索与回放(研发中); | ||
|
||
- 关键帧缓存; | ||
|
||
- 秒开画面; | ||
|
||
- Web后台管理; | ||
|
||
- 分布式负载均衡; | ||
|
||
|
||
## 安装部署 | ||
|
||
- [下载解压 release 包](https://github.com/EasyDarwin/EasyDarwin/releases) | ||
|
||
- 直接运行(Windows) | ||
|
||
EasyDarwin.exe | ||
|
||
以 `Ctrl + C` 停止服务 | ||
|
||
- 以服务启动(Windows) | ||
|
||
ServiceInstall-EasyDarwin.exe | ||
|
||
以 ServiceUninstall-EasyDarwin.exe 卸载 EasyDarwin 服务 | ||
|
||
- 直接运行(Linux/macOS) | ||
|
||
cd EasyDarwin | ||
./easydarwin | ||
# Ctrl + C | ||
|
||
- 以服务启动(Linux/macOS) | ||
|
||
cd EasyDarwin | ||
./start.sh | ||
# ./stop.sh | ||
|
||
- 查看界面 | ||
|
||
打开浏览器输入 [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 udp -vcodec h264 -f rtsp rtsp://localhost/test | ||
|
||
- 测试播放 | ||
|
||
ffplay -rtsp_transport tcp rtsp://localhost/test | ||
|
||
ffplay rtsp://localhost/test | ||
|
||
## 效果图 | ||
|
||
![snapshot](http://ww1.sinaimg.cn/large/79414a05ly1fwzqdbi8efj20w00mrn0c.jpg) | ||
|
||
## 二次开发 | ||
|
||
### 准备工具 | ||
|
||
# go tools | ||
go get -u -v github.com/kardianos/govendor | ||
go get -u -v github.com/penggy/gobuild | ||
|
||
# npm tools | ||
npm i -g apidoc | ||
npm i -g rimraf | ||
|
||
|
||
### 编译命令 | ||
|
||
- 获取代码 | ||
|
||
cd $GOPATH/src/github.com | ||
mkdir EasyDarwin && cd EasyDarwin | ||
git clone https://github.com/EasyDarwin/EasyDarwin.git --depth=1 EasyDarwin | ||
cd EasyDarwin | ||
|
||
- 以开发模式运行 | ||
|
||
npm run dev | ||
|
||
- 以开发模式运行前端 Run as dev mode | ||
|
||
npm run dev:www | ||
|
||
- 编译前端 Build www | ||
|
||
cd web_src && npm i | ||
cd .. | ||
npm run build:www | ||
|
||
- 编译 Windows 版本 Build windows version | ||
|
||
npm run build:win | ||
|
||
- 编译 Linux/macOS 版本 (在 bash 环境下执行) Build linux/macOS version | ||
|
||
npm run build:lin | ||
|
||
- 清理编译文件 Clean | ||
|
||
npm run clean | ||
|
||
- 打包 Pack | ||
|
||
# install pack | ||
npm i -g @penggy/pack | ||
|
||
# for windows | ||
npm run build:win | ||
pack zip | ||
|
||
# for linux/macOS | ||
npm run build:lin | ||
pack tar | ||
|
||
# for clean | ||
pack clean | ||
|
||
|
||
## 技术支持 | ||
|
||
- 邮件:[[email protected]](mailto:[email protected]) | ||
|
||
- QQ交流群:**436297092** | ||
|
||
- EasyDarwin开源流媒体服务器是属于EasyDarwin开源团队的免费产品,大家免费使用,同时,EasyDarwin开源团队也能提供相应的收费技术咨询、技术服务和技术定制,谢谢大家支持! | ||
|
||
|
||
## 获取更多信息 | ||
|
||
**EasyDarwin**开源项目:[www.EasyDarwin.org](http://www.easydarwin.org) | ||
|
||
Copyright © EasyDarwin Team 2012-2018 | ||
|
||
![EasyDarwin](http://www.easydarwin.org/skin/easydarwin/images/wx_qrcode.jpg) | ||
# EasyDarwin开源流媒体服务器 | ||
|
||
|
||
## 主要功能特点 | ||
|
||
- 基于Golang开发维护; | ||
|
||
- 支持Windows、Linux、macOS平台; | ||
|
||
- 支持RTSP推流分发(推模式转发); | ||
|
||
- 支持RTSP拉流分发(拉模式转发); | ||
|
||
- 服务端录像(参考:https://blog.csdn.net/jyt0551/article/details/84189498); | ||
|
||
- 服务端录像检索与回放 (参考:https://blog.csdn.net/jyt0551/article/details/84189498); | ||
|
||
- 关键帧缓存; | ||
|
||
- 秒开画面; | ||
|
||
- Web后台管理; | ||
|
||
- 分布式负载均衡; | ||
|
||
|
||
## 安装部署 | ||
|
||
- [下载解压 release 包](https://github.com/EasyDarwin/EasyDarwin/releases) | ||
|
||
- 直接运行(Windows) | ||
|
||
EasyDarwin.exe | ||
|
||
以 `Ctrl + C` 停止服务 | ||
|
||
- 以服务启动(Windows) | ||
|
||
ServiceInstall-EasyDarwin.exe | ||
|
||
以 ServiceUninstall-EasyDarwin.exe 卸载 EasyDarwin 服务 | ||
|
||
- 直接运行(Linux/macOS) | ||
|
||
cd EasyDarwin | ||
./easydarwin | ||
# Ctrl + C | ||
|
||
- 以服务启动(Linux/macOS) | ||
|
||
cd EasyDarwin | ||
./start.sh | ||
# ./stop.sh | ||
|
||
- 查看界面 | ||
|
||
打开浏览器输入 [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 udp -vcodec h264 -f rtsp rtsp://localhost/test | ||
|
||
- 测试播放 | ||
|
||
ffplay -rtsp_transport tcp rtsp://localhost/test | ||
|
||
ffplay rtsp://localhost/test | ||
|
||
## 效果图 | ||
|
||
![snapshot](http://ww1.sinaimg.cn/large/79414a05ly1fwzqdbi8efj20w00mrn0c.jpg) | ||
|
||
## 二次开发 | ||
|
||
### 准备工具 | ||
|
||
# go tools | ||
go get -u -v github.com/kardianos/govendor | ||
go get -u -v github.com/penggy/gobuild | ||
|
||
# npm tools | ||
npm i -g apidoc | ||
npm i -g rimraf | ||
|
||
|
||
### 编译命令 | ||
|
||
- 获取代码 | ||
|
||
cd $GOPATH/src/github.com | ||
mkdir EasyDarwin && cd EasyDarwin | ||
git clone https://github.com/EasyDarwin/EasyDarwin.git --depth=1 EasyDarwin | ||
cd EasyDarwin | ||
|
||
- 以开发模式运行 | ||
|
||
npm run dev | ||
|
||
- 以开发模式运行前端 Run as dev mode | ||
|
||
npm run dev:www | ||
|
||
- 编译前端 Build www | ||
|
||
cd web_src && npm i | ||
cd .. | ||
npm run build:www | ||
|
||
- 编译 Windows 版本 Build windows version | ||
|
||
npm run build:win | ||
|
||
- 编译 Linux/macOS 版本 (在 bash 环境下执行) Build linux/macOS version | ||
|
||
npm run build:lin | ||
|
||
- 清理编译文件 Clean | ||
|
||
npm run clean | ||
|
||
- 打包 Pack | ||
|
||
# install pack | ||
npm i -g @penggy/pack | ||
|
||
# for windows | ||
npm run build:win | ||
pack zip | ||
|
||
# for linux/macOS | ||
npm run build:lin | ||
pack tar | ||
|
||
# for clean | ||
pack clean | ||
|
||
|
||
## 技术支持 | ||
|
||
- 邮件:[[email protected]](mailto:[email protected]) | ||
|
||
- QQ交流群:**436297092** | ||
|
||
- EasyDarwin开源流媒体服务器是属于EasyDarwin开源团队的免费产品,大家免费使用,同时,EasyDarwin开源团队也能提供相应的收费技术咨询、技术服务和技术定制,谢谢大家支持! | ||
|
||
|
||
## 获取更多信息 | ||
|
||
**EasyDarwin**开源项目:[www.EasyDarwin.org](http://www.easydarwin.org) | ||
|
||
Copyright © EasyDarwin Team 2012-2018 | ||
|
||
![EasyDarwin](http://www.easydarwin.org/skin/easydarwin/images/wx_qrcode.jpg) |