Skip to main content

Interface: VideoConfig

Video track encoding configuration.

Extends the WebCodecs API's VideoEncoderConfig.

Extends​

  • VideoEncoderConfig

Properties​

bitrate​

bitrate: number

Target bitrate in bits per second.

Overrides​

VideoEncoderConfig.bitrate


framerate?​

optional framerate: number

Target frame rate in frames per second. Defaults to the track's frame rate if not provided.

Overrides​

VideoEncoderConfig.framerate


gopSize​

gopSize: number

Group of Pictures size in frames (e.g. 60 for 2 second GOP at 30fps).


targetChunkDurationMs?​

optional targetChunkDurationMs: number

Target chunk duration in milliseconds (default: 100).


targetGroupDurationMs?​

optional targetGroupDurationMs: number

Target group duration in milliseconds. Defaults to gopSize × frame duration.