1

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.

Clinton
  • 3,638
  • 3
  • 26
  • 33

5 Answers5

4

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

Max A.
  • 4,842
  • 6
  • 29
  • 27
1

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
  • 7,001
  • 2
  • 21
  • 29
1

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
  • 131,802
  • 30
  • 241
  • 343
  • Thanks for the suggestion Jack, however I struggled getting JMF to work with newer, more popular codecs. – Clinton Dec 13 '09 at 01:46
0

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

Clinton
  • 3,638
  • 3
  • 26
  • 33
0

I got his from Petro Semeniuk's answer.

You may be interested by the caprica/vlcj project.

There's even a project that showcase the integration: caprica/vlcj-player.

At this point the project seems relatively maintained, master (future vlcj 5) branch is based on the not yet released version of VLC 4. Stable version (4.8.2 at this time) is available for VLC 3.x version.

bric3
  • 40,072
  • 9
  • 91
  • 111