Struct aws_sdk_elastictranscoder::model::AudioCodecOptions
source · [−]#[non_exhaustive]pub struct AudioCodecOptions {
pub profile: Option<String>,
pub bit_depth: Option<String>,
pub bit_order: Option<String>,
pub signed: Option<String>,
}
Expand description
Options associated with your audio codec.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.profile: 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.
bit_depth: 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
.
bit_order: 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
.
signed: 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
.
Implementations
sourceimpl AudioCodecOptions
impl AudioCodecOptions
sourcepub fn profile(&self) -> Option<&str>
pub fn profile(&self) -> Option<&str>
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) -> Option<&str>
pub fn bit_depth(&self) -> Option<&str>
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
.
sourceimpl AudioCodecOptions
impl AudioCodecOptions
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AudioCodecOptions
.
Trait Implementations
sourceimpl Clone for AudioCodecOptions
impl Clone for AudioCodecOptions
sourcefn clone(&self) -> AudioCodecOptions
fn clone(&self) -> AudioCodecOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AudioCodecOptions
impl Debug for AudioCodecOptions
sourceimpl PartialEq<AudioCodecOptions> for AudioCodecOptions
impl PartialEq<AudioCodecOptions> for AudioCodecOptions
sourcefn eq(&self, other: &AudioCodecOptions) -> bool
fn eq(&self, other: &AudioCodecOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AudioCodecOptions) -> bool
fn ne(&self, other: &AudioCodecOptions) -> bool
This method tests for !=
.
impl StructuralPartialEq for AudioCodecOptions
Auto Trait Implementations
impl RefUnwindSafe for AudioCodecOptions
impl Send for AudioCodecOptions
impl Sync for AudioCodecOptions
impl Unpin for AudioCodecOptions
impl UnwindSafe for AudioCodecOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more