Comments (12)
Hi, what OS are you using? This seems to be an issue with calling openCV so the environment may come into play
from easytello.
Hi Virodroid,
I'm using Mac os.
I have all the packages installed in the environment.
from easytello.
I haven't been able to test easyTello on MacOS yet. Perhaps it doesn't like the way I'm calling OpenCV. I'll see if I can track down a Mac to do some testing on in future. Everything seems to work fine on Windows 10 and Ubuntu
from easytello.
Comments
@0bscur3
0bscur3 commented 13 days ago
Hi,
I was trying to get the example.py to work, but video stream does not seem to work. I am using python 3.6.9 on Mac OS.
This is my stdout:
pygame 1.9.4
Hello from the pygame community. https://www.pygame.org/contribute.html
Send command: command
Response: ok
Send command: speed 10
Response: ok
Send command: streamoff
Response: ok
Send command: streamon
Response: ok
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] non-existing PPS 0 referenced
[h264 @ 0x7f86968c6600] decode_slice_header error
[h264 @ 0x7f86968c6600] no frame!
[h264 @ 0x7f869801c800] error while decoding MB 48 23, bytestream -5
[h264 @ 0x7f869801fe00] error while decoding MB 30 41, bytestream -8
Thanks!
@acdgr8
acdgr8 commented 1 hour ago
Hi, I'm getting a similar error when trying to switch on the stream. Interestingly, I am able to extract frames out of it using the following code -
from djitellopy import Tello
import cv2
import time
tello =Tello()
tello.connect()
tello.takeoff()
tello.streamon()
count = 0
vidcap = cv2.VideoCapture(tello.get_udp_video_address())
success,image = vidcap.read()
success = True
while success:
vidcap.set(cv2.CAP_PROP_POS_MSEC,(count*1000))
success,image = vidcap.read()
print ('Read a new frame: ', success)
cv2.imwrite("./img/frame%d.jpg" % count, image) # save frame as JPEG file
count = count + 5
And the frames are being stored correctly. Can someone please help out why the videostream is not being displayed in a separate window.
Thanks in advance!
from easytello.
Exactly the same issue here. Any progress on this please?
from easytello.
Me too, I try too run it with macOS,
h264 @ 0x7f99b384ac00] non-existing PPS 0 referenced [h264 @ 0x7f99b384ac00] non-existing PPS 0 referenced [h264 @ 0x7f99b384ac00] decode_slice_header error [h264 @ 0x7f99b384ac00] no frame! [h264 @ 0x7f99b384ac00] non-existing PPS 0 referenced [h264 @ 0x7f99b384ac00] non-existing PPS 0 referenced [h264 @ 0x7f99b384ac00] decode_slice_header error [h264 @ 0x7f99b384ac00] no frame! ....
and so on
from easytello.
Me too, I try too run it with macOS,
h264 @ 0x7f99b384ac00] non-existing PPS 0 referenced [h264 @ 0x7f99b384ac00] non-existing PPS 0 referenced [h264 @ 0x7f99b384ac00] decode_slice_header error [h264 @ 0x7f99b384ac00] no frame! [h264 @ 0x7f99b384ac00] non-existing PPS 0 referenced [h264 @ 0x7f99b384ac00] non-existing PPS 0 referenced [h264 @ 0x7f99b384ac00] decode_slice_header error [h264 @ 0x7f99b384ac00] no frame! ....
and so on
Tengo el mismo problema.... ¿Has encontrado alguna solución?
Gracias
from easytello.
@Virodroid i get the same errors and issue. seems like all 3rd party tello libraries needs to be updated, maybe caused by latest tello firmware update
from easytello.
Having the same issue here. Any news on this?
from easytello.
@Virodroid any updates on this issue?
from easytello.
Unfortunately, I'm not currently in possession of a DJI Tello to continue development of this library. So I won't be able to make or test any updates going forward. That's why this repo isn't really under "active" development anymore.
from easytello.
Turns out the issue for me was that opencv was opening windows in a separate thread. MacOS does not allow (or work well with) GUI operations outside the main thread. Workaround was to move all GUI operations to the main thread.
from easytello.
Related Issues (12)
- Defining Commands HOT 1
- no picture showed HOT 5
- Set speed
- Return frame from library HOT 2
- AttributeError: module 'easytello.tello' has no attribute 'tello'
- Not getting data from tello HOT 1
- error while using vs code studio HOT 1
- Video streaming not working - Windows HOT 1
- Better drone Responses
- Better stats and logging
- Better Commenting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easytello.