Hello Tello Pilot!
Join our DJI Tello community & remove this banner.
Sign up

Video streaming issues

Borb

New member
Joined
Feb 21, 2024
Messages
3
Reaction score
0
So i found a piece of code to try out video streaming

from djitellopy import Tello
import cv2

# Initialize Tello drone
me = Tello()
me.connect()
print(me.get_battery())
me.streamoff()
me.streamon()

while True:
# Read frame from Tello's camera
img = me.get_frame_read().frame

# Display the frame
cv2.imshow("Image", img)

# Check for 'q' key press to quit
if cv2.waitKey(1) & 0xFF == ord('q'):
break

# Clean up
me.streamoff()
cv2.destroyAllWindows()

And normally when i try to run it successfully responds to “streamon” and then the code just waits for a long time and then i get an error like

[ WARN: 0030.031] global cap_ffmpeg_impl.hpp:453 _opencv_ffmpeg_interrupt_callback Stream timeout triggered after 30031.619000 [h264 @ 0000023fbb5946c0] missing picture in access unit with size 179895 [h264 @ 0000023fbb5946c0] no frame!
I WARN: 0030.034] global cap_ffmpeg_impl.hpp:453 _opencv_ffmpeg_interrupt_callback Stream timeout triggered after 30033.085000 ms Exception in thread Thread-3 (update_frame):”

And im also not sure if this is related but im seeing a lot of “bad udp lengths” is wifi capture


Let me know if you need further information
Thanks :)
 

New Posts

Members online

Forum statistics

Threads
5,701
Messages
39,968
Members
17,067
Latest member
atapattu

New Posts