Ask Your Question
1

Get video FPS with VideoCapture

asked 2012-10-18 15:16:25 -0600

beowulf gravatar image

How can I get a FPS video opened with VideoCapture.open?

Thank you.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
4

answered 2012-10-19 06:20:37 -0600

icedecker gravatar image

updated 2012-10-19 06:21:44 -0600

You can use the VideoCapture::get. Take a look here. Example of use:

double fps = openedvideo.get(CV_CAP_PROP_FPS)
edit flag offensive delete link more

Comments

I am using this method but only getting answer 0. every time. why is that so?

Muhammad Faraz gravatar imageMuhammad Faraz ( 2013-12-24 11:23:11 -0600 )edit

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…

FJofreA gravatar imageFJofreA ( 2014-08-07 18:20:21 -0600 )edit

Question Tools

Stats

Asked: 2012-10-18 15:16:25 -0600

Seen: 20,920 times

Last updated: Oct 19 '12