Hi all. I am trying to grab frames from a video and then convert them to a BufferedImage. I will always be grabbing frames in order (so from frame 21 I’ll either go to 20 or 22, never off to 100 or anything) and pausing occasionally.
I have achieved this using JCodec, but it is slow (between 3-15 frames a second)
BufferedImage frame = FrameGrab.getFrame(filmFile, frameNumber);
I’m guessing this is because it’s working its way from the last … keyframe or whatever the term is, whereas it would be quicker if I was simply going from frame 1 to frame 2 and so on.
I’m giving up on JCodec - can anyone else recommend what I should use to achieve this? I have read abut Xuggle, JMF and a few others but I keep reading about how they are abandoned.
(Video is mp4 if that’s of any use)