Ask Your Question
1

Get video FPS with VideoCapture

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

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 -0500

icedecker gravatar image

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

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 -0500 )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 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

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

Seen: 19,519 times

Last updated: Oct 19 '12