Anyone got any comments on how easy it would then be to use the graphics as texture in GL?
Well, very easy - just not necessarily fast enough done that way
You really need a direct to OpenGL JMF renderer. I notice that that FOBs project has an OpenGL renderer in it…
Cas
I think you’ll break the JavaFX license if you extract jmc from it and provide it with your app.
Hmm, I am not that happy as I expected. Did anyone experiment a little around with JMC Video? There are a few problem I can not solve:
- Even if I do not create any Window or Frame, the video is played back in a separate Frame
- In general I am missing a reference to the video frame (e.g. to close it)
Does anybody know more?
So for anyone who is still interested in this issue, some kind of solution. I have discovered Xuggler:
http://www.xuggle.com/xuggler/
It is a java wrapper for FFMpeg and for the purpose of playing a video file it is way too mighty - a little
bit like firing nuclear rockets on birds. It is intended for video encoding, manipulation and encoding, but
it supports video playback for all major platforms.
My tests included playback of a 1024x768 video within Kev’s Slick2D engine and it works. I need still some
improvements to get the sync between video playback and update of the engine right, but there is no
problem of getting > 25fps on faster machines.
Looks cool, nice find. But it’s a bummer that the site uses flash for movie playback instead of a java applet + xuggler!
People in the below thread would also be interested in your discovery. Thanks for sharing it
http://www.java-gaming.org/index.php/topic,21933.0.html
I have reservations about Xuggler namely:
- They say themselves that video playback is experimental at best and not to be used in production.
- They say themselves that video/audio synch doesn’t work on Linux and they have no solution.
- It has a massive footprint. Did your tests include running it in the context of a browser?
Indeed you should carefully consider, whether to use Xuggler or not. Taking into account that it is quite a popular library, I guess there will be much improvement in the near future regarding performance and compatibility issues. The massive footprint is not much of a surprise and confirms my doubts that using an encoding library for the simple task of video playback is way too much.
But despite these thoughts there is still the problem to find any video playback library which works on the standard platforms at all. Like I mentioned in an early post I am still shocked how little Java advanced with video support over the past five to ten years. So it seems to me that the choice is only to get the least bad library fitting your purpose.