Ask Your Question

Revision history [back]

FPS in openCV vs FPS in VLC and Quicktime Player

Hello,

I am using openCV 2.4.11 for video analysing. I need a very precise framerate because I want to sync it with other data. When I use double fps = m_capture.get(CV_CAP_PROP_FPS); I get a framerate of 29.9167 FPS. But if I check the framerate in video players I get 28.45 FPS (Qucktime Player) and 28.447906 FPS (VLC). Windows shows 28 FPS. Which framerate is correct? Why does openCV get another framerate than the video players and windows which all seem to get the same just with different accuracies? I also consider using double pos = m_capture.get(CV_CAP_PROP_POS_MSEC);. Is this reliable?

I would be glad if someone helped me with this issue.