dji-sdk / Tello-Python

This is a collection of python modules that interact with the Ryze Tello drone.
Other
1.36k stars 646 forks source link

there is no video from tello edu... #55

Open tt503177177 opened 4 years ago

tt503177177 commented 4 years ago

hi all could someone please help me? i use ubuntu 16.04

i open 11111

i copy Tello_Video to my file

install linux_install.sh

use the step from demend to compile h264decoder (at this time libh264decoder.so show up in main.py file)

I type "python main.py" and it can run and can use keyboard to control

but there is no video GUI show up!! neither the snapshot (snapshot will show opencv error but there is no error durring senting command in terminal) (I confirm that there is no wrong with opencv because I install ROS and it will install opencv and other things I need)

Please tell me how to solve it.....is there something step I forgot?

dji-dev commented 4 years ago

Public comment from Ho.Yan in Zendesk ticket #30876:

Dear developer,

Hello, thank you for your feedback.

Under normal circumstances, in the case of tello wifi is already connected, the GUI will pop up the video stream after running the program, and can use the snapshot button normally to take pictures if it is not working properly Consider and check for the following: a. Whether your PC device is properly connected to your tello wifi; b. Check your PC's network firewall, which may block video streaming data; c. Further check your network settings, because tello is the PC's 11111 port video stream data push, so check to see if your network settings disable the 11111UDP port, or the 11111 port of UDP data was blocked. If so, undisable; d. In rare cases, it is possible that the 'streamon' instruction sent by the PC has lost the packet and has not been received by tello, for which case, try re-running the program.

Thank you very much for your understanding and cooperation, I wish you a happy life!

Regards, RYZE TECHNICAL SUPPORT

tt503177177 commented 4 years ago

thanks but i had seen this doucument from ur readme so i want know is there another way to solve? please help meQQQQQQQQQQQQQ

dji-dev commented 4 years ago

Public comment from Ho.Yan in Zendesk ticket #30876:

Dear developer,

Hello, thank you for your feedback.

Please tell me to have any error tips?

Thank you very much for your understanding and cooperation, I wish you a happy life! Regards, RYZE TECHNICAL SUPPORT

ZGX010 commented 4 years ago

I also face this problem , and i setting the network firewall off, i get video streaming data.

luccosta commented 4 years ago

I had the same problem and after enable all the UDP ports in the network firewall the problem stills the same.

All the dependencies are properly installed and like in the other cases, the program run, open the Tkinter GUI, has no stream and the snapshot cause an error in the OpenCV program that I think is the lack of image in the stream.

I'm on Windows 10 in Portuguese. Follows the image of the permission for all UDP ports.

image

luccosta commented 4 years ago

I resolve the problem updating the Tello firmware in the app.

suet-lee commented 4 years ago

@luccosta Hi, what version of the firmware did you update to? I have the 02.04.90.01 version and the video stream is still not working

tt503177177 commented 4 years ago

I also solve bu update in app and i find to it is not work in the virtualbox with linux I install ubuntu in my pc and it solved

tkin91e55 commented 4 years ago

The Tello_Video main.py had died at start, the problem was on video streaming. I disabled it and the UI buttons worked only partly, there had been no video streaming popped out in Tello_Video/Tello_Video_Pose examples. I solved it.

My case was on Mac, macOS Catalina. There were a number of settings in mac_install.sh outdated to run at Python2.7. I compiled the libh264decoder.so, further investigation took me to the line "self.decoder.decode(packet_data)", which did not worked well with ffmpeg (version 4), I brew install ffmpeg@2.8 instead. Points I checked:

(1) ffmpeg need to be older, I got 2.8 worked. Only installed ffmpeg@2.8 doesn't work out of the box, need to tell the python, the .so file to direct to ffmpeg@2.8 (2) the opencv-python used was 3.4.5.20 (3) the pose-recognition link was dead

Refer to https://github.com/tkin91e55/Tello-Python/blob/master/Tello_Video/install/Mac/mac_install.sh