[TOC] ## 概述 ### SRS 直播流媒体服务器 ### OBS 推流软件 ### 播放器 可使用软件**VLC**,**potplayer**播放。 可使用[**SRS**在线播放器](http://winlinvip.github.io/srs.release/trunk/research/players/srs_player.html?vhost=__defaultVhost__&autostart=true&server=192.168.1.170&app=live&stream=livestream&port=1935)播放。 ## 安装 ``` git clone https://github.com/ossrs/srs cd srs/trunk ./configure && make > cat conf/srs.conf listen 1935; max_connections 1000; srs_log_tank file; srs_log_file ./objs/srs.log; http_api { enabled on; listen 1985; } http_server { enabled on; listen 8080; dir ./objs/nginx/html; } stats { network 0; disk sda sdb xvda xvdb; } vhost __defaultVhost__ { } // 启动 > ./objs/srs -c conf/srs.conf ``` ## OBS 推流设置 ![UTOOLS1585559912966.png](http://yanxuan.nosdn.127.net/941441991841f177ad14d31d59642fa2.png) ## 拉流 `rtmp://192.168.0.122:1935/live/123` [SRS在线播放器](http://winlinvip.github.io/srs.release/trunk/research/players/srs_player.html?vhost=__defaultVhost__&autostart=true&server=192.168.0.170&app=live&stream=livestream&port=1935)