livego
0.0.20
簡單有效的實時廣播服務器:
直接下載編譯的二進製文件後,請在命令行上執行。
運行docker run -p 1935:1935 -p 7001:7001 -p 7002:7002 -p 8090:8090 -d gwuhaolin/livego開始
git clone https://github.com/gwuhaolin/livego.gitgo build或make build make run以啟動LiveGo服務;http://localhost:8090/control/get?room=movie和復制數據,從channekey中獲取ChannelKey(用於推開視頻流)(用於推開視頻流)。rtmp://localhost:1935/{appname}/{channelkey}通過RTMP協議(默認的appName live ),例如,使用ffmpeg -re -i demo.flv -c copy -f flv rtmp://localhost:1935/{appname}/{channelkey} flv);RTMP : rtmp://localhost:1935/{appname}/movieFLV : http://127.0.0.1:7001/{appname}/movie.flv 7001/ {Appname }/movie.flvHLS : http://127.0.0.1:7002/{appname}/movie.m3u8 :7002/ {Appname }/movie.m3u8所有選項:
./livego -h
Usage of ./livego:
--api_addr string HTTP manage interface server listen address (default " :8090 " )
--config_file string configure filename (default " livego.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對Golang感興趣?請參閱Golang中國學習材料摘要