Skip to content

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 #630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks
shivam1997gupta opened this issue Mar 1, 2022 · 2 comments

Comments

@shivam1997gupta
Copy link

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 shivam1997gupta changed the title Opencv 3.4.1.15 with python 3.6.8 not able to extract all video frames from latest IOS video 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 Mar 1, 2022
@asmorkalov
Copy link
Collaborator

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
Copy link
Collaborator

@shivam1997gupta Do you have any update on the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants