Rendering an image over VLC (Raspberry Pi OS Lite)

August 30, 2024, 00:27

thatsquareguy

I am hoping I can get some help with what I would have expected would be a trivial task (isn't that always the way!) I am working on a media player which essentially plays random videos via VLC. I am using a Raspberry Pi 4B running Raspberry Pi OS Lite - command line only. The intention is for the Pi to boot and play a video as quickly as possible. I'm trying to get an image to render over the VLC player, specifically a logo in the corner (like on a tv channel). VLC includes a logo filter which sort of accomplishes this, and I am currently using it, but the size of the logo on screen is tied to the resolution of the video - if I play a 480p video, the logo appears larger than if I play a 720p video. I have videos of varying resolutions, so this isn't ideal. I feel like I've tried everything at this point, but I've gotten nowhere. The closest I have found to what I'm looking for is here: https://youtu.be/W6KhRiMtu4g?si=olSn1mrLAdjBfbeL&t=172 In this video, he does exactly what I'm trying to do, using raspidmx/DispmanX: https://github.com/AndrewFromMelbourne/raspidmx Unfortunately I wasn't able to build out pngview as it relies on deprecated libraries - as discussed in the comments here: https://raspberry-projects.com/pi/programming-in-c/display/dispmanx-api/raspidmx-pngview I guess what I'm hoping for is some kind of workaround to implement the above, or any other ideas to draw an image to the framebuffer and have it render over the VLC instance. This has been driving me completely crazy, and my google-fu has been entirely failing me, so I'm open to any ideas 😄