playing short intro.mp4/.avi in the my Lwjgl Slick game

Started by waltobc6, November 30, 2011, 18:27:30

Previous topic - Next topic

waltobc6

i made an example openining intro logo to my game:
http://www.youtube.com/watch?v=5CAe-xdfjqY&feature=related

now, as far as i know, mp4, avi, wav etc etc
doesn't supported by lwjgl or slick.

any one know / got idea / maybe share example code,
to how i can play in my game a short intro video
because i want to put this intro logo befor my game start loading every thing. (like in all the epics game - MW3 etc etc).


tnx.

CodeBunny

LWJGL is very focused in its functionality, so it doesn't have built in video support (unfortunately). Slick doesn't support it either; I'd imagine that there hasn't been enough requests to push them into an expansion of the engine.

I feel your pain, though. I've been wanting to play with video and LWJGL for a while.

waltobc6

Quote from: CodeBunny on November 30, 2011, 19:16:30
LWJGL is very focused in its functionality, so it doesn't have built in video support (unfortunately). Slick doesn't support it either; I'd imagine that there hasn't been enough requests to push them into an expansion of the engine.

I feel your pain, though. I've been wanting to play with video and LWJGL for a while.

damm :(

any opening soruce that we maybe can combine with LWJGL?

waltobc6

Quote from: waltobc6 on November 30, 2011, 19:39:24
Quote from: CodeBunny on November 30, 2011, 19:16:30
LWJGL is very focused in its functionality, so it doesn't have built in video support (unfortunately). Slick doesn't support it either; I'd imagine that there hasn't been enough requests to push them into an expansion of the engine.

I feel your pain, though. I've been wanting to play with video and LWJGL for a while.

damm :(

any opening soruce that we maybe can combine with LWJGL?

well i saw this!!!
http://lwjgl.org/forum/index.php?topic=2516.0;wap2

but the problem is that lwjgl doesn't have AVDecoder class any more inside.

Fool Running

I'm fairly certain LWJGL never had a class called AVDecoder. It looks like that is the main decoding class for that library.
You probably need the source code from the link he posted:
QuoteThe video playback is based on ffmpeg but the API i wrote in java is quite more simple. You can get all the sources (C++ and Java) and a binary release (win32 only)  but it should compile OK under linux and maybe OSX from here: http://www.scratchydreams.com/projects/lwjgl-mm.7z
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

waltobc6

Quote from: Fool Running on December 01, 2011, 13:47:00
I'm fairly certain LWJGL never had a class called AVDecoder. It looks like that is the main decoding class for that library.
You probably need the source code from the link he posted:
QuoteThe video playback is based on ffmpeg but the API i wrote in java is quite more simple. You can get all the sources (C++ and Java) and a binary release (win32 only)  but it should compile OK under linux and maybe OSX from here: http://www.scratchydreams.com/projects/lwjgl-mm.7z


which i checked and its broke.

Mickelukas

You can have a look at this one:
http://www.java-gaming.org/topics/vlcj-in-opengl-lwjgl/24846/view.html
(url in second last post: http://code.google.com/p/vlcj/wiki/JMonkeyEngineExample)

It should be possible to get it to work with lwjgl I guess but it might take some work from your side.

Mike

princec


waltobc6

Quote from: princec on December 02, 2011, 11:11:49
I had some success with Xuggle.

Cas :)

can you please post here the code of which how you combine Xuggle and Lwjgl?
i can't get it right...
tnx :)?

princec

Quite a while back now and it was at work, so I don't have the code any more. But just know that it can be done. It's not a particularly pretty or elegant solution and it's quite large but it worked.

Cas :)