forCodec

fun forCodec(codec: String, device: String? = null): HardwareEncoder?(source)

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.