damiafuentes / DJITelloPy

DJI Tello drone python interface using the official Tello SDK. Feel free to contribute!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to grab video frames from video stream

Watchkut opened this issue · comments

I have tried multiple fixes suggested here but i cant get any captures or videos from my Tello Edu.

I get this error:

Traceback (most recent call last):
File "C:\Users\sanur\Desktop\New folder (2)\Tello-Object-Tracking\venv\lib\site-packages\djitellopy\tello.py", line 1049, in init
self.container = av.open(self.address, timeout=(Tello.FRAME_GRAB_TIMEOUT, None))
File "av\container\core.pyx", line 401, in av.container.core.open
File "av\container\core.pyx", line 272, in av.container.core.Container.cinit
File "av\container\core.pyx", line 292, in av.container.core.Container.err_check
File "av\error.pyx", line 336, in av.error.err_check
av.error.ExitError: [Errno 1414092869] Immediate exit requested: 'udp://@0.0.0.0:11111'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\sanur\Desktop\New folder (2)\Tello-Object-Tracking\TelloMain.py", line 28, in
frame_read = me.get_frame_read()
File "C:\Users\sanur\Desktop\New folder (2)\Tello-Object-Tracking\venv\lib\site-packages\djitellopy\enforce_types.py", line 54, in wrapper
return func(*args, **kwargs)
File "C:\Users\sanur\Desktop\New folder (2)\Tello-Object-Tracking\venv\lib\site-packages\djitellopy\tello.py", line 421, in get_frame_read
self.background_frame_read = BackgroundFrameRead(self, address, with_queue, max_queue_len)
File "C:\Users\sanur\Desktop\New folder (2)\Tello-Object-Tracking\venv\lib\site-packages\djitellopy\tello.py", line 1051, in init
raise TelloException('Failed to grab video frames from video stream')

Is your tello connected to a Wifi in client/station mode?
You probably need to update your firmware.

It was. I lowered my python version to 3.8 and it started working.