سؤال

أقوم بإنشاء بعض مقاطع الفيديو من مجموعة من الصور ، وأرغب لاحقًا في تشغيل هذا الفيديو مع Java. لقد وجدت JMF لكنني لم أتمكن من العثور على ترميز يمكن تشغيله بالفعل. هل لدى أي شخص صياغة FFMPEG أو Mencoder التي تنتج إخراج JMF القابل للتشغيل؟ أود أيضًا أن آخذ بدائل لـ JMF إذا كان هناك شيء أفضل.

هل كانت مفيدة؟

المحلول

بحسب ال JMF 2.1.1 - التنسيقات المدعومة يتم دعم الصفحة و QuickTime وبرامج الترميز المختلفة لفك تشفيرها مباشرة.

نصائح أخرى

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top