kanolas / javacv

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

How to get a video capture picture file? #410

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. get a video capture  picture file (png or jpg)
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
0.7 Android 

Please provide any additional information below.

Original issue reported on code.google.com by bladepoi...@gmail.com on 15 Jan 2014 at 1:54

GoogleCodeExporter commented 8 years ago
We can do it with something like this:

FrameGrabber grabber = new FFmpegFrameGrabber(filename);
grabber.start();

IplImage image;
while ((image = grabber.grab()) != null) {
    cvSaveImage(filename2, image);
}

And please post your questions on the mailing list next time if possible, thank 
you!

Original comment by samuel.a...@gmail.com on 19 Jan 2014 at 8:02