Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video streaming error - error while decoding MB 22 30, bytestream 127 error while decoding MB 58 37, bytestream -6 #215

Open
mathur01 opened this issue Jan 5, 2024 · 1 comment

Comments

@mathur01
Copy link

mathur01 commented Jan 5, 2024

Running dji tello code with Ubuntu 22. Video streaming not working. Same code works with windows OS. Here are details of error:

base) nirbhay@nirbhay:~/Desktop/Tello_code$ python LiveStream.py 
[INFO] tello.py - 129 - Tello instance was initialized. Host: '192.168.10.1'. Port: '8889'.
[INFO] tello.py - 438 - Send command: 'command'
[INFO] tello.py - 462 - Response command: 'ok'
Drone Battery Percentage:
100
Live Stream Address:
udp://@0.0.0.0:11111
[INFO] tello.py - 438 - Send command: 'streamon'
[INFO] tello.py - 462 - Response streamon: 'ok'
non-existing PPS 0 referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS 0 referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS 0 referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS 0 referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS 0 referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS 0 referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
error while decoding MB 22 30, bytestream 127
error while decoding MB 58 37, bytestream -6

Here is my code :

from djitellopy import Tello
import cv2
import time
#import libh264decoder

drone = Tello()
drone.connect()
print("Drone Battery Percentage:")
print(drone.get_battery())
print("Live Stream Address:")
print(drone.get_udp_video_address())

drone.streamon()

while True:
    img=drone.get_frame_read().frame
    #print("image:",img)
    img=cv2.resize(img,(660,420))
    cv2.imshow("Image",img)
    #time.sleep(3)
    cv2.waitKey(1)

    #time.sleep(1)

OS : Ubuntu 22

@tugayalperen
Copy link

Is there any update on this issue? I am having exactly the same errors as of today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants