rtmp server in go language
seal is rtmp server written by go language, main refer to rtmp server open source https://github.com/ossrs/srs
build
download https://github.com/calabashdad/seal to go path
, run go build
you can also use cross platform build, like build a linux version if you are on mac, run cross_platform_linux
run console mode
./seal -c seal.yaml
run daemon mode
nohup ./seal -c seal.yaml &
mock stream publish
for((;;)); do \
ffmpeg -re -i lindan.flv \
-vcodec copy -acodec copy \
-f flv -y rtmp://127.0.0.1/live/test; \
sleep 3
done
use vlc play
rtmp rtmp://127.0.0.1/live/test
hls http://127.0.0.1:35418/live/test.m3u8
http-flv http://127.0.0.1:35418/live/test.flv
go is cross platform