#[non_exhaustive]
pub struct Eac3SettingsBuilder { /* private fields */ }
Expand description

A builder for Eac3Settings.

Implementations§

source§

impl Eac3SettingsBuilder

source

pub fn attenuation_control(self, input: Eac3AttenuationControl) -> Self

If set to ATTENUATE_3_DB, applies a 3 dB attenuation to the surround channels. Only used for 3/2 coding mode.

source

pub fn set_attenuation_control( self, input: Option<Eac3AttenuationControl> ) -> Self

If set to ATTENUATE_3_DB, applies a 3 dB attenuation to the surround channels. Only used for 3/2 coding mode.

source

pub fn get_attenuation_control(&self) -> &Option<Eac3AttenuationControl>

If set to ATTENUATE_3_DB, applies a 3 dB attenuation to the surround channels. Only used for 3/2 coding mode.

source

pub fn bitrate(self, input: i32) -> Self

Specify the average bitrate in bits per second. The bitrate that you specify must be a multiple of 8000 within the allowed minimum and maximum values. Leave blank to use the default bitrate for the coding mode you select according ETSI TS 102 366. Valid bitrates for coding mode 1/0: Default: 96000. Minimum: 32000. Maximum: 3024000. Valid bitrates for coding mode 2/0: Default: 192000. Minimum: 96000. Maximum: 3024000. Valid bitrates for coding mode 3/2: Default: 384000. Minimum: 192000. Maximum: 3024000.

source

pub fn set_bitrate(self, input: Option<i32>) -> Self

Specify the average bitrate in bits per second. The bitrate that you specify must be a multiple of 8000 within the allowed minimum and maximum values. Leave blank to use the default bitrate for the coding mode you select according ETSI TS 102 366. Valid bitrates for coding mode 1/0: Default: 96000. Minimum: 32000. Maximum: 3024000. Valid bitrates for coding mode 2/0: Default: 192000. Minimum: 96000. Maximum: 3024000. Valid bitrates for coding mode 3/2: Default: 384000. Minimum: 192000. Maximum: 3024000.

source

pub fn get_bitrate(&self) -> &Option<i32>

Specify the average bitrate in bits per second. The bitrate that you specify must be a multiple of 8000 within the allowed minimum and maximum values. Leave blank to use the default bitrate for the coding mode you select according ETSI TS 102 366. Valid bitrates for coding mode 1/0: Default: 96000. Minimum: 32000. Maximum: 3024000. Valid bitrates for coding mode 2/0: Default: 192000. Minimum: 96000. Maximum: 3024000. Valid bitrates for coding mode 3/2: Default: 384000. Minimum: 192000. Maximum: 3024000.

source

pub fn bitstream_mode(self, input: Eac3BitstreamMode) -> Self

Specify the bitstream mode for the E-AC-3 stream that the encoder emits. For more information about the EAC3 bitstream mode, see ATSC A/52-2012 (Annex E).

source

pub fn set_bitstream_mode(self, input: Option<Eac3BitstreamMode>) -> Self

Specify the bitstream mode for the E-AC-3 stream that the encoder emits. For more information about the EAC3 bitstream mode, see ATSC A/52-2012 (Annex E).

source

pub fn get_bitstream_mode(&self) -> &Option<Eac3BitstreamMode>

Specify the bitstream mode for the E-AC-3 stream that the encoder emits. For more information about the EAC3 bitstream mode, see ATSC A/52-2012 (Annex E).

source

pub fn coding_mode(self, input: Eac3CodingMode) -> Self

Dolby Digital Plus coding mode. Determines number of channels.

source

pub fn set_coding_mode(self, input: Option<Eac3CodingMode>) -> Self

Dolby Digital Plus coding mode. Determines number of channels.

source

pub fn get_coding_mode(&self) -> &Option<Eac3CodingMode>

Dolby Digital Plus coding mode. Determines number of channels.

source

pub fn dc_filter(self, input: Eac3DcFilter) -> Self

Activates a DC highpass filter for all input channels.

source

pub fn set_dc_filter(self, input: Option<Eac3DcFilter>) -> Self

Activates a DC highpass filter for all input channels.

source

pub fn get_dc_filter(&self) -> &Option<Eac3DcFilter>

Activates a DC highpass filter for all input channels.

source

pub fn dialnorm(self, input: i32) -> Self

Sets the dialnorm for the output. If blank and input audio is Dolby Digital Plus, dialnorm will be passed through.

source

pub fn set_dialnorm(self, input: Option<i32>) -> Self

Sets the dialnorm for the output. If blank and input audio is Dolby Digital Plus, dialnorm will be passed through.

source

pub fn get_dialnorm(&self) -> &Option<i32>

Sets the dialnorm for the output. If blank and input audio is Dolby Digital Plus, dialnorm will be passed through.

source

pub fn dynamic_range_compression_line( self, input: Eac3DynamicRangeCompressionLine ) -> Self

Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert uses when encoding the metadata in the Dolby Digital stream for the line operating mode. Related setting: When you use this setting, MediaConvert ignores any value you provide for Dynamic range compression profile. For information about the Dolby Digital DRC operating modes and profiles, see the Dynamic Range Control chapter of the Dolby Metadata Guide at https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf.

source

pub fn set_dynamic_range_compression_line( self, input: Option<Eac3DynamicRangeCompressionLine> ) -> Self

Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert uses when encoding the metadata in the Dolby Digital stream for the line operating mode. Related setting: When you use this setting, MediaConvert ignores any value you provide for Dynamic range compression profile. For information about the Dolby Digital DRC operating modes and profiles, see the Dynamic Range Control chapter of the Dolby Metadata Guide at https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf.

source

pub fn get_dynamic_range_compression_line( &self ) -> &Option<Eac3DynamicRangeCompressionLine>

Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert uses when encoding the metadata in the Dolby Digital stream for the line operating mode. Related setting: When you use this setting, MediaConvert ignores any value you provide for Dynamic range compression profile. For information about the Dolby Digital DRC operating modes and profiles, see the Dynamic Range Control chapter of the Dolby Metadata Guide at https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf.

source

pub fn dynamic_range_compression_rf( self, input: Eac3DynamicRangeCompressionRf ) -> Self

Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert uses when encoding the metadata in the Dolby Digital stream for the RF operating mode. Related setting: When you use this setting, MediaConvert ignores any value you provide for Dynamic range compression profile. For information about the Dolby Digital DRC operating modes and profiles, see the Dynamic Range Control chapter of the Dolby Metadata Guide at https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf.

source

pub fn set_dynamic_range_compression_rf( self, input: Option<Eac3DynamicRangeCompressionRf> ) -> Self

Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert uses when encoding the metadata in the Dolby Digital stream for the RF operating mode. Related setting: When you use this setting, MediaConvert ignores any value you provide for Dynamic range compression profile. For information about the Dolby Digital DRC operating modes and profiles, see the Dynamic Range Control chapter of the Dolby Metadata Guide at https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf.

source

pub fn get_dynamic_range_compression_rf( &self ) -> &Option<Eac3DynamicRangeCompressionRf>

Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert uses when encoding the metadata in the Dolby Digital stream for the RF operating mode. Related setting: When you use this setting, MediaConvert ignores any value you provide for Dynamic range compression profile. For information about the Dolby Digital DRC operating modes and profiles, see the Dynamic Range Control chapter of the Dolby Metadata Guide at https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf.

source

pub fn lfe_control(self, input: Eac3LfeControl) -> Self

When encoding 3/2 audio, controls whether the LFE channel is enabled

source

pub fn set_lfe_control(self, input: Option<Eac3LfeControl>) -> Self

When encoding 3/2 audio, controls whether the LFE channel is enabled

source

pub fn get_lfe_control(&self) -> &Option<Eac3LfeControl>

When encoding 3/2 audio, controls whether the LFE channel is enabled

source

pub fn lfe_filter(self, input: Eac3LfeFilter) -> Self

Applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid with 3_2_LFE coding mode.

source

pub fn set_lfe_filter(self, input: Option<Eac3LfeFilter>) -> Self

Applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid with 3_2_LFE coding mode.

source

pub fn get_lfe_filter(&self) -> &Option<Eac3LfeFilter>

Applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid with 3_2_LFE coding mode.

source

pub fn lo_ro_center_mix_level(self, input: f64) -> Self

Specify a value for the following Dolby Digital Plus setting: Left only/Right only center mix. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left only/Right only center.

source

pub fn set_lo_ro_center_mix_level(self, input: Option<f64>) -> Self

Specify a value for the following Dolby Digital Plus setting: Left only/Right only center mix. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left only/Right only center.

source

pub fn get_lo_ro_center_mix_level(&self) -> &Option<f64>

Specify a value for the following Dolby Digital Plus setting: Left only/Right only center mix. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left only/Right only center.

source

pub fn lo_ro_surround_mix_level(self, input: f64) -> Self

Specify a value for the following Dolby Digital Plus setting: Left only/Right only. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left only/Right only surround.

source

pub fn set_lo_ro_surround_mix_level(self, input: Option<f64>) -> Self

Specify a value for the following Dolby Digital Plus setting: Left only/Right only. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left only/Right only surround.

source

pub fn get_lo_ro_surround_mix_level(&self) -> &Option<f64>

Specify a value for the following Dolby Digital Plus setting: Left only/Right only. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left only/Right only surround.

source

pub fn lt_rt_center_mix_level(self, input: f64) -> Self

Specify a value for the following Dolby Digital Plus setting: Left total/Right total center mix. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left total/Right total center.

source

pub fn set_lt_rt_center_mix_level(self, input: Option<f64>) -> Self

Specify a value for the following Dolby Digital Plus setting: Left total/Right total center mix. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left total/Right total center.

source

pub fn get_lt_rt_center_mix_level(&self) -> &Option<f64>

Specify a value for the following Dolby Digital Plus setting: Left total/Right total center mix. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left total/Right total center.

source

pub fn lt_rt_surround_mix_level(self, input: f64) -> Self

Specify a value for the following Dolby Digital Plus setting: Left total/Right total surround mix. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left total/Right total surround.

source

pub fn set_lt_rt_surround_mix_level(self, input: Option<f64>) -> Self

Specify a value for the following Dolby Digital Plus setting: Left total/Right total surround mix. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left total/Right total surround.

source

pub fn get_lt_rt_surround_mix_level(&self) -> &Option<f64>

Specify a value for the following Dolby Digital Plus setting: Left total/Right total surround mix. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left total/Right total surround.

source

pub fn metadata_control(self, input: Eac3MetadataControl) -> Self

When set to FOLLOW_INPUT, encoder metadata will be sourced from the DD, DD+, or DolbyE decoder that supplied this audio data. If audio was not supplied from one of these streams, then the static metadata settings will be used.

source

pub fn set_metadata_control(self, input: Option<Eac3MetadataControl>) -> Self

When set to FOLLOW_INPUT, encoder metadata will be sourced from the DD, DD+, or DolbyE decoder that supplied this audio data. If audio was not supplied from one of these streams, then the static metadata settings will be used.

source

pub fn get_metadata_control(&self) -> &Option<Eac3MetadataControl>

When set to FOLLOW_INPUT, encoder metadata will be sourced from the DD, DD+, or DolbyE decoder that supplied this audio data. If audio was not supplied from one of these streams, then the static metadata settings will be used.

source

pub fn passthrough_control(self, input: Eac3PassthroughControl) -> Self

When set to WHEN_POSSIBLE, input DD+ audio will be passed through if it is present on the input. this detection is dynamic over the life of the transcode. Inputs that alternate between DD+ and non-DD+ content will have a consistent DD+ output as the system alternates between passthrough and encoding.

source

pub fn set_passthrough_control( self, input: Option<Eac3PassthroughControl> ) -> Self

When set to WHEN_POSSIBLE, input DD+ audio will be passed through if it is present on the input. this detection is dynamic over the life of the transcode. Inputs that alternate between DD+ and non-DD+ content will have a consistent DD+ output as the system alternates between passthrough and encoding.

source

pub fn get_passthrough_control(&self) -> &Option<Eac3PassthroughControl>

When set to WHEN_POSSIBLE, input DD+ audio will be passed through if it is present on the input. this detection is dynamic over the life of the transcode. Inputs that alternate between DD+ and non-DD+ content will have a consistent DD+ output as the system alternates between passthrough and encoding.

source

pub fn phase_control(self, input: Eac3PhaseControl) -> Self

Controls the amount of phase-shift applied to the surround channels. Only used for 3/2 coding mode.

source

pub fn set_phase_control(self, input: Option<Eac3PhaseControl>) -> Self

Controls the amount of phase-shift applied to the surround channels. Only used for 3/2 coding mode.

source

pub fn get_phase_control(&self) -> &Option<Eac3PhaseControl>

Controls the amount of phase-shift applied to the surround channels. Only used for 3/2 coding mode.

source

pub fn sample_rate(self, input: i32) -> Self

This value is always 48000. It represents the sample rate in Hz.

source

pub fn set_sample_rate(self, input: Option<i32>) -> Self

This value is always 48000. It represents the sample rate in Hz.

source

pub fn get_sample_rate(&self) -> &Option<i32>

This value is always 48000. It represents the sample rate in Hz.

source

pub fn stereo_downmix(self, input: Eac3StereoDownmix) -> Self

Choose how the service does stereo downmixing. This setting only applies if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Stereo downmix.

source

pub fn set_stereo_downmix(self, input: Option<Eac3StereoDownmix>) -> Self

Choose how the service does stereo downmixing. This setting only applies if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Stereo downmix.

source

pub fn get_stereo_downmix(&self) -> &Option<Eac3StereoDownmix>

Choose how the service does stereo downmixing. This setting only applies if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Stereo downmix.

source

pub fn surround_ex_mode(self, input: Eac3SurroundExMode) -> Self

When encoding 3/2 audio, sets whether an extra center back surround channel is matrix encoded into the left and right surround channels.

source

pub fn set_surround_ex_mode(self, input: Option<Eac3SurroundExMode>) -> Self

When encoding 3/2 audio, sets whether an extra center back surround channel is matrix encoded into the left and right surround channels.

source

pub fn get_surround_ex_mode(&self) -> &Option<Eac3SurroundExMode>

When encoding 3/2 audio, sets whether an extra center back surround channel is matrix encoded into the left and right surround channels.

source

pub fn surround_mode(self, input: Eac3SurroundMode) -> Self

When encoding 2/0 audio, sets whether Dolby Surround is matrix encoded into the two channels.

source

pub fn set_surround_mode(self, input: Option<Eac3SurroundMode>) -> Self

When encoding 2/0 audio, sets whether Dolby Surround is matrix encoded into the two channels.

source

pub fn get_surround_mode(&self) -> &Option<Eac3SurroundMode>

When encoding 2/0 audio, sets whether Dolby Surround is matrix encoded into the two channels.

source

pub fn build(self) -> Eac3Settings

Consumes the builder and constructs a Eac3Settings.

Trait Implementations§

source§

impl Clone for Eac3SettingsBuilder

source§

fn clone(&self) -> Eac3SettingsBuilder

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Eac3SettingsBuilder

source§

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

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

impl Default for Eac3SettingsBuilder

source§

fn default() -> Eac3SettingsBuilder

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

impl PartialEq for Eac3SettingsBuilder

source§

fn eq(&self, other: &Eac3SettingsBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Eac3SettingsBuilder

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<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

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

§

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>,

§

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>,

§

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<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more