سؤال
أقوم بإنشاء بعض مقاطع الفيديو من مجموعة من الصور ، وأرغب لاحقًا في تشغيل هذا الفيديو مع 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.