This example should work on a RPi4b. But you'll need a recent Mesa build, higher than 21.0.1, and the special rpi ffmpeg. More details here: jc-kynesim/rpi-ffmpeg#9 (comment)
The code is not tidy yet.
HW accellerated zero copy HEVC to OpenGL on Raspberry Pi 4
This example should work on a RPi4b. But you'll need a recent Mesa build, higher than 21.0.1, and the special rpi ffmpeg. More details here: jc-kynesim/rpi-ffmpeg#9 (comment)
The code is not tidy yet.
HW accellerated zero copy HEVC to OpenGL on Raspberry Pi 4