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§
- Budget
Allocator - Allocates a total byte budget proportionally across scenes, weighted by each scene’s complexity.
- PerScene
Encoder - Computes codec-specific encoding parameters tuned for a given scene.
- Scene
Encode Params - Per-scene encoding parameters derived from scene analysis.
- Scene
Segment - A contiguous segment of frames identified as a distinct scene.
- Target
Size Solver - Solves for the average bitrate (kbps) that achieves a target file size using binary search over the fill-factor-adjusted bitrate formula.
Enums§
- Scene
Type - 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.