akiaWT
akiaWT

Reputation: 50

Extract frames from a video using OpenImaj in Java

for (MBFImage mbfImage : video) {
DisplayUtilities.displayName(mbfImage.process(new CannyEdgeDetector()), "videoFrames");

I need to extract frames from a video and I'm using Java platform.

I'm expecting to use the OpenIMAJ Library to do that. I want to know are their any other better solutions for this (better processing time)? And also the average processing time and speed of OpenImaj to extract frames from a video.

Edited:

I need to extract local video files. I'm not going to implement anything else with OpenIMAJ. I just need OpenIMAJ to extract frames and loop through them. I need to know the time that OpenIMAJ takes to extract frames from a video. Is it something slow, comparing with other libraries(openCV, FFMPEG).

Upvotes: 1

Views: 889

Answers (1)

Jon
Jon

Reputation: 841

Under the hood, OpenIMAJ (and I believe OpenCV, depending on which capture driver is being used) use ffmpeg/libav to do the decoding. I don't believe there should be much difference in performance between any of them.

Upvotes: 0

Related Questions