Ask Your Question

Revision history [back]

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

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)?