NGINX流式RTMP:没有接受的连接,没有错误

问题描述 投票:0回答:1

我正在尝试通过RTMP将OBS Studio中的视频流发送到VPS上的Nginx服务器问题:nginx似乎未接受URL上的输入,发送时OBS超时

我已经按照本教程来确保nginx具有所需的一切:https://www.vultr.com/docs/setup-nginx-rtmp-on-ubuntu-14-04#Configuring_Software_to_Work_with_Nginx_RTMP

我在运行默认配置文件的VCS(Ubuntu)上具有nginx 1.17.9,并添加了以下RTMP:

rtmp {
    server {
            listen 1935;
            chunk_size 4096;

            application live {
                    live on;
                    record off;
                allow publish all;
        }
        application hlslive {  #rtmp push stream request path 
            live on;
            hls on;
            hls_path /usr/local/nginx/html/;
            hls_fragment 3s;
            hls_playlist_length 18s;
        }

    }
}

我尝试将OBS流传输到rtmp://IP:1935/hlslivertmp://IP:1935/live-我收到一条错误消息,提示尝试超时。我可以访问http://IP/了。我可以测试配置文件并通过。关于如何解决问题的任何建议?

UFW状态已禁用,OBS可以流式传输到其他服务器。

ubuntu nginx streaming rtmp obs
1个回答
0
投票
rtmp://IP:1935/hlslive
© www.soinside.com 2019 - 2024. All rights reserved.