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中国学习材料摘要