Skip to content

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

Open
@MardenSSS

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()`

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