【问题标题】:NGINX streaming RTMP: no accepted connections, no errorsNGINX 流式 RTMP:没有接受的连接,没有错误
【发布时间】:2020-03-16 00:26:06
【问题描述】:

我正在尝试通过 RTMP 从 OBS 工作室将视频流发送到 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】:
    rtmp://IP:1935/hlslive
    

    这是应用程序的路径,而不是流的路径。

    例如:rtmp://IP:1935/hlslive/teststream

    使用此示例 URL,您将在 hlslive 应用程序下拥有 teststream。同样的模式也适用于其他应用程序。

    语法很基础

    rtmp://nginxip:port/application/streamname
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-15
      • 1970-01-01
      相关资源
      最近更新 更多