Screen helpers · function

clipBitrate

Bits per second for a frame size and rate.

Explained in Recording and clips.

function clipBitrate(width: number, height: number, fps: number): number
import { clipBitrate } from '@driftengine/core';

Parameters

ParameterTypeDescription
widthnumber
heightnumber
fpsnumber

In depth

Scaled to the pixel count rather than fixed. A constant 8 Mbit/s is generous at 720p and thin at 1080x1920, and thin bitrate on high-motion footage reads to the eye as stutter rather than as softness — a fast-cut gameplay edit is nothing but high motion, so this is not a subtle effect. Bounded at both ends: below the floor the picture falls apart, above the ceiling the upload is the slow part of sharing.