Encoding for JMF

I am creating some videos from a collection of images and afterwards I want to play this video using java. I found JMF, but I couldn't find the encoding that is actually reproduced by it. Does anyone have a ffmpeg or mencoder recipe that gives reproducible JMF output? I would also take JMF alternatives if there is anything better.

0


source to share


3 answers


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



0


source


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 Second, JMF still seems to have problems at certain resolutions, frames and bitrates. I found that it can decode successfully when the video is read, not only in the accepted format, but also longer than 2 minutes. I do not know why; this is my experience. Hope it helps.



+1


source


If you are not stuck with JMF, you can try Xuggler . It will encode almost all formats for you (one area of ​​JMF just crashes).

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

0


source







All Articles