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.
libx264