dbaldwin / DroneBlocks-Tello-Camera-With-Python-OpenCV

Take photos and record videos with Tello's camera using a browser-based app and DroneBlocks
https://learn.droneblocks.io/p/opencv-python-and-droneblocks-for-tello-camera-control/
Apache License 2.0
21 stars 12 forks source link

Stream Video From Multiple UAVs in Swarm #1

Open Shatad-Purohit opened 4 years ago

Shatad-Purohit commented 4 years ago

Hello,

Is there any way to live stream videos from multiple UAVs in Swarm at once?

dbaldwin commented 4 years ago

That's a good question. I'm assuming you're referring to Tello EDU?

Shatad-Purohit commented 4 years ago

Thank you very much for your reply. Yes, I am using Tello EDUs.

1. One of the way I tried is: I tried editing the DroneBlocks-Tello-Camera-With-Python-OpenCV/lib/udp.py line 11, self.tello_address = ('192.168.10.1', 8889) instead of using the 192.168.10.1, changed it to 192.168.1.211 which is the IP of Tello EDU when it gets connected to my home wifi. I experimented with single UAV for now. I was able to fly the UAV with this edit, but could not see the video stream.

2. Another way could be to use camera streaming URLs: Is there any way to access the streaming URLs of Tello EDU cameras? In surveillance system with multiple IP Wifi Cameras, they use streaming URLs to access multiple camera streams at a time. These URLs are of the form "http:///cgi-bin/CGIStream.cgi?cmd=GetMJStream".

dbaldwin commented 4 years ago

I believe this is going to be a challenge. We have successfully streamed video from Tello EDU when directly connected to it. Not through the router. The problem I see with trying to get the stream from Tello EDU when connected to the router is that I believe it will try to stream packets to the router when sending the "streamon" command. I'm wondering if we can configure Raspberry PI with multiple wifi dongles to achieve what you're looking for. Since Tello EDU would stream to PI and then we can use ffmpeg to forward that stream to a desktop connected the same router. Yet I don't know how to get multiple streams from PI if two Tello EDUs were configured I believe they would send video to the same port on PI (11111). I'm not sure if those two streams could be separated. You've definitely presented a challenge here. We'll continue to think about it. Let us know if you discover anything from your end.

dipampatel18 commented 5 months ago

@Shatad-Purohit @dbaldwin Were you guys able to find a solution to this? I have everything setup in wifi mode, all I need is swarm streaming. I read somewhere about using NAT to change the port address to different ones so the receiver can handle multiple streams.