Skip to content
Advertisement

How can I get a frame sample (jpeg) from a video (mov)

I want to get a frame sample (jpeg) from a video file (mov) with java. Is there an easy way to do this. When I search in google all I can find is to make mov from multiple jpgs. I dont know maybe I cannot find the right keywords.

Advertisement

Answer

Xuggler does the job. They even give a sample code which does exactly what I need. Link is below

http://xuggle.googlecode.com/svn/trunk/java/xuggle-xuggler/src/com/xuggle/mediatool/demos/DecodeAndCaptureFrames.java

And I’ve modified the code in this link such that it saves only the first frame of the video.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement