looking for simple example playing h264 via OpenGL

I imagine there must be some example out there but I have not managed to find it… looking for an example that uses V4L2 to decode H264 directly (or as directly as possible) into OpenGL accessible textures (or perhaps OpenGL pixel buffers containing planar YUV data which could be converted to a RGB texture w/an appropriate compute shader).

Thanks!

1 Like

Hi,
We have tegra_multimedia_api samples installed through sdkmanager. After installation, please check 00_video_decode sample.
https://docs.nvidia.com/jetson/archives/l4t-multimedia-archived/l4t-multimedia-3231/l4t_mm_00_video_decode_group.html

The renderer is in

/usr/src/tegra_multimedia_api/samples/common/classes/NvEglRenderer.cpp

The implementation is not pure OpenGL and need to involve EGL. Please check the source code and see if it can be applied to your usecase.