Playing a movie?

How would you recommend going about playing a movie (most likely quicktime or mpg format) in Java? In C, I’d consider using OpenML. When can we expect a JOML!? :slight_smile:

In the meantime, is there an easy way to do this in JOGL or do I need to resort to JMF? My solution requirements are:

  1. Crossplatform to anything JOGL supports
  2. Needs an extremely open license
  3. Do NOT need to render movie on a texture in arbitrary space - this is for a 2d only project
  4. Need full-screen capability
  5. Decent framerate, obviously
  6. Not utterly obnoxious to learn

Right now I am using JOGL and considering using JOAL as well, depending on how difficult it is to get ogg working (I have jOrbis bookmarked already :slight_smile:

Any suggestions from the gallery would be appreciated.

Java Media Framework is a package to able to play media files ( f.e. videos). you can download and install to any platform. Basicly, it doesn’t support jogl or any opengl binding, but i can write a “bridge”. Or you can use cortado, an ogg theora decoder for Java. It is GPL licensed.
Or you can try to use an C++ movie package, and access is via Java Native Interface.

About sound: to play music joal is unnecessary. Using jorbis and vorbisspi upon jorbis is a good choise. vorbisspi uses jorbis and javasound to play ogg file format.

That’s all what i know. Hopefully, this may help to you.

I found a free player that builds over jVorbis that I really like, but it’s set up for LWJGL. I posted the code to another thread in hopes someone could help me get it translated to JOAL.

I may be doing other stuff with JOAL, so I’d really like to have it running, and use this player I found.

As far as video files - do you think JMF is the best solution there?

I think, JMF isn’t good choise. It isn’t easy to install on a linux or unix or osx system. and to install a decoder plugin… If the JMF will be easier to use, it could be a handful tool.
If the GPL license is convenable to you, use the Cortado, and write an OpenGL bridge to it using JOGL.
If you have enough patience to read specifications, you could write an ogg theora decoder on the grounds of Cortado.

While I agree that it isn’t a good choice, I don’t know of any installation issues.