title: open video file with opencv java
body: <p>so there is OpenCV for <a href="http://opencv.org/opencv-java-api.html" rel="nofollow noreferrer">Java now...</a>!
  Can anyone tell me how to open Videofiles with it ?</p>
  
  <p>I tryed and look all over the internet, but found nothing. The documentation of the VideoCapture class is not very helpfull, becaus it gives a C# example and show how to capture from a webcam.</p>
  
  <p>the <a href="http://answers.opencv.org/question/10274/desktop-java-how-to-load-video-file/" rel="nofollow noreferrer">Q&amp;A of OpenCV</a> doesnt help either, because there is no (public) method to whom you can give a filename string. </p>
  
  <p>BUT it <em>should</em> work as written in the API. But it doesn't
  There is however a privte method in the VideoCapture class with a sting parameter.</p>
  
  <p>please answer if have a solution, or even if you have the same problem.
  garyee</p>
  
  <p><strong>UPDATE: (May 2017)</strong></p>
  
  <p>since Version 3.0.0 There is a constructor for the VideoCapture class that takes a string argument. So there is a easy solution to this Problem now!</p>