Play video on jme3

How can i play Video on jme3
and this tutorial dosen’t work :frowning:
https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:video

At the moment there is no way to do so.

There is a real shortage of reliable, cross platform, non-patent-encumbered Java video players.

Look at this JGO post maybe.
http://www.java-gaming.org/topics/java-media-player/27100/view.html

JOGL seems to have build in support for playing videos. That might be a nice option in the future:
http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/util/av/package-summary.html

<cite>@nehon said:</cite> Look at this JGO post maybe. http://www.java-gaming.org/topics/java-media-player/27100/view.html

We looked at that one, it uses ffmpeg and ffmpeg uses patented algorithms.

We would need to do our own build of ffmpeg for every platform with the bad codecs removed and then include that into our distribution…while making sure we met all the requirements of the ffmpeg license in order to do so.

@zarch said: We looked at that one, it uses ffmpeg and ffmpeg uses patented algorithms.

We would need to do our own build of ffmpeg for every platform with the bad codecs removed and then include that into our distribution…while making sure we met all the requirements of the ffmpeg license in order to do so.


so there is a way :smiley:

1 Like

There is a way to build ffmpeg that is only capable of playing non-patent encumbered formats, further you can build it as a library instead of an executable.
Then you would be able to encode videos in a fairly high efficiency format such as WebM (MKV container, VP8 video, Vorbis audio). This would be the ideal case, as far as jME3 video support goes.

1 Like

I think I just heard @nehon volunteering :smiley:

1 Like
@zarch said: I think I just heard @nehon volunteering :D
got to go....later guys....
@zzuegg said: JOGL seems to have build in support for playing videos. That might be a nice option in the future: http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/util/av/package-summary.html
@gouessej could you comment on this? Does JOGL have a video playback feature?

JOGL supports video playback, but only within JOGL (won’t be compatible with LWJGL or other OGL binding).
However if internally it simply wraps ffmpeg then at least that part of the source code can be ripped out into a separate library that can then be used as a generic ffmpeg binding. That would reduce the number of steps needed to accomplish this video playback significantly.

1 Like

Hi

<cite>@nehon said:</cite> @gouessej could you comment on this? Does JOGL have a video playback feature?
JogAmp has an audio/video playback feature and does a lot more than a simple FFMPEG binding, it uses LibAV too, it uses JOAL for the sound, it works fine under Android, a VP8 codec is on the road. It was showcased during Siggraph 2012.

@Momoko_Fan I don’t want to start another flame war but the JogAmp Foundation doesn’t have to maintain and/or make efforts to ease the port of its most interesting features to other OpenGL bindings and our contributors don’t make silly things to force developers to use our bindings even when it would be possible to separate the part depending on our bindings from the rest of the source code. I still consider that maintaining 3 OpenGL bindings for Android is stupid, Google should have used JOGL and we would have been glad to cooperate. If you simply need a simple FFMPEG binding and if you really think that JogAmp doesn’t do anything more in its playback feature, rather use FFMPEG Java, Xuggler or something similar.

Not sure @Momoko_Fan was implying that you guys do this, just that we could use JOGL’s code to make something generic for JME
IMO that’ll be a point in favor of the JOGL switch. Especially the fact that it works on Android too…we need this playback feature one way or another.

1 Like

Note that Nokia is currently trying to attack VP8 with patent claims, at a German court.
Groklaw argues that these claims are probably frivolous.

It’s anyone’s judgement call whether JME should wait how that litigation goes (that would be exactly Nokia’s goal: FUD and delay VP8, strengthening the position of H.264, attacking Android) or implement it anyway (which incurs the risk of wasting time on a codec that eventually can’t be used).

Well if on desktop, look ath the jfx integration i did, it is able to display a website and if it has embedded videos it would work. (however there is currently no way to get input events trough to jfx, so pause ect needs to be done in any other gui system then.

http://hub.jmonkeyengine.org/forum/topic/jme-jfx-integration/

Any update to this?

Hello, any update to this ?

Any updates as of now?

You can play video using the JavaFX integration already. Is there a problem with it?

1 Like

Will it work on android as well?