pub struct StreamDescriptor {Show 17 fields
pub input: PathBuf,
pub selector: StreamSelector,
pub output: Option<String>,
pub segment_template: Option<String>,
pub bandwidth: Option<u32>,
pub language: Option<String>,
pub skip_encryption: bool,
pub drm_label: Option<String>,
pub trick_play_factor: Option<u32>,
pub hls_name: Option<String>,
pub hls_group_id: Option<String>,
pub playlist_name: Option<String>,
pub iframe_playlist_name: Option<String>,
pub hls_characteristics: Vec<String>,
pub dash_accessibilities: Vec<(String, String)>,
pub dash_roles: Vec<String>,
pub forced_subtitle: bool,
}Expand description
Per-stream overrides mirroring Shaka Packager stream_descriptor fields.
Fields§
§input: PathBufInput path (input= / in=).
selector: StreamSelectorTrack selector (stream=).
output: Option<String>Optional output / init name (output= / init_segment=).
segment_template: Option<String>Optional segment name template (segment_template=). $Number$ is replaced.
bandwidth: Option<u32>Manifest bandwidth override, bits/sec (bandwidth= / bw=).
language: Option<String>Language tag override (language= / lang=).
skip_encryption: boolSkip CENC for this stream (skip_encryption=1).
drm_label: Option<String>DRM key label (drm_label=): AUDIO, SD, HD, UHD1, UHD2, or a --keys label.
trick_play_factor: Option<u32>Trick-play factor: keep every Nth keyframe (trick_play_factor= / tpf=).
hls_name: Option<String>HLS #EXT-X-MEDIA NAME (hls_name=).
hls_group_id: Option<String>HLS #EXT-X-MEDIA GROUP-ID (hls_group_id=).
playlist_name: Option<String>HLS media playlist filename (playlist_name=).
iframe_playlist_name: Option<String>HLS I-frame playlist filename (iframe_playlist_name=).
hls_characteristics: Vec<String>HLS CHARACTERISTICS (hls_characteristics= / charcs=), colon/semicolon split.
dash_accessibilities: Vec<(String, String)>DASH Accessibility schemeIdUri=value (dash_accessibilities=).
dash_roles: Vec<String>DASH Role values (dash_roles=).
forced_subtitle: boolForced narrative subtitle (forced_subtitle=1).
Implementations§
Trait Implementations§
Source§impl Clone for StreamDescriptor
impl Clone for StreamDescriptor
Source§fn clone(&self) -> StreamDescriptor
fn clone(&self) -> StreamDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more