Skip to main content

Module hardware_acceleration

Module hardware_acceleration 

Source
Expand description

Hardware-accelerated video decoding.

When the hardware feature is enabled, this module provides HardwareAccelerationMode for controlling hardware decoder selection and internal helpers that set up an FFmpeg hardware device context, configure the decoder, and transfer decoded frames from GPU to system memory.

The public entry point is HardwareAccelerationMode, which is threaded through ExtractOptions via with_hardware_acceleration.

§Platform Support

Hardware acceleration availability depends on both the FFmpeg build and the host system’s GPU drivers. When auto-detection fails, the decoder silently falls back to software decoding.

Enums§

HardwareAccelerationMode
Hardware acceleration mode for video decoding.
HardwareDeviceType
Supported hardware device types for accelerated decoding.

Functions§

available_hardware_devices
List all hardware device types supported by the FFmpeg build.