opencv-python icon indicating copy to clipboard operation
opencv-python copied to clipboard

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

Open MardenSSS opened this issue 2 years ago • 7 comments

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

  • python: 3.8
  • opencv-python: 4.8.1.78
  • ffmpeg: ffmpeg version 6.0-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2023 the FFmpeg developers

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

MardenSSS avatar Oct 20 '23 05:10 MardenSSS

Same Issue +1

weihanchen avatar Feb 26 '24 03:02 weihanchen

+1

xuxianren avatar Mar 19 '24 15:03 xuxianren

Same Issue +1

wildwind0 avatar Jun 14 '24 06:06 wildwind0

+1

iYUYUE avatar Jun 25 '24 17:06 iYUYUE