3d0c / gmf

Go Media Framework
MIT License
885 stars 170 forks source link

example to render into OpenGL? #117

Closed sk8245 closed 5 years ago

sk8245 commented 5 years ago

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

3d0c commented 5 years ago

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.