Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5346

Graphics programming • Pi5 CSI + H264 Compositing Advice

$
0
0
Looking for some advice or guidance as I dive into doing some compositing with the Pi 5 and trying to figure out what the current graphics APIs are now. I poked at OpenMAX and dispmanx years ago but seems those are deprecated these days in favor of DRM/ KMS. Essentially I'm looking to write an app that will render the CSI input as a background with an H264 stream decoded onto a portion of the foreground, maybe a few other UI elements TBD. The final product would forgo the window manager entirely and just boot into that. My current plan is to poke at the rpicam-hello app for a start and then go hunting for material on drm & kms. Figure some folks here would know if I'm on the right track or can point me to some good examples & reference material.

From my OpenMAX experience I was Initially assuming for the H264 stream that I'd be able to use a hardware decoder and map it to some GPU surface but apparently that's not a thing on the Pi5. Guess I'll have to poke at ffmpeg & vlc to figure out how to get the software decoders integrated and rendering onto some buffer that the GPU can use. Maybe there's some simpler cli program these days that demos that?

Statistics: Posted by piense — Tue Mar 19, 2024 3:33 am



Viewing all articles
Browse latest Browse all 5346

Trending Articles