pub struct CmafVideoMuxerOptions {
pub first_segment_index: u32,
pub first_segment_base_decode_time: u64,
pub write_init_segment: bool,
}Expand description
Optional construction parameters for CmafVideoMuxer. Defaults
match the original 5-arg new() behaviour: write init.mp4, start
segment numbering at 1, decode-time at 0.
Non-default values are used by the multi-GPU helper-task path
(see pipeline::cmaf helper variant): when multiple muxers share
a single per-rung output directory, each helper’s muxer starts
at a non-1 first_segment_index and the corresponding decode-time
offset, and only the primary writes init.mp4.
Fields§
§first_segment_index: u321-based segment index the muxer’s first flush_segment() will
write. The output file is seg-{first_segment_index:05}.m4s.
Defaults to 1 (the primary’s first segment).
first_segment_base_decode_time: u64Decode-time (in track-timescale ticks) of the muxer’s first
segment’s first sample. Should equal
(first_segment_index - 1) * segment_duration_ticks so that
tfdt is byte-identical to what the primary would produce for
the same segment index. Defaults to 0.
write_init_segment: boolWhen false, flush_segment() and finalize() skip writing
init.mp4. Use when a sibling muxer (typically the primary)
is responsible for the init segment and helpers must not race
against it. Defaults to true.
Trait Implementations§
Source§impl Clone for CmafVideoMuxerOptions
impl Clone for CmafVideoMuxerOptions
Source§fn clone(&self) -> CmafVideoMuxerOptions
fn clone(&self) -> CmafVideoMuxerOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more