RoboMe
RoboMe

Reputation: 113

How to find out the frame rate of a video?

How to find out the frame rate of a video ?How to do in C++ OpenCV?

I want to read the different number of video with respective of frames per second.

It has to work on all Video formats? .Avi, .MP4, .Flv

Upvotes: 1

Views: 1918

Answers (1)

berak
berak

Reputation: 39786

easy (just take with a grain of salt, see remarks below):

VideoCapture cap("ma.avi");
double fps = cap.get(CV_CAP_PROP_FPS);

Upvotes: 2

Related Questions