JavaFX has a number of working video and audio codecs builtin. It's likely to be the solution with the broadest support at the moment.
Jsight and thanks for your answer. I do know that JavaFX supports video but unfortunately I have had to dismiss it as it is difficult to import JavaFX components into a Java Swing application. There are ways, but they are unsupported hacks.
– ksullivan Jan 11 '10 at 14:16 See also: dsc.sun. Com/learning/javaoneonline/2008/pdf/TS-6509. Pdf and google.Com/… – jsight Jan 11 '10 at 14:45 Thanks for those links.
It seems that in addition to the no official support for JavaFX in Java, there would be distribution problems (particularly relating to the video codecs) – ksullivan Jan 11 '10 at 15:36 @kpsullivan - Any issue with distribution or support will be worse with any other free solution. – jsight Jan 11 '10 at 16:08 What are the distribution issues with the FFMpeg based solutions such as Xuggler and Fobs4JMF? Xuggler seems quite active in terms of getting responses directly from the developers.
Also we are not limiting ourselves to free solutions. – ksullivan Jan 11 '10 at 16:19.
Haven't tried Xuggler (which i'm interested in) but I'm having a good time with VLCJ. The drawback I find in it is only that you have to have VLC installed prior to your application.
You don't - you can distribute libvlc with your app, which is what I do. – berry120 Oct 25 at 13:37.
In my mind, VLCJ is the way forward for this type of thing. I love Xuggler for encoding / transcoding work, but unfortunately it's just so complicated to do simple playback and solve all the sync issues and suchlike - and it does very much feel like reinventing the wheel doing so. The only thing with VLCJ is that to get it to work reliably with multiple players I've had to resort to out of process players.
The framework wasn't the simplest thing in the world to get in place, but when it's there it works beautifully. I'm currently running 3 out of process players in my app side by side with no problems whatsoever. The other caveat is that the embedded media player won't work with a swing component, just a heavyweight canvas - but that hasn't proven a problem for me at all.
If it does, then you can use the direct media player to get a bufferedimage and display that on whatever you choose, but it will eat into your CPU a bit more (though no more than other players that take this approach. ).
I've been using jffmpeg in the same way you use FOBS, it works pretty well, although I haven't compared them. I would also love to see an easy way to interface with native codecs the way that JavaFX does, but there doesn't seem to be real integration between JavaFX and Java. There has also been some work trying to get the VLC library libvlc into java.
I haven't tried it yet and would be interested to hear back from anyone who has.
Appreciate this is over a year old now, but if you're still interested see my answer! – berry120 Aug 1 at 22:07 thanks, yes, it's still an open issue for me and I'll look into this. – paul Aug 12 at 19:18.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.