问题
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