Skip to main content

EncoderProperty

Electron APIs / Recorder / EncoderProperty

Configurable property of an encoder.

Used to describe encoder settings such as bitrates, presets, or modes. Provides metadata to help display options in a UI or validate configuration.

Example

const bitrateProperty: EncoderProperty = {
default: 4500,
description: "Target video bitrate in kbps.",
values: {
3000: "Low quality",
4500: "Medium quality (default)",
6000: "High quality",
},
};

Properties

PropertyModifierTypeDescription
defaultreadonlyanyThe default value for this encoder property.
descriptionreadonlystringA human-readable explanation of the property's purpose.
values?readonlyRecord<string | number, string>Optional map of possible values to their corresponding display labels. Useful for dropdowns or presets.