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

Streamon problem using djitellopy

strat-o

New member
Joined
Jun 21, 2021
Messages
2
Reaction score
0
Hi all, I just started learning Tello programming using djitellopy. Most things work but I'm having problems with the streamon command. When I issue the command I get:

[INFO] tello.py - 106 - Tello instance was initialized. Host: '192.168.10.1'. Port: '8889'. [INFO] tello.py - 421 - Send command: 'command' [INFO] tello.py - 445 - Response command: 'ok' 68 [INFO] tello.py - 421 - Send command: 'streamon' [INFO] tello.py - 445 - Response streamon: 'ok' [h264 @ 00000210761cb800] non-existing PPS 0 referenced [h264 @ 00000210761cb800] non-existing PPS 0 referenced [h264 @ 00000210761cb800] decode_slice_header error [h264 @ 00000210761cb800] no frame! [h264 @ 00000210761cb800] non-existing PPS 0 referenced [h264 @ 00000210761cb800] non-existing PPS 0 referenced [h264 @ 00000210761cb800] decode_slice_header error [h264 @ 00000210761cb800] no frame!

I had been looking at this problem for a while and I thought I had found the cause. Some people were experiencing problems with their firewall software. I am using WIndows 10 and am using the Windows Defender firewall. So I created a rule allowing UDP port 11111 to be allowed. Unfortunately, I am stilll getting the problem.

My code is very short and simple:
# view video from djitellopy import tello import cv2 me = tello.Tello() me.connect() print(me.get_battery()) me.streamon() while True: img = me.get_frame_read().frame img = cv2.resize(img, (360, 240)) cv2.imshow("Window View") cv2.waitKey()

Any ideas on a solution?

Looks like a lot of people here are having the same problem:
Here

I'm running on windows and using Python 3.9.1. Some say to use an older version of Python.
 
Last edited:
Hi, I have also faced a similar situation while I was building my app on Windows 10. What worked for me was downgrading OpenCV from latest version(4.5.2) to the previous version(4.5.1). Apparently, there was some issue with the latest OpenCV working along FFMPEG on Windows 10.
I followed this answer for an officially reported issue on DJITelloPY Github Issues.

My working dev environment for the project:
1. Windows 10
2. Python 3.8
3. opencv-python 4.5.1.48

Try and see if this works for you.
 
Hi, I have also faced a similar situation while I was building my app on Windows 10. What worked for me was downgrading OpenCV from latest version(4.5.2) to the previous version(4.5.1). Apparently, there was some issue with the latest OpenCV working along FFMPEG on Windows 10.
I followed this answer for an officially reported issue on DJITelloPY Github Issues.

My working dev environment for the project:
1. Windows 10
2. Python 3.8
3. opencv-python 4.5.1.48

Try and see if this works for you.
Hey AI drone, Thanks a lot buddy your solution works for me, struggling with the issue.
Just changing the OpenCV version to 4.5.1.48 resolved the issue.
 

New Posts

Members online

No members online now.

Forum statistics

Threads
5,700
Messages
39,967
Members
17,062
Latest member
UcioVV

New Posts