Playing movies/videos in a Java application?

What I’m trying to do is to find a Java library that I can use in whatever Java application I’m doing (games also), and play videos that are divx, xvid, matroska etc. I want to make an application that can play all those nifty videos you can get online :slight_smile: (those 350mb files, 700mb files). I can play this all in my Media Player Classic (using all those codecs)

I’ve been googling for a while now, taken a short look-at of Omnividea, JMF, MediaFrame… but…

Omnivida seems to do what I want, but I tried playing one of those 350mb (also 700mb) xvid video files and they ran really really really slow in fullscreen, and you noticed a lot of video de-syncing playing in normal size.

JMF. I read some old posts here, everyone seemed to agree it was horrible.

MediaFrame. Haven’t tried it, but what I read it’s only for Applets, small online streaming videos?

Am I doomed here?

there should really be done something about media support in java.

Would there be some way to use all those same codecs in Java? Has anybody yet done it? I would also need the ability to play any videos, and especially to read all meta data from them (resolution, codec, audio channels, subtitles etc.). How hard would it be to build a JNI interface for example to VideoLAN?

I was poking around the web a bit this morning, and I came across cortado, a GPL Java player for Ogg Theora + Vorbis:
http://www.flumotion.net/cortado/

I have not looked at the code, but as long as you’re willing to play by the GPL, then I imagine you could write a version for applications instead of applets.