I want to write code in java to extract the images in a mp4 file. Kindly guide me how to go about it. I am totally clueless.
Asked
Active
Viewed 2,199 times
2
-
possible duplicate of [extracting image from a video in java](http://stackoverflow.com/questions/4376656/extracting-image-from-a-video-in-java) – npinti Apr 19 '12 at 05:30
-
1@npinti That question refers specifically to JMF which (out of the box) does not support MP4. – Andrew Thompson Apr 19 '12 at 05:40
2 Answers
2
Java SE has Java Media Framework (JMF) but it provides support for only a few video formats, not including MPEG-4.
Of course, you have some third-party choices to achieve your goal. One of them is Jffmpeg. It is an extension to JMF which contains support for MPEG-4.
Xuggler is another good choice with GPL/LGPL license. It works on Windows, Mac OS X and Linux.

Hailei
- 42,163
- 6
- 44
- 69
-
I recently had some good experiences with Jffmpeg while making high compression videos for [my tube channel](http://www.youtube.com/user/DrewTubeish/videos). – Andrew Thompson Apr 19 '12 at 05:40
1
Xuggler is an open-source third party library you can use to do this. Read through the API's. and sample code.

Amir Afghani
- 37,814
- 16
- 84
- 124