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

Opencv 3.4.1.15 with python 3.6.8 not able to extract all video frames from latest version 15.3.1 IOS video

Open shivam1997gupta opened this issue 2 years ago • 2 comments

Expected behaviour

Getting all 300 frames from the video Write here how did you expect the library to function. cv2.VideoCapture(videopath) should extract all the frames from the video

Actual behaviour

vs = cv2.VideoCapture(videopath) while True: _,frame = vs.read()

The above code is not reading all frames

Write here what went wrong. Expected to read all frames, but just after 30 frames, I am getting a NULL frame.

Steps to reproduce

  • example code
  • operating system
  • architecture (e.g. x86)
  • OpenCV-python version
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 No I am using OpenCV3.4.1.15 with python 3.6.8

shivam1997gupta avatar Mar 01 '22 08:03 shivam1997gupta

OpenCV uses external libraries and platform specific APIs for video decoding. Please share the video file with dropped frames and cv.getBuildInformation() function output. Also OpenCV may use different APIs for different file types. Could you also run the reproducer with OPENCV_VIDEOIO_DEBUG=1 environment option. See https://github.com/opencv/opencv/wiki/OpenCV-Debugging-Facilities#video-io--cameras for details.

asmorkalov avatar Mar 02 '22 06:03 asmorkalov

@shivam1997gupta Do you have any update on the issue?

asmorkalov avatar Mar 22 '22 06:03 asmorkalov