FFmpeg 9.1 "Gauss" adds Vulkan-accelerated APV and D3D12 DirectML inference
FFmpeg 9.1 introduces significant hardware acceleration via Vulkan compute shaders and integrates D3D12 DirectML for zero-copy AI inference.
Summary
FFmpeg has released version 9.1, codenamed "Gauss," a minor update that expands the project's hardware acceleration capabilities and multimedia format support. The release focuses heavily on leveraging modern graphics APIs, specifically introducing Vulkan-based encoding and decoding for the APV codec and expanding the use of Vulkan compute for various media tasks.
Beyond video codecs, the update enhances system integration and AI workflows. It introduces D3D12 DirectML support for zero-copy inference when using the ONNX Runtime DNN backend and adds support for Windows Handles in its protocol handling. These changes target developers and system integrators looking to optimize media processing on modern GPU architectures.
Technical advancements in FFmpeg 9.1
- Vulkan Compute Integration: The release expands the suite of codecs implemented via Vulkan compute shaders, now including APV encoding and decoding, which allows for cross-platform GPU acceleration on any Vulkan 1.3 compliant hardware.
- AI and Inference Optimization: Integration of D3D12 DirectML enables zero-copy inference for the ONNX Runtime DNN backend, reducing memory overhead during AI-driven media processing.
- Bitstream and Demuxer Updates: New bitstream filters include a graph-based API, a JPEG segment injector (jpegapp), and a packet-based trim filter, while new demuxers support JPEG Multi-Picture Format (jpeg_mpf) and KTX 1.0 for ASTC textures.
- Protocol and Hardware Support: The update adds support for Windows Handles in protocols, libcurl for HTTP(s) transport, and NVDEC CUARRAY hardware acceleration.
- Enhanced Audio and Video Encoders: Improvements include extensive updates to the native AAC encoder, the addition of xHE-AAC encoding via libfdk_xhe_aac, and NVIDIA optical flow accelerated framerate interpolation via the fruc_vulkan filter.
Why it matters
The shift toward Vulkan compute-based codecs provides a standardized way to achieve high-performance hardware acceleration without relying on proprietary vendor-specific drivers. For Linux users and developers, the expanded support for ASTC textures and improved hardware acceleration paths via Vulkan and VAAPI ensures better compatibility across diverse GPU ecosystems.
What to do
- Users, distributors, and system integrators should upgrade to FFmpeg 9.1 "Gauss" unless they are using the current git master.
Original reference: ffmpeg.org →