Struct google_api_proto::google::cloud::video::transcoder::v1::AudioStream
source · 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,
}
Expand description
Audio stream resource.
Fields§
§codec: String
The codec for this audio stream. The default is aac
.
Supported audio codecs:
aac
aac-he
aac-he-v2
mp3
ac3
eac3
bitrate_bps: i32
Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
channel_count: i32
Number 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 Job.edit_list
atoms with audio EditAtom.inputs
.
sample_rate_hertz: i32
The audio sample rate in Hertz. The default is 48000 Hertz.
language_code: String
The 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: String
The name for this particular audio stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.
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 moresource§impl Debug for AudioStream
impl Debug for AudioStream
source§impl Default for AudioStream
impl Default for AudioStream
source§impl Message for AudioStream
impl Message for AudioStream
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for AudioStream
impl PartialEq for AudioStream
source§fn eq(&self, other: &AudioStream) -> bool
fn eq(&self, other: &AudioStream) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AudioStream
Auto Trait Implementations§
impl Freeze for AudioStream
impl RefUnwindSafe for AudioStream
impl Send for AudioStream
impl Sync for AudioStream
impl Unpin for AudioStream
impl UnwindSafe for AudioStream
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request