https://github.com/imthaghost/gostream
Golang realtime streaming server
https://github.com/imthaghost/gostream
Last synced: over 1 year ago
JSON representation
Golang realtime streaming server
- Host: GitHub
- URL: https://github.com/imthaghost/gostream
- Owner: imthaghost
- Created: 2020-07-12T22:09:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-22T04:59:31.000Z (almost 6 years ago)
- Last Synced: 2025-02-11T20:51:01.682Z (over 1 year ago)
- Language: Go
- Size: 97.4 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
Simple and efficient live broadcast API. Currently supports commonly used transmission protocols, file formats, and encoding formats. Built in pure Golang, for high performance, and cross-platform.
#### Supported transport protocols
- RTMP
- AMF
- HLS
- HTTP-FLV
#### Supported container formats
- FLV
- TS
#### Supported encoding formats
- H264
- AAC
- MP3
#### Boot from Docker
```bash
# run
docker run -p 1935:1935 -p 7001:7001 -p 7002:7002 -p 8090:8090 -d imthaghost/gostream
```
#### Compile from source
```bash
# download the source code
git clone https://github.com/imthaghost/gostream.git
# change to gostream directory and build
go build
# or
make build
```
#### Options
```bash
./gostream -h
Usage of ./gostream:
--api_addr string HTTP manage interface server listen address (default ":8090")
--config_file string configure filename (default "gostream.yaml")
--flv_dir string output flv file at flvDir/APP/KEY_TIME.flv (default "tmp")
--gop_num int gop num (default 1)
--hls_addr string HLS server listen address (default ":7002")
--hls_keep_after_end Maintains the HLS after the stream ends
--httpflv_addr string HTTP-FLV server listen address (default ":7001")
--level string Log level (default "info")
--read_timeout int read time out (default 10)
--rtmp_addr string RTMP server listen address
```