frame rate using CAP_PROP_FPS is failed (C++).
I am opening an .avi video file and trying to set the fps to 40.0, but it is not changing.
video.set(CAP_PROP_FPS, 42.0)
I am opening an .avi video file and trying to set the fps to 40.0, but it is not changing.
video.set(CAP_PROP_FPS, 42.0)
Asked: 2019-08-14 13:29:32 -0600
Seen: 111 times
Last updated: Aug 14 '19
imshow() "speed upping" cap >> img; [closed]
Camera suggestion for laser skeet/shooting gallery?
FPS in openCV vs FPS in VLC and Quicktime Player
How to get FPS in OpenCV live capture
Saving frames in a loop doesn't match framerate
accurate method to calculate framerate of input stream
How do you smoothly play through a variable-frame-rate WMV?
VideoCapture get, set FPS property for camera on Windows
Image Processing on Raspberry, reduce frame rate for better performance
I thought it worked only when grabbing from a camera (provided the camera supports it). When grabbing from a file, it is your responsibility to wait some time before retrieving (and displaying) the next frame. If you don't add any wait instructions your program will read and display the video as fast as the storage can provide it.
you simply cannot set the FPS from a video file. You can grab all the frames and make a new video with a new FPS, but your initial idea is just broken...