一个采用MIT协议授权的国产的简单的RTMP/HLS直播服务器,其核心的价值理念在于简单高效。
使用方法:
tep1:buildsrs
tar xf simple-rtmp-server-*.*.tar.gzcd simple-rtmp-server-*.*/trunk./configure --with-ssl --with-hlsmakestep2:startsrs
./objs/simple_rtmp_server -c conf/srs.confstep3(optional):startnginxforHLS
sudo ./objs/nginx/sbin/nginxstep4:publishlivestream
FMS URL: rtmp://127.0.0.1:1935/liveStream: livestreamFor example, use ffmpeg to publish: ffmpeg -re -i source.flv -vcodec copy -acodec copy \ -f flv -y rtmp://127.0.0.1:1935/live/livestreamstep5:playlivestream
rtmp url: rtmp://127.0.0.1:1935/live/livestreamm3u8 url: https://127.0.0.1:80/live/livestream.m3u8
评论