编辑:这是我的ufw状态:
Status: active To Action From -- ------ ---- 80 ALLOW Anywhere 1935 ALLOW Anywhere 80 (v6) ALLOW Anywhere (v6) 1935 (v6) ALLOW Anywhere (v6)
和App List:
Available applications: CUPS
所以,我调整了DJI Phantom 4 Pro +并发现它支持自定义流平台。我的问题是如何做到这一点?我已经可以创建NginX RTMP服务器,但我仍然无法弄清楚如何使无人机连接并流式传输它。我已经使用OBS测试我的服务器到http:// {IP} / live with key test并使用VLC(在我的手机上)在rtmp:// {IP} / live / test打开它。这是我的nginx conf:
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 192.168.0.39:80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
rtmp {
server {
listen 192.168.0.39:1935;
chunk_size 4096;
application live {
live on;
record off;
}
}
}
答案 0 :(得分:1)
事实证明我只是愚蠢。对于有同样问题的人,不要犯同样的错误。我输入rtmp:// {IP} / live / drone /。它应该是rtmp:// {IP} / live / drone(注意缺少" /")