MiaoRong / javacv

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

FFmpegFrameGrabber to grab pre-resized image? #193

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create FFmpegFrameGrabber object
2.Put video in
3.Grab frame

What is the expected output? What do you see instead?
Everything goes well to output a image

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

Please provide any additional information below.
I would like to ask if there is a method to grab resized image, which is not 
the same resolution of the input video.
I would like to do this because I found it too slow to grab several frames from 
a 720p video.
When I try to grab from 360p video, it is extremely fast.

Original issue reported on code.google.com by booker0108@gmail.com on 25 Apr 2012 at 7:03

GoogleCodeExporter commented 9 years ago
Sure, just call
FFmpegFrameGrabber.setImageWidth(360);
FFmpegFrameGrabber.setImageHeight(240);
or whatever before calling start().

Next time, please ask your questions on the mailing list if possible, thank you

Original comment by samuel.a...@gmail.com on 26 Apr 2012 at 4:56