#[non_exhaustive]pub struct AudioStream {
pub codec: String,
pub bitrate_bps: i32,
pub channel_count: i32,
pub channel_layout: Vec<String>,
pub mapping: Vec<AudioMapping>,
pub sample_rate_hertz: i32,
pub language_code: String,
pub display_name: String,
/* private fields */
}Expand description
Audio stream resource.
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.codec: StringThe codec for this audio stream. The default is aac.
Supported audio codecs:
aacaac-heaac-he-v2mp3ac3eac3vorbis
bitrate_bps: i32Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
channel_count: i32Number of audio channels. Must be between 1 and 6. The default is 2.
channel_layout: Vec<String>A list of channel names specifying layout of the audio channels.
This only affects the metadata embedded in the container headers, if
supported by the specified format. The default is ["fl", "fr"].
Supported channel names:
fl- Front left channelfr- Front right channelsl- Side left channelsr- Side right channelfc- Front center channellfe- Low frequency
mapping: Vec<AudioMapping>The mapping for the JobConfig.edit_list atoms with audio EditAtom.inputs.
sample_rate_hertz: i32The audio sample rate in Hertz. The default is 48000 Hertz.
language_code: StringThe BCP-47 language code, such as en-US or sr-Latn. For more
information, see
https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not
supported in MP4 files.
display_name: StringThe name for this particular audio stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.
Implementations§
Source§impl AudioStream
impl AudioStream
pub fn new() -> Self
Sourcepub fn set_bitrate_bps<T: Into<i32>>(self, v: T) -> Self
pub fn set_bitrate_bps<T: Into<i32>>(self, v: T) -> Self
Sets the value of bitrate_bps.
Sourcepub fn set_channel_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_channel_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of channel_count.
Sourcepub fn set_channel_layout<T, V>(self, v: T) -> Self
pub fn set_channel_layout<T, V>(self, v: T) -> Self
Sets the value of channel_layout.
Sourcepub fn set_mapping<T, V>(self, v: T) -> Self
pub fn set_mapping<T, V>(self, v: T) -> Self
Sets the value of mapping.
Sourcepub fn set_sample_rate_hertz<T: Into<i32>>(self, v: T) -> Self
pub fn set_sample_rate_hertz<T: Into<i32>>(self, v: T) -> Self
Sets the value of sample_rate_hertz.
Sourcepub fn set_language_code<T: Into<String>>(self, v: T) -> Self
pub fn set_language_code<T: Into<String>>(self, v: T) -> Self
Sets the value of language_code.
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Trait Implementations§
Source§impl Clone for AudioStream
impl Clone for AudioStream
Source§fn clone(&self) -> AudioStream
fn clone(&self) -> AudioStream
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more