VideoSettings
Electron APIs / recorder / VideoSettings
Configuration options for video recording settings.
These settings define the input and output resolution, frame rate, and color encoding preferences used during video capture.
See
- kVideoColorFormat
- kVideoColorRange
- kVideoColorSpec
Properties
Property | Type | Description |
---|---|---|
baseHeight | number | Base height resolution of the captured video in pixels. Used as the reference resolution for scaling output. Default Half HD (based on main monitor aspect ratio) |
baseWidth | number | Base width resolution of the captured video in pixels. Used as the reference resolution for scaling output. Default Half HD (based on main monitor aspect ratio) |
colorFormat? | kVideoColorFormat | Color format used for video encoding. Determines how pixel color data is structured. Default 'NV12' |
colorRange? | kVideoColorRange | Defines the color range for video encoding. Affects the range of brightness and color values. Default '709' |
colorSpec? | kVideoColorSpec | Defines the color specification standard for the video. Affects tone mapping and interpretation of colors. Default 'Partial' |
fps? | number | Video frame rate in frames per second (FPS). Default 30 |
hdrPeak? | number | HDR peak brightness, defined in nits. Used for tone mapping and color accuracy in HDR content. Default 1000 |
outputHeight? | number | Output height resolution of the recorded video. If omitted, it defaults to the value of baseHeight . |
outputWidth? | number | Output width resolution of the recorded video. If omitted, it defaults to the value of baseWidth . |
sdrWhite? | number | SDR white level, defined in nits. Affects tone mapping for SDR displays. Default 300 |