Simple RTMP-based live stream server written in Go.
- RTMP
- HLS
- FLV
- Download source codes:
git clone https://github.com/frankchang0125/go-live-stream.git
cd go-live-stream
go build
Execute go-live-stream
ffmpeg -re -i <Your FLV file> -c copy -f flv rtmp://localhost:1935/golive/mylive
- Open preferences
- Switch to
Stream
tab - Change URL to:
rtmp://localhost:1935/golive
- Change Stream key to:
mylive
Open Network URL: rtmp://localhost:1935/golive/mylive
ffplay rtmp://localhost:1935/golive/mylive
- Second and later stream receivers on the same published stream cannot play the stream correctly.
- When packet buffer (size: 1024 video/audio packets) of a published stream has fulled and starting dropping packets, the later connected stream recevier cannot play the stream correctly.