Skip to main content

GameCaptureSourceSettings

Electron APIs / Recorder / GameCaptureSourceSettings

Settings for capturing a game window or process as a video source.

Extends CaptureSourceSettings with game-specific capture options including cursor visibility, framerate limits, overlay support, and advanced rendering options such as transparency and HDR.

See

CaptureSourceSettings

Extends

Properties

PropertyTypeDescription
allowTransparency?booleanEnables transparency support in the captured content. Useful for capturing games with transparent or alpha-blended visuals.
captureCursor?booleanWhether to include the mouse cursor in the game capture. Default true
captureOverlays?booleanIf true, attempts to capture overlays rendered by third-party applications (e.g., Discord, Steam).
gameProcessstring | numberThe game process to capture. Can be specified as either a process name (e.g., 'Game.exe') or a numeric process ID.
limitFramerate?booleanIf true, limits the capture frame rate to reduce system load.
premultipliedAlpha?booleanIf enabled, assumes alpha values are premultiplied into the RGB channels. Recommended when using transparent capture for proper blending.
rgb10a2Space?booleanEnables Rec.2100 PQ color space (rgb10a2) instead of sRGB for HDR-capable games. Useful for accurate color representation in high dynamic range rendering.
sliCompatibility?booleanEnables compatibility mode for systems using SLI (Scalable Link Interface). When enabled, uses shared memory for a slower but more stable capture.
stretchToOutputSize?booleanWhether the capture source should be centered and stretched to fit the output video size. When set to true, the source will automatically scale and center itself to match the output resolution, even if it requires stretching. Default true