Nginx RTMP streaming is not reaching the RTMP endpoint

风格不统一 提交于 2021-01-28 23:32:21

问题


I'm trying to redirect an RTMP streaming from my pc into Ngninx using the nginx-rtmp-module following the examples to redirect the stream into an Azure Media Service live event. But it won't detect the encoder. I'm using the following 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;
        }
    }
}

My OBS is configured to stream to rtmp://191.123.1.72/live with a stream key "test" and using a local VLC I can see the stream if I use rtmp://191.123.1.72/live/test.


回答1:


Push URL should be like below. It works for me.

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

My sample url is push rtmp://p***2-p**imediaservices-usso.channel.media.azure.net:1935 app=live/3b5e8425**********50449d57d379d;.

For more details, you can see answer in this post.



来源:https://stackoverflow.com/questions/63607182/nginx-rtmp-streaming-is-not-reaching-the-rtmp-endpoint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!