-
Notifications
You must be signed in to change notification settings - Fork 940
Closed
Labels
Description
Expected behaviour
I want to get the frame rate.
Actual behaviour
[ERROR:0@0.002] global /build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (1108) open Could not find decoder for codec_id=56
[ERROR:0@0.002] global /build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (1140) open VIDEOIO/FFMPEG: Failed to initialize VideoCapture
The frame rate obtained is 0.0
Steps to reproduce
import cv2
cap=cv2.VideoCapture(r"1.avi")
print(cap.get(5))
Windows 10
X64
python3.7.3 opencv-python 4.5.5.64
Issue submission checklist
- This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
- I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
- The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
- I'm using the latest version of
opencv-python