Simple and efficient live server:
- Installation and use is very simple;
- Pure Golang writing, high performance, cross-platform;
- Support common transmission protocols, file formats, and encoding formats;
- RTMP
- AMF
- HLS
- HTTP-FLV
- FLV
- TS
- H264
- AAC
- MP3
Directly download the compiled [binary file] (https://github.com/gwuhaolin/livego/releases) and execute it on the command line.
- Download the source
git clone https://github.com/gwuhaolin/livego.git
- Go to the livego directory and execute
go build
- Start the service: execute the
livego
binary to start the livego service; - Upstream Push: Push the video stream to
rtmp://localhost:1935/live/movie
via theRTMP
protocol, for example usingffmpeg -re -i demo.flv -c copy -f flv rtmp:/ /localhost:1935/live/movie
push; - Downstream playback: The following three playback protocols are supported. The playback address is as follows:
-
RTMP
:rtmp://localhost:1935/live/movie
-FLV
:http://127.0.0.1:7001/live/movie.flv
-HLS
:http://127.0.0.1:7002/live/movie.m3u8
[Use with flv.js] (https://github.com/gwuhaolin/blog/issues/3)
Interested in Golang? Please see [Golang Chinese Learning Materials Summary] (http://go.wuhaolin.cn/)