kNVENCEncoderRateControl
Electron APIs / recorder / kNVENCEncoderRateControl
type kNVENCEncoderRateControl = "CBR" | "CQP" | "VBR" | "Lossless";
Specifies the rate control modes supported by NVIDIA's NVENC encoder.
Rate control modes define how the encoder manages bitrate and quality. Choosing the appropriate mode depends on the desired balance between quality, file size, and real-time performance.
| Value | Description |
|---|---|
'CBR' | Constant Bitrate. Maintains a consistent bitrate throughout the recording. Useful for streaming and bandwidth-limited scenarios. |
'CQP' | Constant Quantization Parameter. Prioritizes visual quality by keeping a consistent quantization level. File sizes may vary significantly. |
'VBR' | Variable Bitrate. Adjusts bitrate dynamically based on scene complexity. Provides better compression but less predictability in file size. |
'Lossless' | Encodes without compression loss. Produces very high-quality output at the cost of large file sizes. |
Example
const rateControl: kNVENCEncoderRateControl = "CQP";