我正在尝试通过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/hlslive
或rtmp://IP:1935/live
-我收到一条错误消息,提示尝试超时。我可以访问http://IP/了。我可以测试配置文件并通过。关于如何解决问题的任何建议?
UFW状态已禁用,OBS可以流式传输到其他服务器。
rtmp://IP:1935/hlslive