pub fn write_hls_package(
output_dir: &Path,
video_variants: &[VideoVariantSpec],
audio: Option<&AudioVariantSpec>,
target_duration_seconds: u32,
) -> Result<HlsManifestPaths>Expand description
Emit a complete CMAF-HLS playlist tree under output_dir.
output_dir is the asset’s root (e.g. output/<asset_id>). The
CMAF segments referenced by manifest fields are NOT moved — they
stay where the segmenters wrote them (the manifest paths must
already be under output_dir).
target_duration_seconds is the value emitted in
#EXT-X-TARGETDURATION for every media playlist. Per RFC 8216
§4.3.3.1 it’s an upper bound on EXTINF and must be rounded UP
to the nearest integer; pass the configured CMAF segment duration.