Skip to content

使用obs+nginx+rtmp直播

安装nginx

shell
yum install nginx

nginx-rtmp-module地址

shell
https://github.com/arut/nginx-rtmp-module

nginx配制

rtmp配制

rtmp  {
    server  {
        listen 1935;
        chunk_size 4096;
        application live  {
            live on;
            record off;
        }
        application live2  {
            live on;
            record off;
        }
        application vod  {
            play /var/flvs;
        }
        application vod_http  {
            play http://服务器的ip/vod;
        }
        application hls  {
            live on;
            hls on;
            hls_path /tmp/hls;
        }
    }
}

https://blog.csdn.net/qzcsu/article/details/72782759https://www.cxyzjd.com/article/qzcsu/72782759

Released under the MIT License.