javaxuggle

Video thumbnail xuggle


I wanted to get thumbnails from videos from a point around half way through and I accomplished this by using:

http://build.xuggle.com/view/Stable/job/xuggler_jdk5_stable/ws/workingcopy/src/com/xuggle/mediatool/demos/DecodeAndCaptureFrames.java

But my solution is very slow and it actually loops in video. It is not a smart solution for larger files.

IContainer.seekKeyFrame looks useful for my problem. Can someone explain how I can use seekKeyFrame for this purpose.


Solution

  • I modified code and exits loop after taking frame from fifth second. Not best but a working solution.