seal
seal copied to clipboard
rtmp server in go language
trafficstars
Seal
seal is rtmp server written by go language, main refer to rtmp server open source https://github.com/ossrs/srs
Usage
-
build
download https://github.com/calabashdad/seal to
go path, rungo buildyou 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/testhls
http://127.0.0.1:35418/live/test.m3u8http-flv
http://127.0.0.1:35418/live/test.flv
platform
go is cross platform
- linux
- mac
- windows
support
- rtmp protocol (h264 aac)
- hls (include http server)
- http-flv (include http server)
plan to support
- h265
- transcode(audio to aac)
- http stats query
- video on demand
- video encry
- auth token dynamicly
- mini rtmp server in embed device