I'm using OpenCV 2.4.8 with the supplied Windows 64bit Java jar. I've been making full use of OpenCV in my current environment up until this point.
I'm unable to open video files using the
VideoCapture
class however webcam feeds work just fine.
The below works as expected with video.isOpened
returning true
VideoCapture video = new VideoCapture();
boolean result = video.open(0);
The below fails with video.isOpened
returning false
VideoCapture video = new VideoCapture();
boolean result = video.open("res/hand-test-1.mp4");
Neither file formats seems to make a difference (These are converted, not just renamed in hope)
video.open("res/hand-test-1.mp4");
video.open("res/hand-test-1.avi");
video.open("res/hand-test-1.wmv");
Location seems to matter not either.
video.open("C:/hand-test-1.mp4");
video.open("C:\\hand-test-1.mp4");
video.open("hand-test-1.mp4");
Neither does garbage, no exception kicked up from OpenCV through Java either, seems to fail silently.
video.open("ashdkfhkajsjdfkhaksdf");
PATH contains the ffmpeg directory supplied with the opencv installation,
C:\dev\opencv\sources\3rdparty\ffmpeg
Right now I've run out of ideas, it seems like whatever I throw to the native via video.open(String)
will return false.
Any help would be much appreciated