5.x Linux wheels still cannot decode AV1: 5.0.0.93 predates the dav1d fix (#1209), please release a 5.x build
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
Piste de recherche
Start by comparing the 5.x release state with the merged fix in #1209, especially commit 314eb3d2 and the wheel build configuration. Check how the 4.x wheels were published with dav1d. Done means a 5.x wheel includes the fix and passes the supplied AV1 and H.264 reproduction.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
The Linux AV1 decoding fix from #1209 (which closed #908) is merged into both 4.x and 5.x, but it has only been released on the 4.x line. The newest 5.x wheel on PyPI, 5.0.0.93 (uploaded 2026-07-02), predates the merge (2026-07-27, 314eb3d2), so 5.x users on Linux still cannot read any AV1 video.
Could a 5.x wheel be published that includes the dav1d build from #1209?
Reproduction
Linux x86_64, Python 3.12, wheels from PyPI. Test files made with FFmpeg 8.1:
ffmpeg -f lavfi -i testsrc2=s=640x360:r=25:d=2 -c:v libsvtav1 -pix_fmt yuv420p av1-8bit.mp4
ffmpeg -f lavfi -i testsrc2=s=640x360:r=25:d=2 -c:v libsvtav1 -pix_fmt yuv420p10le av1-10bit.mp4
ffmpeg -f lavfi -i testsrc2=s=640x360:r=25:d=2 -c:v libx264 -pix_fmt yuv420p h264.mp4
import cv2
for f in ["av1-8bit.mp4", "av1-10bit.mp4", "h264.mp4"]:
cap = cv2.VideoCapture(f, cv2.CAP_FFMPEG)
print(f, "opened:", cap.isOpened(), "read:", cap.read()[0])
| Wheel | av1-8bit.mp4 |
av1-10bit.mp4 |
h264.mp4 |
|---|---|---|---|
opencv-python-headless==4.14.0.94 |
read: True | read: True | read: True |
opencv-python-headless==5.0.0.93 |
read: False | read: False | read: True |
(opencv-python==5.0.0.93 behaves the same as the headless wheel.)
With 5.0.0.93, isOpened() returns True, so the failure is silent apart from the FFmpeg log:
[av1 @ 0x...] Your platform doesn't support hardware accelerated AV1 decoding.
[av1 @ 0x...] Failed to get pixel format.
[av1 @ 0x...] Get current frame error
Diagnosis
Querying the libavcodec bundled in the 5.0.0.93 wheel (opencv_python.libs/libavcodec-*.so.62.28.101) with avcodec_find_decoder_by_name:
| Decoder | Present |
|---|---|
av1 (FFmpeg's native decoder, which needs a hwaccel) |
yes |
libdav1d |
no |
libaom-av1 |
no |
So there is no software AV1 decoder, which is what #1209 adds. (The wheel does ship a libaom shared object, but libavcodec does not register a decoder for it.)
Workaround
Pin opencv-python(-headless)==4.14.0.94, or transcode to H.264 before reading.
Related
- #908: original report, closed by #1209
- #1209: the fix (dav1d in the manylinux and musllinux images), merged into
4.xand present on5.xas314eb3d2
- Langage dominant
- Python
- Étoiles
- 5.4k
- Forks
- 1k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de opencv/opencv-python
-
[DOC] README filePeut-être à nouveau libre @jadhavroshani713-sys l’a pris il y a 74 jours, et aucune pull request n’est ouverte. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
opencv/opencv-python#1217 · 3 commentaires ·
-
Dependency specification missing for python3.14Peut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
opencv/opencv-python#1165 · 2 commentaires · 1 réaction ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
opencv/opencv-python#1273 · 1 commentaire ·
-
FFMPEG v8.1.1 vulnerabilitiesOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
opencv/opencv-python#1272 · 2 commentaires ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 70/100
opencv/opencv-python#1268 · 1 commentaire ·
Toutes les issues de opencv/opencv-python
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
MystenLabs/MemWal#1163 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
infertopics leaves new nodes without a topic when untopiced neighbours outnumber topiced onesPeut-être pris @moneebullah25 l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
FinanceFlash/unvibecode#218 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
NVIDIA/earth2studio#1241 ·
Les mainteneurs répondent en général sous 3 jours