Expand description
Shared CMAF/HLS helpers used by the job engine and the multi-GPU orchestrator: segment-boundary flushing, per-rung contribution merging, bandwidth measurement, and AV1 codec-string extraction.
Structs§
- Rung
Contribution - One encoder worker’s contribution to a rung (a slice of its segments).
Functions§
- add_
audio_ sample_ with_ segment_ flush - Add one audio sample to a
CmafAudioMuxerwith segment flushing on the same time grid. - add_
packet_ with_ segment_ flush - Add one encoded video packet to a
CmafVideoMuxer, flushing the prior segment first when the next packet is a keyframe and the buffered duration has reached the segment target (so each segment opens on an IDR). - av1_
codec_ string_ from_ init - Parse the AV1 codec string (
av01.…) from a rendition’s init segment. - keyframe_
interval_ for_ segment - Keyframe interval (frames) for a target segment length at a frame rate.
- measure_
bandwidth - (average, peak) bandwidth in bits/sec across a manifest’s segments.
- merge_
rung_ contributions - Merge several workers’ segment lists for one rung into a single ordered manifest, detecting duplicate segment numbers and internal gaps.
- total_
segments_ for_ rung - Number of CMAF segments a rung will produce (ceil division).