You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect the imencode AVIF to work properly, as it's supported by the upstream OpenCV.
Actual behaviour
cv2.imencode('.avif', img)
cv2.error: OpenCV(4.10.0) /io/opencv/modules/imgcodecs/src/loadsave.cpp:1141: error: (-2:Unspecified error) could not find encoder for the specified extension in function 'imencode'
I have tried installing libavif on my system but that did not resolve the issue. I believe this is a build-time issue.
AVIF support depends on libavif library. The dependency is optional and has a lot of own 3rd-parties. AVIF is disabled in opencv-python package for now. You have to re-built OpenCV to get it supported.
Hello. I think it's an oversight and major blocker as AVIF adoption keeps growing. This forced me to switch to Pillow that is unfortunately slower than opencv.
and has a lot of own 3rd-parties
Could you please clarify? libavif depends on codec implementation, let's say libaom - is there anything else? How does it differ from other formats currently supported?
You have to re-built OpenCV to get it supported.
Can you please guide me with resources so I know how to do that? I'm not experienced with this.
Expected behaviour
I expect the imencode AVIF to work properly, as it's supported by the upstream OpenCV.
Actual behaviour
I have tried installing libavif on my system but that did not resolve the issue. I believe this is a build-time issue.
Steps to reproduce
The text was updated successfully, but these errors were encountered: