ffmpeg推流出现Connection to tcp://localhost:1935 failed: Error number -138 occurred问题

找到/usr/local/etc/nginx/nginx.conf 文件,用记事本打开nginx.conf 文件

在nginx.conf的最后添加下面内容:

rtmp {

    server {

        listen 1935;



        application rtmplive {

            live on;

            max_connections 1024;

        }

        application zbcs {

            live on;

            record off;

        }

        application hls{

            live on;

            hls on;

            hls_path /usr/local/var/www/hls;

            hls_fragment 1s;

        }

    }

}

猜你喜欢

转载自blog.csdn.net/little__SuperMan/article/details/89083791