Super simple video implementation of DJI tello drone (very little code)

It has been a year since the DJI tello drone came out, and the function of viewing videos with PCs was only opened this year. After 2 days of exploration, it was finally realized in a simple way. I dare not enjoy it alone and share it.

1. Connect to the wifi of tello:

2. Use the udp component to send the open video stream command "streamon"

       IdUDPClient1.Host:='192.168.10.1';
       IdUDPClient1.Port:=8889;
       IdUDPClient1.Active:=True;
       IdUDPClient1.Send('command');
       IdUDPClient1.Send('streamon');//Open the video

3. Run ffplay in ffmpeg to view the video: enter "ffplay -f h264 udp://0.0.0.0:11111" in cmd

4. Display the results (with a delay of about 2 seconds, not very clear)

5. Turn off the video stream "streamoff"

       IdUDPClient1.Host:='192.168.10.1';
       IdUDPClient1.Port:=8889;
       IdUDPClient1.Active:=True;
       IdUDPClient1.Send('command');
               IdUDPClient1.Send('streamonoff');//Off video

 

Intelligent Recommendation

HTML implementation video player (super simple)

Look at the renderings first: So, The following display code...

DJI Tello EDU UAV python control tutorial 2-Use Tello-Python-master sample program to control Tello EDU

Use Tello-Python-master sample program to control Tello EDU In the last article, we should be able to use socket debugging tools to control Tello EDU drones. In this article, we will use the "aut...

Android DJI drone docking Daniu live SDK video h.264 yard push

Preliminary preparation 1: Create a Jnilibs file package to copy the SO package and the jar package jar package in the jnilibs file package under the app/src/main. 2: COM.DANIULIVE.SMARTPUBLISHER file...

Jquery super-simple mask layer implementation code

1. style set as follows: CSS code: <style type="text/css"> #dialog{ z-index: 999; position: absolute; display: none; } #mask {        position: absolute;  top:...

Jquery super simple mask layer implementation code

In development, in order to avoid secondary submission, the use of mask layer is becoming more and more common After reading a lot of code, let me share with you the simplest way to realize the mask l...

More Recommendation

Java connects DJI drone data on the web platform, realizes real-time video transmission, supports audio support online viewing, window platform

Requirements: java docking with DJI drone to realize drone video data transmission to browser large screen Our company recently purchased a DJI drone, ready to capture a large screen data of real-time...

Super simple, super practical version upgrade gadget----code implementation

Continued The webserver uses resin3.1.9, first configure the invoker method in web.xml to process the request.   Then write a search.jsp, select the start, end date, will be submitted to the Upda...

Python implementation is super simple [Tikyin] batch download of no watermark video

Preface The text and pictures in this article are from the Internet and are for learning and communication purposes only. They do not have any commercial use. The copyright belongs to the original aut...

PID simple C++ code implementation, the code is very short

Streamlined C++ code implementation of PID algorithm A concise explanation of PID control C++ code implementation for pid algorithm The last run result A concise explanation of PID control There are a...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top