Overlay OpenGLES and MMAL h264 decoder
Posted: Fri Aug 09, 2019 8:21 pm
Hi all! So I have the following complex situation I need help resolving. I want to overlay graphics in a hardware accelerated fashion on top of an h264 video stream displayed on a raspberry PI. I built an MMAL h264 decoder based on this code here: https://github.com/raspberrypi/userland ... _basic_2.c.
The OpenGLES code I used was copied from here: https://github.com/vurtun/nuklear/tree/ ... _opengles2. (yes, I want to render GUI components on top of the h264 stream)
Currently for some reason the OpenGLES graphics always completely hides the h264 stream running even if I set the background color to totally transparent like this:
Any help would be greatly appreciated!
The OpenGLES code I used was copied from here: https://github.com/vurtun/nuklear/tree/ ... _opengles2. (yes, I want to render GUI components on top of the h264 stream)
Currently for some reason the OpenGLES graphics always completely hides the h264 stream running even if I set the background color to totally transparent like this:
Code: Select all
glClearColor(0, 0, 0, 0);