3d0c/gmf

example to render into OpenGL?

sk8245 opened this issue · 1 comments

Hello,
Can you please provide some example to render a video with sound into OpenGL? Would be appreciated
Thanks

3d0c commented

Hi. This example is to complex and just an overkill.

But you can start with following examples:
OpenGL-Video-Player
Take a look at this line Renderer.cpp#L346

You can refer to video-to-image.go or video-to-goImage.go to get an idea of how to obtaining frame data in RGB format.
Pretty the same with audio.

You can just port the core stuff of OpenGL-Video-Player in go-gl and combine it with gmf for getting frames.