0

I'm using the OpenImaj library in Java for my project and i would like to know if there is a way to check if a video is decodable when opened with XuggleVideo ? Because i need to create my own exception class in my project and to do that i need to check if the video is correctly opened.

I tried looking in OpenImaj's API but i didn't found anything.

Do you know if it's possible ? Thanks !

  • 1
    You can check the number of frames to ensure the vidoe is correclty opened using countFrames method from the [docs](http://openimaj.org/apidocs/index.html). The value returned from the method must be greater than zero. – Rengas Jun 29 '16 at 08:41
  • Yeah it does perfectly the job ! Thank you :) – Ali CHERIFI Jul 05 '16 at 10:56

0 Answers0