pub struct PackageOptions {Show 17 fields
pub out_dir: PathBuf,
pub segment_duration: f64,
pub dash: bool,
pub hls: bool,
pub encryption: Option<EncryptionSpec>,
pub presentation: PresentationMode,
pub live_window_segments: Option<usize>,
pub multi_period: bool,
pub trick_play: bool,
pub low_latency: bool,
pub part_duration: Option<f64>,
pub availability_start_time: Option<String>,
pub scte35_markers: Vec<Scte35Marker>,
pub segment_format: SegmentFormat,
pub on_demand: bool,
pub parallel: bool,
pub http_push_url: Option<String>,
}Expand description
Options controlling a package run.
Fields§
§out_dir: PathBufDirectory to write segments and manifests into (created if missing).
segment_duration: f64Target segment duration in seconds (segments cut on keyframes).
dash: boolEmit a DASH manifest (manifest.mpd).
hls: boolEmit HLS playlists (master.m3u8 + per-track media playlists).
encryption: Option<EncryptionSpec>Content encryption; None produces clear output.
presentation: PresentationModeVOD / EVENT / Live presentation mode.
live_window_segments: Option<usize>Live window size in segments. None keeps every segment (EVENT/VOD) or
defaults to 3 for Live.
multi_period: boolTreat each input as a successive DASH Period (and separate HLS master variant group) instead of an ABR ladder in one period.
trick_play: boolEmit trick-play (I-frame) tracks for video renditions.
low_latency: boolLow-latency packaging: split media segments into parts.
part_duration: Option<f64>Part target duration in seconds when low_latency is set (default: 1s).
availability_start_time: Option<String>Wall-clock availability start (ISO-8601). Defaults to “now” for live/event.
scte35_markers: Vec<Scte35Marker>SCTE-35 ad markers to inject into manifests.
segment_format: SegmentFormatSegment container format (CMAF / MPEG-TS / packed audio).
on_demand: boolDASH on-demand single-file output (SegmentList byte ranges).
parallel: boolParallelise per-track packaging with a thread pool (std threads).
http_push_url: Option<String>Optional HTTP base URL for push after local write (http://host/path).
Trait Implementations§
Source§impl Clone for PackageOptions
impl Clone for PackageOptions
Source§fn clone(&self) -> PackageOptions
fn clone(&self) -> PackageOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more