Skip to content

Problem: Your platform doesn't suppport hardware accelerated AV1 decoding. Failed to get pixel format. #908

Description

@MardenSSS

Hello, I have a problem when using opencv-python:
System information (version):

I just want to extract frame, but it got an unexpected error:
image

Here is my demo code:
`import cv2

video_path = "/home/marden/source/video/sample.mp4"
cap = cv2.VideoCapture(video_path)

if not cap.isOpened():
print("Error: Could not open video file.")
exit()

ret, frame = cap.read()

if not ret:
print("Error: Could not read frame.")
exit()

cv2.imwrite("frame.jpg", frame)

cap.release()`

Activity

  1. weihanchen commented on Feb 26, 2024

    @weihanchen

    Same Issue +1

  2. xuxianren commented on Mar 19, 2024

    @xuxianren

    +1

  3. wildwind0 commented on Jun 14, 2024

    @wildwind0

    Same Issue +1

  4. iYUYUE commented on Jun 25, 2024

    @iYUYUE

    +1

  5. bc-anam commented on Nov 24, 2024

    @bc-anam

    +1

  6. EricSheng0402 commented on Dec 10, 2024

    @EricSheng0402

    +1

  7. hankzoid commented on Jan 21, 2025

    @hankzoid

    +1

  8. added a commit that references this issue on Aug 10, 2026
    314eb3d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions