Skip to main content

Module per_scene_encode

Module per_scene_encode 

Source
Expand description

Per-scene adaptive encoding parameters.

This module provides scene-aware encoding parameter computation, output size estimation, bitrate solving via binary search, and budget allocation across multiple scenes.

Structs§

BudgetAllocator
Allocates a total byte budget proportionally across scenes, weighted by each scene’s complexity.
PerSceneEncoder
Computes codec-specific encoding parameters tuned for a given scene.
SceneEncodeParams
Per-scene encoding parameters derived from scene analysis.
SceneSegment
A contiguous segment of frames identified as a distinct scene.
TargetSizeSolver
Solves for the average bitrate (kbps) that achieves a target file size using binary search over the fill-factor-adjusted bitrate formula.

Enums§

SceneType
Classification of a scene’s content type for encoding optimization.

Functions§

estimate_output_size
Estimates output file size in bytes for a segment encoded with given params.