Skip to content

Wrong FPS with 4.8.0.76 but not with 4.7.0.72 #899

@ChrCoello

Description

@ChrCoello

Expected behaviour

We are expecting to get FPS = 10, as we get with opencv-python 4.7.0.72

import cv2
cap = cv2.VideoCapture('C:\\data\\raw\\avd13_cam6_20221112190637_20221112195338.mp4')
print(cap.get(cv2.CAP_PROP_FPS))

prints 10.0

Actual behaviour

When using the latest version of opencv-python 4.8.0.78, we get 25.

import cv2
cap = cv2.VideoCapture('C:\\data\\raw\\avd13_cam6_20221112190637_20221112195338.mp4')
print(cap.get(cv2.CAP_PROP_FPS))

prints 25.0

Steps to reproduce

Video codec information from VLC
image

  • minimal example code
import cv2
cap = cv2.VideoCapture('C:\\data\\raw\\avd13_cam6_20221112190637_20221112195338.mp4')
print(cap.get(cv2.CAP_PROP_FPS))
  • operating system
    Python in Windows

  • architecture (e.g. x86)

  • opencv-python version
    4.7.0.72
    4.8.0.78

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions