Companion

Properties

Link copied to clipboard

the DRM render node of the first GPU

Functions

Link copied to clipboard
fun forCodec(codec: String, device: String? = null): HardwareEncoder?

Returns the hardware encoder for codec, an FFmpeg encoder name, or null when codec is not a hardware encoder, like libx264. device is the device of VAAPI encoders.