Skip to main content

EncoderSettingsAMFAV1

Electron APIs / Recorder / EncoderSettingsAMFAV1

Configuration settings specific to AMD AV1 video encoding.

Extends EncoderSettingsAMF with AV1-specific options for controlling encoding quality and performance.

See

  • kAMDEncoderProfileAV1
  • kAMDEncoderPresetAV1

Extends

Properties

PropertyTypeDescription
bf?numberMaximum number of B-frames allowed in the video stream. B-frames improve compression efficiency but may add encoding latency. Default 3
bitrate?numberTarget encoding bitrate in kilobits per second (kbps). Default 8000
cpq?numberConstant Peak Quantizer (CPQ) value. Determines the quality level when using quantizer-based rate control modes. Default 20
ffmpeg_opts?stringPass custom options directly to the AMF encoder or FFmpeg. This allows advanced tuning or enabling experimental features. Example: "level=5.2 profile=main" Refer to AMD AMF documentation for supported flags.
keyint_sec?numberKeyframe interval, in seconds. Defines how frequently a keyframe (I-frame) is inserted into the video stream. - 0 — Automatically selected by the encoder. - Recommended values: 2 for high quality/editability, 4 for reduced file size. - 1 — Suitable for short replays or splitting, but more CPU/GPU intensive. Balances quality, file size, and streaming performance.
max_bitrate?numberMaximum bitrate in kilobits per second (kbps). Caps the bitrate for encoders using variable bitrate modes (e.g., VBR).
preset?kAMDEncoderPresetAV1Controls the encoding preset, balancing speed and quality. See kAMDEncoderPresetAV1
profile?"main"The AV1 encoding profile to use. Determines the feature set and compatibility level of the encoded output. Default 'main' See kAMDEncoderProfileAV1
rate_control?kAMDEncoderRateControlSpecifies the rate control method used by the encoder. Options include: - 'CBR' — Constant Bitrate - 'CQP' — Constant Quantization Parameter - 'VBR' — Variable Bitrate - 'VBR_LAT' — Latency-aware VBR - 'QVBR' — Quality Variable Bitrate - 'HQVBR' — High Quality VBR - 'HQCBR' — High Quality Constant Bitrate Default 'CBR' See kAMDEncoderRateControl
typekSupportedEncodersTypesThe selected video encoder type. See kSupportedEncodersTypes