AudioEncoderInfo
Electron APIs / recorder / AudioEncoderInfo
Supported audio encoder information.
Extends the base encoder information with a specific encoder type identifier. Useful for populating encoder selection menus or configuring audio output.
Example
const audioEncoder: AudioEncoderInfo = {
codec: "aac",
name: "FFmpeg AAC Encoder",
type: "ffmpeg_aac",
properties: {
bitrate: { default: 128, description: "Bitrate" },
},
};
Extends
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
codec | readonly | string | The codec identifier (e.g., h264, aac, av1) supported by the encoder. |
name | readonly | string | A human-readable name for the encoder (e.g., shown in UI). |
properties? | readonly | Record<string, EncoderProperty> | Optional map of encoder-specific configuration properties, keyed by setting name (e.g. bitrate, rate_control). Each property describes a setting that can be adjusted for this encoder. Reported for both video and audio encoders. See EncoderProperty |
type | readonly | string | The identifier for the specific audio encoder type. See kKnownAudioEncodersTypes |