Hello,
I'm planning to build a simple video/image player for myself in C, and i'm struggling with the video part of the project. I want to be able to display h265 4k videos. I'm currently using SDL2, and i was trying to use vulkan for decoding. The result was : a slow and laggy video, not using hw acceleration for decoding. It seemed to me that even ffmpeg never used hardware acceleration and always fell back to software decoding (I was checking with 'top' CPU usage which was huge). When I tried to use "v4l2m2m" or "drm" or "vulkan" they were unrecognized hw methods even tho they were listed in 'ffmpeg -hwaccels'. Somehow the only approach that seems to work is https://github.com/jc-kynesim/hello_drmprime, but it seems really complicated to fully understand what is being done as it relies on DRM/KMS and switching to TTY. VLC reads perfectly 4k h265 videos, using hardware acceleration without switching to TTY. Am I missing some informations ? I'm feeling a bit lost.
I'm planning to build a simple video/image player for myself in C, and i'm struggling with the video part of the project. I want to be able to display h265 4k videos. I'm currently using SDL2, and i was trying to use vulkan for decoding. The result was : a slow and laggy video, not using hw acceleration for decoding. It seemed to me that even ffmpeg never used hardware acceleration and always fell back to software decoding (I was checking with 'top' CPU usage which was huge). When I tried to use "v4l2m2m" or "drm" or "vulkan" they were unrecognized hw methods even tho they were listed in 'ffmpeg -hwaccels'. Somehow the only approach that seems to work is https://github.com/jc-kynesim/hello_drmprime, but it seems really complicated to fully understand what is being done as it relies on DRM/KMS and switching to TTY. VLC reads perfectly 4k h265 videos, using hardware acceleration without switching to TTY. Am I missing some informations ? I'm feeling a bit lost.
Statistics: Posted by caracole22 — Thu Jul 10, 2025 8:50 am