https://github.com/xialeistudio/go-rtmp-http-publisher
https://github.com/xialeistudio/go-rtmp-http-publisher
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xialeistudio/go-rtmp-http-publisher
- Owner: xialeistudio
- License: mit
- Created: 2017-11-23T06:42:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-14T14:17:42.000Z (about 1 year ago)
- Last Synced: 2025-03-26T22:05:08.578Z (3 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 20
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README-CN.md
Awesome Lists containing this project
README
# HTTP->RTMP推流Proxy
基于http+ffmpeg开发的RTMP推流代理,解决普通HTTP音/视频无法直接推流到RTMP服务器问题需要安装ffmpeg才能正常使用
## 解决的问题
1. ffmpeg推流需要手动执行shell命令
2. 客户端上传的数据为base64编码过的二进制数据
3. nginx-rtmp-module安全问题,目前只会使用`allow publish`来限制## 程序参数
```bash
ffmpeg-publisher -h
```## HTTP推流
## 客户端请求
```
Url: htt://server_addr/base64
Method: POST
Content-Type: text/plain
Body: audio/video base64Data
```## 服务端响应
```json
{
"errmsg":"ok",
"errcode":0
}
```