How do you smoothly play through a variable-frame-rate WMV?

asked 2016-02-15 20:29:37 -0600

HesNotTheStig gravatar image

When I open up a Video Capture of a few of my .wmv videos, the fps will come out as "-nan" (not a number). I'm presuming this means that this video uses a variable frame rate.

I'm trying to calculate video signatures for these videos and to do that, I need to know how many frames elapse per second. When the FPS is variable, how do I keep track of passage of time as I continue to call VideoCapture.read(Mat)?

edit retag flag offensive close merge delete