So, you're trying to tap into your DJI drone's camera feed to use OpenCV, huh? Doesn't matter if it's a DJI Mini 2, DJI Mini 2 SE, or some other model, it can be a real pain, right? I was in the same boat, but after messing around with a bunch of methods, I finally cracked it.
-
(Note: I used AWS EC2)
-
What is RTMP Server?
An RTMP Server is a type of server that uses the Real Time Messaging Protocol (RTMP). This protocol, developed by Adobe Systems, is primarily used for streaming audio, video, and data over the internet. When you create an RTMP Server, you essentially set up a destination for your stream, which can then be accessed and viewed by others on the internet.
sudo apt update && sudo apt upgrade -y
sudo apt install nginx
sudo add-apt-repository universe
sudo add-apt-repository universe
sudo apt install libnginx-mod-rtmp
sudo nano /etc/nginx/nginx.conf or search for "etc/nginx/nginx.conf" with "Win SCP"
Modify NGINX configuration and save (scroll to the bottom of the .conf file and add the following code)
rtmp {
server {
listen 1935;
chunk_size 4096;
application live {
live on;
record off;
}
}
}
sudo systemctl restart nginx
Open the DJI Fly App ⇒ Connect your drone ⇒ Navigate to 'Transmission' ⇒ Click on 'Live Streaming Platforms'. Here, you'll find the RTMP option. Enter your server IP address as shown.
And boom! That's all it takes to tap into your DJI Drone Camera Feed from anywhere with RTMP. Stuck or got a question? just hit me up.