LWJGL Forum

Programming => OpenGL => Topic started by: fictiveLaark on October 13, 2010, 11:28:27

Title: Playing a video
Post by: fictiveLaark on October 13, 2010, 11:28:27
Does anyone know of a way to play video files in opengl?  I guess I have to start by decoding a file, which JMF does, but I don't know how to get any kind of object, like a plain pixel array to dump in a texture, that would be usable in opengl.
Title: Re: Playing a video
Post by: Matthias on October 13, 2010, 11:41:31
I used gstreamer to play videos - there is a Java wrapper available. It will supply the decoded images in a ByteBuffer which can be uploaded to OpenGL.
Title: Re: Playing a video
Post by: princec on October 13, 2010, 12:17:07
Also see xuggle with ffmeg.

Cas :)