https://github.com/jbl19860422/go_srs
a rtmp server similar with srs but wrote by golang
https://github.com/jbl19860422/go_srs
go hls-live-streaming http-flv media-server rtmp rtmp-protocol rtmp-server srs ts
Last synced: 11 months ago
JSON representation
a rtmp server similar with srs but wrote by golang
- Host: GitHub
- URL: https://github.com/jbl19860422/go_srs
- Owner: jbl19860422
- License: mit
- Created: 2019-05-25T02:38:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-17T08:28:49.000Z (almost 6 years ago)
- Last Synced: 2024-06-20T03:34:56.259Z (almost 2 years ago)
- Topics: go, hls-live-streaming, http-flv, media-server, rtmp, rtmp-protocol, rtmp-server, srs, ts
- Language: Go
- Homepage:
- Size: 67.4 MB
- Stars: 38
- Watchers: 7
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go_srs
a rtmp server similar with srs, but is wrote by golang
## 目录说明
| 目录 | 说明 |
|:------|:------|
| app | 应用层 |
| codec | 编解码器解析层 |
| global | 全局变量存放 |
| main | main入口 |
| protocol | 包含amf0协议,rtmp协议 |
| utils | 存放工具类 |
------
## protocol目录:
| 目录 | 说明 |
|:------|:------|
| amf0 | amf0协议实现 |
| packet | 信令包封包解包 |
| rtmp | rtmp协议,chunk,message |
| skt | 网络层 |
## 运行方法
go run main.go
obs推流地址:
* rtmp://ip:port/app/live?vhost=srs.net
* vhost对应在配置文件中配置的vhost
拉流地址:
* ffplay rtmp://ip:port/app/live?vhost=srs.net
* ffplay http://ip:port/app/live.flv?vhost=srs.net
* ffplay http://ip:port/hls/app/live.hls/vhost=srs.net
录制文件目录:
* go_srs/srs/main/html/app/xxx.hls
* go_srs/srs/main/html/app/xxx.flv