<p>I want to generate a thumbnail preview of videos in Java. I'm mostly JMF and video manipulation alienated. </p>

<ul>
<li>Is there an easy way to do it?</li>
<li>What about codecs? Will I have to deal with it?</li>
<li>Any video type is suported? (including Quicktime)</li>
</ul>

[{'answer_id': 48210, 'author': 'Stu Thompson', 'author_id': 2961, 'author_profile': 'https://Stackoverflow.com/users/2961', 'pm_score': 3, 'selected': False, 'text': '<p>Are you sure that JMF is right for you?  Unfortunately, it is not in particularly good shape.  Unless you are already committed to JMF, you very well may want to investigate alternatives. Wikipedia has a decent overview at <strong><a href="http://en.wikipedia.org/wiki/Java_Media_Framework" rel="noreferrer">en.wikipedia.org/wiki/Java_Media_Framework</a></strong></p>\n<blockquote>\n<p>Many JMF developers have complained that it <strong>supports few codecs and formats in modern use</strong>. Its all-Java version, for example, cannot play MPEG-2, MPEG-4, Windows Media, RealMedia, most QuickTime movies, Flash content newer than Flash 2, and <strong>needs a plug-in to play the ubiquitous MP3 format</strong>.  While the performance packs offer the ability to use the native platform\'s media library, they\'re only offered for Linux, Solaris and Windows. Furthermore, <strong>Windows-based JMF developers can unwittingly think JMF provides support for more formats than it does</strong>, and be surprised when their application is unable to play those formats on other platforms.</p>\n<p>Another knock against JMF is Sun\'s seeming abandonment of it. The <strong>API has not been touched since 1999</strong>, and the last news item on JMF\'s home page was posted in November 2004.</p>\n<p>While JMF is built for extensibility, <strong>there are few such third-party extensions</strong>.</p>\n<p>Furthermore, <strong>editing functionality in JMF is effectively non-existent</strong>, which makes a wide range of potential applications impractical.</p>\n</blockquote>\n'}, {'answer_id': 48404, 'author': 'Joe Liversedge', 'author_id': 4552, 'author_profile': 'https://Stackoverflow.com/users/4552', 'pm_score': 4, 'selected': True, 'text': '<p>There seems to be a few examples out there that are far better than <a href="http://code.google.com/p/vitalopensource/source/browse/trunk/src/com/vtls/opensource/image/VideoImageSource.java" rel="noreferrer">what I was going to send you.</a></p>\n\n<p>See <a href="http://krishnabhargav.blogspot.com/2008/02/processing-videos-in-java.html" rel="noreferrer">http://krishnabhargav.blogspot.com/2008/02/processing-videos-in-java.html</a>.</p>\n\n<p>I\'d agree with Stu, however. If you can find a way to get what you want using some command-line tools (and run them using <a href="http://commons.apache.org/exec/" rel="noreferrer">Commons-Exec</a>), you might have a better overall solution than depending on what is essentially the Sanskrit of Java extensions.</p>\n'}, {'answer_id': 50013, 'author': 'Stu Thompson', 'author_id': 2961, 'author_profile': 'https://Stackoverflow.com/users/2961', 'pm_score': 3, 'selected': False, 'text': '<p>My own server-side app shells out to FFmpeg to do the encoding.  I\'m 98.42% sure FFmpeg does snapshots, too.  (It is an all singing, all dancing <strong><em>beast</em></strong> of a program.  The command line options alone could fill a book.)</p>\n\n<p>Check it out: <a href="http://ffmpeg.mplayerhq.hu/" rel="nofollow noreferrer">ffmpeg.mplayerhq.hu</a></p>\n'}, {'answer_id': 1756478, 'author': 'Art Clarke', 'author_id': 204512, 'author_profile': 'https://Stackoverflow.com/users/204512', 'pm_score': 3, 'selected': False, 'text': '<p>Well, since you\'re not stuck with JMF, have you considered <a href="http://www.xuggle.com/xuggler" rel="noreferrer">Xuggler</a>?  Xuggler is a Java API that uses FFmpeg under the covers to do all video decoding and encoding. It\'s free and LGPL licensed.</p>\n\n<p>In fact, we have a tutorial that shows <a href="http://build.xuggle.com/view/Stable/job/xuggler_jdk5_stable/ws/workingcopy/src/com/xuggle/mediatool/demos/DecodeAndCaptureFrames.java" rel="noreferrer">How to Make Thumbnails of an Existing File</a></p>\n'}, {'answer_id': 62789460, 'author': 'Max Brito', 'author_id': 1120206, 'author_profile': 'https://Stackoverflow.com/users/1120206', 'pm_score': 0, 'selected': False, 'text': '<p>There is a relatively newer option called JThumbnailer that you find here: <a href="https://github.com/makbn/JThumbnail" rel="nofollow noreferrer">https://github.com/makbn/JThumbnail</a></p>\n<blockquote>\n<p>JThumbnail is a Java library for creating Thumbnails of common types\nof file including .doc, .docx, .pdf , .mp4 and etc. full list</p>\n</blockquote>\n'}]
['https://Stackoverflow.com/questions/48179', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4213/']