Skip to main content

kX264EncoderProfile

Electron APIs / recorder / kX264EncoderProfile

type kX264EncoderProfile = "" | "baseline" | "main" | "high";

Specifies the H.264 encoding profiles available for the x264 encoder.

Encoding profiles define the set of features used for compression and compatibility with various playback devices and streaming platforms.

ValueDescription
''Default profile. Lets the encoder decide which profile to use automatically.
'baseline'Provides basic H.264 features. Suitable for low-complexity, real-time, or legacy device compatibility scenarios.
'main'Supports interlaced video and enhanced compression. Recommended for general-purpose encoding with balanced quality and performance.
'high'Enables advanced compression features for better video quality. Ideal for HD content, streaming, or high-quality recording.

Example

const profile: kX264EncoderProfile = "high";