News for hackers. Stuff that matters.
Re:Vulkan Video Decoding by vlovich123 on Monday May 08, 2023 @09:45AM (#35861444)
Sure. I think the part that’s missing is that FFMPEG runs out of process and doesn’t deal in GPU buffers/textures.
Re:Vulkan Video Decoding by cillian64 on Monday May 08, 2023 @03:26PM (#35865935)
If you use ffmpeg’s libavcodec interface then you can get it to give you the decoded framebuffers as exported DRM-prime descriptors which you can turn into textures. This is how Firefox does video decode with VAAPI, using libavcodec as a wrapper.

Edit: missed the part about JS ecosystem. You can move DRM prime descriptors between processes, but I assume you can’t do this from the ffmpeg CLI and would need to write your own little C wrapper around libavcodec