我正在尝试通过RTMP从OBS studio向nginx服务器发送视频流,出现VPS问题: nginx似乎不接受URL上的输入,OBS在发送时超时
我遵循了这个教程来确保nginx拥有它所需要的一切:https://www.vultr.com/docs/setup-nginx-rtmp-on-ubuntu-14-04#Configuring_Software_to_Work_with_Nginx_RTMP
我让nginx 1.17.9在VCS (Ubuntu)上运行默认配置文件,并添加了以下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可以流到其他服务器。
发布于 2020-03-24 04:13:57
rtmp://IP:1935/hlslive这是应用程序的路径,不是流的路径。
例如:rtmp://IP:1935/hlslive/teststream
在这个示例URL中,您将拥有hlslive应用程序下的teststream。同样的模式也适用于其他应用。
语法是非常基础的
rtmp://nginxip:port/application/streamnamehttps://stackoverflow.com/questions/60699010
复制相似问题