Vulkan Video acceleration arrives in Firefox and Chromium via Khronos standard
The Vulkan Video API enables a unified, zero-copy hardware acceleration backend for video encoding and decoding across different web browsers and operating systems.
Summary
The Khronos Group has announced the integration of Vulkan Video acceleration into major web browser engines, addressing long-standing fragmentation in video hardware APIs. By utilizing Vulkan Video extensions, browsers can now access dedicated GPU video engines through a single, consistent backend rather than maintaining separate implementations for VA-API, DXVA, or Media Foundation.
Firefox 153 has implemented a zero-copy video decoding path, utilizing FFmpeg and DMA-bufs to keep decoded frames entirely within GPU memory. Simultaneously, Chromium is upstreaming a Vulkan Video encoder to support WebRTC, screen sharing, and WebCodecs, providing a hardware-accelerated encoding path for Linux users who previously relied on CPU-intensive software encoding.
Technical implementation in Firefox and Chromium
- Zero-Copy Architecture: The implementation uses DMA-bufs on Linux to share GPU memory between the FFmpeg media process and the Firefox GPU process, ensuring pixels never touch system memory during decoding.
- Unified API Model: Vulkan Video functions as a family of extensions that integrate video queues directly into the existing Vulkan framework, allowing graphics, compute, and video to share the same memory and synchronization primitives.
- Chromium Encoding Path: The new Chromium backend leverages the Vulkan Video Samples library to handle complex tasks like rate control and bitstream assembly for WebRTC and MediaRecorder workloads.
- Codec Support: The standard utilizes core extensions for general video queue management alongside codec-specific extensions for H.264, H.265, AV1, and VP9.
Why it matters
This development significantly reduces CPU overhead and power consumption for web-based video tasks like streaming and videoconferencing on Linux and Windows. It also simplifies the workload for browser developers by providing a cross-platform hardware acceleration standard that works with NVIDIA, AMD, Intel, and Mesa drivers.
What to do
- Update to Firefox 153 or later to use the zero-copy video decoding path on Linux.
Original reference: www.khronos.org →