views:

142

answers:

4

At the moment I use QuickTime for Java to display video in a swing application. However, Apple has deprecated support for QTJava and I was wondering what options other are available right now+ for moving forward?

Requirements:

  • Must be cross platform (WIN & OSX).
  • Must be able to support many different video formats.
  • Must be capable of supporting large videos (i.e. Hi-Def).
  • API must provide access to raw frames and audio tracks.

+JMC could be included in Java7, whenever that turns up and at the moment you can dig it out of JavaFX... But I don't want to bundle all of JavaFX with my application right now.

+1  A: 

Something called JVLC supposedly exists; Java bindings for VideoLAN Client. However, the JVLC site has been broken since spring, so I'm finding it difficult to get further information. Something like this should definitely be what you're looking for, though.

Here's a link to someone hosting its Javadoc:
http://vlc4osgi.forge.os4os.org/javadoc/org/videolan/jvlc/JVLC.html

It seems you can also embed mplayer in Java using JMPlayer. VLC would be my first instinct, though.

Edit:
Hm... The site in the last link I posted mentions Java Media Framework.

Gunslinger47
With the JVLC site down, is it possible to download it?
Clinton
+1  A: 

What about JMF? I used it once and it worked quite fine (for MPEG layer2, I don't know which other formats it supports).

Link: JMF

Jack
Thanks for the suggestion Jack, however I struggled getting JMF to work with newer, more popular codecs.
Clinton
A: 

Following on from the suggestions of Gunslinger47. Also looks as though there are bindings for gstreamer.

Clinton
+3  A: 

You most definitely want Xuggle! It's very easy to use and is a Swiss Army chainsaw of Java multimedia processing.

Max A.
Ohhh. Looks promising.
Clinton