【问题标题】:Custom Livestream Platform For DJI Phantom 4 Pro+DJI Phantom 4 Pro+ 定制直播平台
【发布时间】:2018-03-24 09:50:59
【问题描述】:

编辑:这是我的 ufw 状态:

Status: active

To                         Action      From
--                         ------      ----
80                         ALLOW       Anywhere                  
1935                       ALLOW       Anywhere                  
80 (v6)                    ALLOW       Anywhere (v6)             
1935 (v6)                  ALLOW       Anywhere (v6)

和应用列表:

Available applications:
  CUPS

所以,我对 DJI Phantom 4 Pro+ 进行了调整,发现它支持自定义流平台。我的问题是怎么做?我已经可以创建 NginX RTMP 服务器,但我仍然不知道如何让 Drone 连接并流式传输到它。我已经使用 OBS 测试了我的服务器到 http://{IP}/live 并使用密钥测试并使用 VLC(在我的手机上)在 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;
                }
        }
}

【问题讨论】:

    标签: nginx rtmp live-streaming


    【解决方案1】:

    事实证明我只是愚蠢。对于任何有同样问题的人,不要犯和我一样的错误。我输入 rtmp://{IP}/live/drone/。它应该是 rtmp://{IP}/live/drone(注意缺少的“/”)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多