Rendering video in OpenGL

Is there a good solution for playing compressed video in OpenGL?

He needs

  • Be cross-platform (Windows and MacOSX)
  • Render texture (preferably, but not 100%)
  • Cost less than Bink

Any ideas?

+2


source to share


3 answers


I recommend Theora Video Format.
Here are the benefits:

  • Completely open source, free and non-proprietary specification
  • Free working library implementation (encoder / decoder) and source code examples available under BSD type license
  • Not too shabby documentation.
  • Portable


The decoder allows R'G'B 'to be decoded, which can be easily loaded using an OpenGL buffer object and obtained in the shader via a sampler.

+2


source


Qt can be used to render a widget (including a video player) in an OpenGL scene. It has a multimedia structure called phonon that can play video and audio.

Watch a demo video.



Qt is cross-platform and is now licensed under the LGPL.

+6


source


if you mean a solution you can build / code, I can suggest quicktime (easy on mac with cocoa, strange on windows, but it works), or you can check the mplayer / vlc sources and try to integrate them. there are many demos on the internet.

since you need cross platform i think gstreamer, video4linux and directshow are nothing for you. but there are video players that support different backends on different platforms - like openFrameworks

+1


source







All Articles