首页 > 其他 > 详细

[SRS流媒体]RTMP/HLS 直播服务器simple-rtmp-server安装

时间:2016-04-25 00:25:54      阅读:296      评论:0      收藏:0      [点我收藏+]

一个采用MIT协议授权的国产的简单的RTMP/HLS 直播服务器,其核心的价值理念在于简单高效。

使用方法:

tep 1: build srs

tar xf simple-rtmp-server-*.*.tar.gz
cd simple-rtmp-server-*.*/trunk
./configure --with-ssl --with-hls
make

step 2: start srs

./objs/simple_rtmp_server -c conf/srs.conf

step 3(optional): start nginx for HLS

sudo ./objs/nginx/sbin/nginx

step 4: publish live stream

FMS URL: rtmp://127.0.0.1:1935/live
Stream: livestream
For example, use ffmpeg to publish:
ffmpeg -re -i source.flv -vcodec copy -acodec copy \
-f flv -y rtmp://127.0.0.1:1935/live/livestream

step 5: play live stream

rtmp url: rtmp://127.0.0.1:1935/live/livestream
m3u8 url: http://127.0.0.1:80/live/livestream.m3u8
 

[SRS流媒体]RTMP/HLS 直播服务器simple-rtmp-server安装

原文:http://www.cnblogs.com/meetrice/p/5428985.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!