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

cv2.error: OpenCV(3.4.3) #7

Open
yasersakkaf opened this issue Dec 18, 2018 · 4 comments
Open

cv2.error: OpenCV(3.4.3) #7

yasersakkaf opened this issue Dec 18, 2018 · 4 comments

Comments

@yasersakkaf
Copy link

yasersakkaf commented Dec 18, 2018

I am getting this error when I try to run this code. I know the error is related to Open CV but can't understand what the error actually is:

Here the code and the error:

import cv2
video = cv2.VideoCapture('video.mp4')
success, image = video.read()
ret, jpeg = cv2.imencode('.jpg', image)
Traceback (most recent call last):
File "", line 1, in
cv2.error: OpenCV(3.4.3) /home/conda/feedstock_root/build_artifacts/opencv_1537056344807/work/modules/imgcodecs/src/grfmt_base.cpp:145: error: (-10:Unknown error code -10) Raw image encoder error: Empty JPEG image (DNL not supported) in function 'throwOnEror'

@rjunior8
Copy link

The same here. Did you solved?

@yasersakkaf
Copy link
Author

I used OpenCV version '4.1.0' and it works for me.
What version of OpenCV are you using?

@rjunior8
Copy link

opencv-python==4.1.0.25

@rjunior8
Copy link

rjunior8 commented Jul 17, 2019

I solved. I executed it in debian and it worked. But it's playing slow. And when I make two connections (2 browsers), I got this:

error while decoding MB 73 15, bytestream 5111
left block unavailable for requested intra mode
error while decoding MB 0 16, bytestream 5097

and then the app stops.

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