Question

I'm creating some videos from a collection of images, I subsequently wish to play this video back with java. I found JMF but I haven't been able to find an encoding which is actually playable by it. Does anybody have an ffmpeg or mencoder formulation which produces JMF playable output? I would also take alternatives to JMF if there is something better.

Was it helpful?

Solution

According to the JMF 2.1.1 - Supported Formats page, Quicktime and various codecs are supported for decoding directly.

OTHER TIPS

Two things, you will need to use the formats listed here: http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/formats.html Secondly, JMF still seems to have problems under certain resolutions, framerates and bitrates. I've found that it successfully can decode when the video to read, is not only in the accepted format, but of a length longer than 2 minutes. I don't know why; this happens to be my experience. Hope it helps.

If you're not stuck with JMF, you could try Xuggler. It will encode almost all formats for you (one of the areas JMF just falls down on).

Here's a tutorial for Xuggler showing how to create a video file from pre-existing video images.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top