#[non_exhaustive]pub struct AudioCodecOptionsBuilder { /* private fields */ }
Expand description
A builder for AudioCodecOptions
.
Implementations§
source§impl AudioCodecOptionsBuilder
impl AudioCodecOptionsBuilder
sourcepub fn profile(self, input: impl Into<String>) -> Self
pub fn profile(self, input: impl Into<String>) -> Self
You can only choose an audio profile when you specify AAC for the value of Audio:Codec.
Specify the AAC profile for the output file. Elastic Transcoder supports the following profiles:
-
auto
: If you specifyauto
, Elastic Transcoder selects the profile based on the bit rate selected for the output file. -
AAC-LC
: The most common AAC profile. Use for bit rates larger than 64 kbps. -
HE-AAC
: Not supported on some older players and devices. Use for bit rates between 40 and 80 kbps. -
HE-AACv2
: Not supported on some players and devices. Use for bit rates less than 48 kbps.
All outputs in a Smooth
playlist must have the same value for Profile
.
If you created any presets before AAC profiles were added, Elastic Transcoder automatically updated your presets to use AAC-LC. You can change the value as required.
sourcepub fn set_profile(self, input: Option<String>) -> Self
pub fn set_profile(self, input: Option<String>) -> Self
You can only choose an audio profile when you specify AAC for the value of Audio:Codec.
Specify the AAC profile for the output file. Elastic Transcoder supports the following profiles:
-
auto
: If you specifyauto
, Elastic Transcoder selects the profile based on the bit rate selected for the output file. -
AAC-LC
: The most common AAC profile. Use for bit rates larger than 64 kbps. -
HE-AAC
: Not supported on some older players and devices. Use for bit rates between 40 and 80 kbps. -
HE-AACv2
: Not supported on some players and devices. Use for bit rates less than 48 kbps.
All outputs in a Smooth
playlist must have the same value for Profile
.
If you created any presets before AAC profiles were added, Elastic Transcoder automatically updated your presets to use AAC-LC. You can change the value as required.
sourcepub fn get_profile(&self) -> &Option<String>
pub fn get_profile(&self) -> &Option<String>
You can only choose an audio profile when you specify AAC for the value of Audio:Codec.
Specify the AAC profile for the output file. Elastic Transcoder supports the following profiles:
-
auto
: If you specifyauto
, Elastic Transcoder selects the profile based on the bit rate selected for the output file. -
AAC-LC
: The most common AAC profile. Use for bit rates larger than 64 kbps. -
HE-AAC
: Not supported on some older players and devices. Use for bit rates between 40 and 80 kbps. -
HE-AACv2
: Not supported on some players and devices. Use for bit rates less than 48 kbps.
All outputs in a Smooth
playlist must have the same value for Profile
.
If you created any presets before AAC profiles were added, Elastic Transcoder automatically updated your presets to use AAC-LC. You can change the value as required.
sourcepub fn bit_depth(self, input: impl Into<String>) -> Self
pub fn bit_depth(self, input: impl Into<String>) -> Self
You can only choose an audio bit depth when you specify flac
or pcm
for the value of Audio:Codec.
The bit depth of a sample is how many bits of information are included in the audio samples. The higher the bit depth, the better the audio, but the larger the file.
Valid values are 16
and 24
.
The most common bit depth is 24
.
sourcepub fn set_bit_depth(self, input: Option<String>) -> Self
pub fn set_bit_depth(self, input: Option<String>) -> Self
You can only choose an audio bit depth when you specify flac
or pcm
for the value of Audio:Codec.
The bit depth of a sample is how many bits of information are included in the audio samples. The higher the bit depth, the better the audio, but the larger the file.
Valid values are 16
and 24
.
The most common bit depth is 24
.
sourcepub fn get_bit_depth(&self) -> &Option<String>
pub fn get_bit_depth(&self) -> &Option<String>
You can only choose an audio bit depth when you specify flac
or pcm
for the value of Audio:Codec.
The bit depth of a sample is how many bits of information are included in the audio samples. The higher the bit depth, the better the audio, but the larger the file.
Valid values are 16
and 24
.
The most common bit depth is 24
.
sourcepub fn bit_order(self, input: impl Into<String>) -> Self
pub fn bit_order(self, input: impl Into<String>) -> Self
You can only choose an audio bit order when you specify pcm
for the value of Audio:Codec.
The order the bits of a PCM sample are stored in.
The supported value is LittleEndian
.
sourcepub fn set_bit_order(self, input: Option<String>) -> Self
pub fn set_bit_order(self, input: Option<String>) -> Self
You can only choose an audio bit order when you specify pcm
for the value of Audio:Codec.
The order the bits of a PCM sample are stored in.
The supported value is LittleEndian
.
sourcepub fn get_bit_order(&self) -> &Option<String>
pub fn get_bit_order(&self) -> &Option<String>
You can only choose an audio bit order when you specify pcm
for the value of Audio:Codec.
The order the bits of a PCM sample are stored in.
The supported value is LittleEndian
.
sourcepub fn signed(self, input: impl Into<String>) -> Self
pub fn signed(self, input: impl Into<String>) -> Self
You can only choose whether an audio sample is signed when you specify pcm
for the value of Audio:Codec.
Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned).
The supported value is Signed
.
sourcepub fn set_signed(self, input: Option<String>) -> Self
pub fn set_signed(self, input: Option<String>) -> Self
You can only choose whether an audio sample is signed when you specify pcm
for the value of Audio:Codec.
Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned).
The supported value is Signed
.
sourcepub fn get_signed(&self) -> &Option<String>
pub fn get_signed(&self) -> &Option<String>
You can only choose whether an audio sample is signed when you specify pcm
for the value of Audio:Codec.
Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned).
The supported value is Signed
.
sourcepub fn build(self) -> AudioCodecOptions
pub fn build(self) -> AudioCodecOptions
Consumes the builder and constructs a AudioCodecOptions
.
Trait Implementations§
source§impl Clone for AudioCodecOptionsBuilder
impl Clone for AudioCodecOptionsBuilder
source§fn clone(&self) -> AudioCodecOptionsBuilder
fn clone(&self) -> AudioCodecOptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AudioCodecOptionsBuilder
impl Debug for AudioCodecOptionsBuilder
source§impl Default for AudioCodecOptionsBuilder
impl Default for AudioCodecOptionsBuilder
source§fn default() -> AudioCodecOptionsBuilder
fn default() -> AudioCodecOptionsBuilder
source§impl PartialEq for AudioCodecOptionsBuilder
impl PartialEq for AudioCodecOptionsBuilder
source§fn eq(&self, other: &AudioCodecOptionsBuilder) -> bool
fn eq(&self, other: &AudioCodecOptionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.