加载中...

流媒体服务器SRS部署

github地址:https://github.com/ossrs/srs

1,srs下载

http://ossrs.net/srs.release/releases/index.html

选择正式发形版

2,安装

# unzip SRS-CentOS6-x86_64-1.0.32.zip  
# cd SRS-CentOS6-x86_64-1.0.32  
# bash    INSTALL       //安装 
# /etc/init.d/srs start //启动

3,推流

ffmpeg -re -i "/root/test.flv" -vcodec copy -acodec copy -f flv rtmp://192.168.1.3/live/avatar  

  ffmpeg基本使用方法:https://www.jianshu.com/p/d541b317f71c

4,配置集群

vhost __defaultVhost__ {     //从服务器添加以下二行,并重启srs就OK了。  
    mode            remote;  
    origin          192.168.1.3:1935;  //主服务器地址  
}  

  只要在从服务器添加二行配置就行了。

5,官方说明文档

https://github.com/ossrs/srs/wiki/v1_CN_Home

 

posted @ 2018-01-02 19:29  水车  阅读(8248)  评论(0编辑  收藏  举报