我在win32上玩过nginx和rtmp模块。我可以从obs studio到nginx,再从nginx到youtube,twitch和facebook之类的服务。我还下载了2个存储库以将流嵌入到网页中
https://github.com/illuspas/nginx-rtmp-win32
https://github.com/dfsilva/rtmp-web-player
他们两个昨天都工作了,但是今天他们停止了工作。我真的不知道为什么,我什么都没改变。我还发现,我什至不能在VLC中查看它-不仅是本地的,也不是从外部查看的。我还看到只有一秒钟的流量,然后它停止了。在Wireshark中,我已经看到每次连接都会自行重置(RST ACK)。任何想法可能是什么?没有防火墙(现在),所以那不是问题。我还可以像以前一样流式传输到任何服务。
使用rtmpdump也没有流量,也没有输出
rtmpdump v2.3
(c) 2010 Andrej Stepanchuk,Howard Chu,The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
ERROR: RTMP_ReadPacket,failed to read RTMP packet header
但是nginx记录rtmp尝试。这是我的配置
worker_processes 1;
events {
worker_connections 8192;
}
rtmp {
access_log logs/rtmp-access.log;
server {
listen 1935;
application live {
live on;
record off;
meta copy;
push rtmp://localhost:1935/source/$name;
}
application source {
live on;
record off;
meta copy;
}
}
}
http {
server {
listen 8080;
location / {
root html;
index index.html;
}
}
}
修改:我也尝试过
https://www.hlsplayer.net/rtmp-player
https://www.hlstester.com/
Edit2 我可以确认vlc正常工作,可以使用vlc流式传输到所有服务。 真诚的