I display the video from the camera with one of these methods.
or by letting FFmpeg do the job
Both work, but I get lots of messages looking like this:

I would like to get rid of them by
a) finding some settings so that the errors don't occur (preferred) or
b) somehow suppressing or redirecting the messages
I tried adding an error handler with the with cv.redirectError(handleError) but it didn't help. Any ideas?
Code:
import cv2
cap = cv2.VideoCapture("udp://@0.0.0.0:11111")
while(True):
# Capture frame-by-frame
ret, frame = cap.read()
if(ret):
cv2.imshow('Tello Video',frame)
if cv2.waitKey(1) == ord('q'):
break
cap.release()
cv.destroyAllWindows()
or by letting FFmpeg do the job
Code:
oscommand FFmpeg -i udp://192.168.10.1:11111 -f sdl "Tello Video"
Both work, but I get lots of messages looking like this:

I would like to get rid of them by
a) finding some settings so that the errors don't occur (preferred) or
b) somehow suppressing or redirecting the messages
I tried adding an error handler with the with cv.redirectError(handleError) but it didn't help. Any ideas?