Skip to main content

PackageKnobs

Struct PackageKnobs 

Source
pub struct PackageKnobs {
Show 32 fields pub hls_base_url: Option<String>, pub hls_media_sequence_number: u64, pub hls_start_time_offset: Option<f64>, pub create_session_keys: bool, pub add_program_date_time: bool, pub closed_captions: Vec<ClosedCaption>, pub use_legacy_vp9_codec_string: bool, pub dash_add_last_segment_number: bool, pub segment_template_constant_duration: bool, pub use_dovi_supplemental_codecs: bool, pub mvex_before_trak: bool, pub strip_parameter_set_nalus: bool, pub crypt_byte_block: u8, pub skip_byte_block: u8, pub playready_extra_header_data: Option<String>, pub hls_aes128: bool, pub labeled_keys: Vec<LabeledKey>, pub decrypt_input: bool, pub widevine: Option<WidevineConfig>, pub cpix: Option<CpixConfig>, pub ignore_http_output_failures: bool, pub user_agent: Option<String>, pub ca_file: Option<PathBuf>, pub client_cert_file: Option<PathBuf>, pub client_cert_key_file: Option<PathBuf>, pub client_cert_key_password: Option<String>, pub disable_peer_verification: bool, pub live_rewrite: bool, pub descriptors: Vec<StreamDescriptor>, pub max_sd_pixels: u32, pub max_hd_pixels: u32, pub max_uhd1_pixels: u32,
}
Expand description

HLS / DASH / mux / DRM / IO knobs layered on crate::PackageOptions.

Fields§

§hls_base_url: Option<String>

--hls_base_url.

§hls_media_sequence_number: u64

--hls_media_sequence_number initial value (live window still offsets).

§hls_start_time_offset: Option<f64>

--hls_start_time_offset.

§create_session_keys: bool

--create_session_keys.

§add_program_date_time: bool

--add_program_date_time (also implied for live/event).

§closed_captions: Vec<ClosedCaption>

--closed_captions.

§use_legacy_vp9_codec_string: bool

--use_legacy_vp9_codec_string.

§dash_add_last_segment_number: bool

--dash_add_last_segment_number_when_needed.

§segment_template_constant_duration: bool

--segment_template_constant_duration.

§use_dovi_supplemental_codecs: bool

--use_dovi_supplemental_codecs.

§mvex_before_trak: bool

--mvex_before_trak.

§strip_parameter_set_nalus: bool

--strip_parameter_set_nalus (avc1/hvc1 vs avc3/hev1). Stored for muxers.

§crypt_byte_block: u8

--crypt_byte_block (pattern schemes). Default 1.

§skip_byte_block: u8

--skip_byte_block (pattern schemes). Default 9.

§playready_extra_header_data: Option<String>

--playready_extra_header_data.

§hls_aes128: bool

--protection_scheme aes128 — HLS AES-128 full-segment CBC.

§labeled_keys: Vec<LabeledKey>

--keys label=AUDIO:key_id=…:key=….

§decrypt_input: bool

--decrypt / --enable_raw_key decryption of encrypted inputs.

§widevine: Option<WidevineConfig>

Widevine license-server fetch.

§cpix: Option<CpixConfig>

CPIX / SPEKE.

§ignore_http_output_failures: bool

--ignore_http_output_failures.

§user_agent: Option<String>

--user_agent.

§ca_file: Option<PathBuf>

--ca_file.

§client_cert_file: Option<PathBuf>

--client_cert_file.

§client_cert_key_file: Option<PathBuf>

--client_cert_private_key_file.

§client_cert_key_password: Option<String>

--client_cert_private_key_password.

§disable_peer_verification: bool

--disable_peer_verification.

§live_rewrite: bool

Keep rewriting live manifests until interrupted.

§descriptors: Vec<StreamDescriptor>

Stream descriptors (when non-empty, they replace bare input paths).

§max_sd_pixels: u32

Pixel thresholds for auto DRM labels (Shaka defaults).

§max_hd_pixels: u32§max_uhd1_pixels: u32

Trait Implementations§

Source§

impl Clone for PackageKnobs

Source§

fn clone(&self) -> PackageKnobs

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PackageKnobs

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PackageKnobs

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V