corrad82 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Error with cvCreateFileCapture() #455

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I need to get frames from video
And I to use some code:
        FrameGrabber grabber = new OpenCVFrameGrabber(new File("target/test-classes/video.mp4"));
        grabber.start();
        opencv_core.IplImage img = grabber.grab();
        cvSaveImage("target/test-classes/frame.jpg", img);

What is the expected output? What do you see instead?
com.googlecode.javacv.FrameGrabber$Exception: cvCreateFileCapture() Error: 
Could not create camera capture.

What version of the product are you using? On what operating system?
JavaCpp - 0.7
JavaCV - 0.7
OpenCV - 2.4.8
Linux 3.2.0-60-generic x86_64

Please provide any additional information below.
If I use the webcam, then everything works fine
        FrameGrabber grabber = new OpenCVFrameGrabber(0);

Original issue reported on code.google.com by ftp27h...@gmail.com on 2 Apr 2014 at 12:33

GoogleCodeExporter commented 8 years ago
Please use FFmpegFrameGrabber, and please ask your questions on the mailing 
list if possible, thank you.

Original comment by samuel.a...@gmail.com on 2 Apr 2014 at 12:58