DJI Phantom 4 Pro+ 定制直播平台
Custom Livestream Platform For DJI Phantom 4 Pro+
Edit : Here's my ufw status:
Status: active
To Action From
-- ------ ----
80 ALLOW Anywhere
1935 ALLOW Anywhere
80 (v6) ALLOW Anywhere (v6)
1935 (v6) ALLOW Anywhere (v6)
And App List:
Available applications:
CUPS
所以,我用DJI Phantom 4 Pro+进行了调整,发现它支持自定义流平台。我的问题是该怎么做?我已经可以创建 NginX RTMP 服务器,但我仍然无法弄清楚如何让无人机连接并流式传输到它。我已经使用 OBS 测试了我的服务器到 http://{IP}/live 的密钥测试,并使用 VLC(在我的 phone 上)在 rtmp://{IP}/live/test 打开它。这是我的 nginx 配置文件:
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;
}
}
}
原来是我傻了。对于任何有同样问题的人,不要犯和我一样的错误。我输入rtmp://{IP}/live/drone/。它应该是 rtmp://{IP}/live/drone(注意缺少的“/”)
Edit : Here's my ufw status:
Status: active To Action From -- ------ ---- 80 ALLOW Anywhere 1935 ALLOW Anywhere 80 (v6) ALLOW Anywhere (v6) 1935 (v6) ALLOW Anywhere (v6)
And App List:
Available applications: CUPS
所以,我用DJI Phantom 4 Pro+进行了调整,发现它支持自定义流平台。我的问题是该怎么做?我已经可以创建 NginX RTMP 服务器,但我仍然无法弄清楚如何让无人机连接并流式传输到它。我已经使用 OBS 测试了我的服务器到 http://{IP}/live 的密钥测试,并使用 VLC(在我的 phone 上)在 rtmp://{IP}/live/test 打开它。这是我的 nginx 配置文件:
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;
}
}
}
原来是我傻了。对于任何有同样问题的人,不要犯和我一样的错误。我输入rtmp://{IP}/live/drone/。它应该是 rtmp://{IP}/live/drone(注意缺少的“/”)