Skip to content

Instantly share code, notes, and snippets.

@mumrah
Created July 16, 2011 02:49
Show Gist options
  • Save mumrah/1085940 to your computer and use it in GitHub Desktop.
Save mumrah/1085940 to your computer and use it in GitHub Desktop.
JavaCV: read FPS from a file
import static com.googlecode.javacv.cpp.opencv_highgui.*;
public class OpenCVFPSTest {
public static void main(String args[]) {
CvCapture capture = cvCreateFileCapture("big_buck_bunny_480p_surround-fix.avi");
double fps = cvGetCaptureProperty(capture, CV_CAP_PROP_FPS);
System.out.println("FPS: " + fps);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment