Nginx RTMP流未达到RTMP端点

问题描述

我正在尝试使用nginx-rtmp-module之后的examples将RTMP流从我的电脑重定向到Ngninx,以将流重定向到Azure媒体服务实时事件。但是它不会检测到编码器。我正在使用以下Nginx.conf:

events {}
rtmp {
    server {
        listen 1935;
        chunk_size 4096;

        application live {
            live on;
            record off;
            push rtmp://d-myamsacc-usct.channel.media.azure.net:1935/live/x4t/x4t;
        }
    }
}

我的OBS配置为使用流键“ test”流至rtmp://191.123.1.72/live,并使用本地VLC,如果我使用rtmp://191.123.1.72/live/test,则可以看到该流。

解决方法

推送网址应如下所示。它对我有用。

application live {
        live on;
        record off;
        push rtmp://d-myamsacc-usct.channel.media.azure.net:1935 app=live/x4t/x4t;
}

我的示例网址是push rtmp://p***2-p**imediaservices-usso.channel.media.azure.net:1935 app=live/3b5e8425**********50449d57d379d;

enter image description here

有关更多详细信息,您可以see answer in this post