Get video FPS with VideoCapture
How can I get a FPS video opened with VideoCapture.open?
Thank you.
You can use the VideoCapture::get
. Take a look here. Example of use:
double fps = openedvideo.get(CV_CAP_PROP_FPS)
I am using this method but only getting answer 0. every time. why is that so?
I think it´s because it is a frame-by-frame acquiring process, so the fps are 0 (-1 in my case). Therefore the question should be: what is the refresh rate? And I need the answer for that question! I think the CV_CAP_PROP_FPS works only while reading a video from a file…
Asked: 2012-10-18 15:16:25 -0600
Seen: 20,940 times
Last updated: Oct 19 '12