logo
pub struct AudioSelector {
    pub custom_language_code: Option<String>,
    pub default_selection: Option<String>,
    pub external_audio_file_input: Option<String>,
    pub hls_rendition_group_settings: Option<HlsRenditionGroupSettings>,
    pub language_code: Option<String>,
    pub offset: Option<i64>,
    pub pids: Option<Vec<i64>>,
    pub program_selection: Option<i64>,
    pub remix_settings: Option<RemixSettings>,
    pub selector_type: Option<String>,
    pub tracks: Option<Vec<i64>>,
}
Expand description

Use Audio selectors (AudioSelectors) to specify a track or set of tracks from the input that you will use in your outputs. You can use multiple Audio selectors per input.

Fields

custom_language_code: Option<String>

Selects a specific language code from within an audio source, using the ISO 639-2 or ISO 639-3 three-letter language code

default_selection: Option<String>

Enable this setting on one audio selector to set it as the default for the job. The service uses this default for outputs where it can't find the specified input audio. If you don't set a default, those outputs have no audio.

external_audio_file_input: Option<String>

Specifies audio data from an external file source.

hls_rendition_group_settings: Option<HlsRenditionGroupSettings>

Settings specific to audio sources in an HLS alternate rendition group. Specify the properties (renditionGroupId, renditionName or renditionLanguageCode) to identify the unique audio track among the alternative rendition groups present in the HLS manifest. If no unique track is found, or multiple tracks match the properties provided, the job fails. If no properties in hlsRenditionGroupSettings are specified, the default audio track within the video segment is chosen. If there is no audio within video segment, the alternative audio with DEFAULT=YES is chosen instead.

language_code: Option<String>

Selects a specific language code from within an audio source.

offset: Option<i64>

Specifies a time delta in milliseconds to offset the audio from the input video.

pids: Option<Vec<i64>>

Selects a specific PID from within an audio source (e.g. 257 selects PID 0x101).

program_selection: Option<i64>

Use this setting for input streams that contain Dolby E, to have the service extract specific program data from the track. To select multiple programs, create multiple selectors with the same Track and different Program numbers. In the console, this setting is visible when you set Selector type to Track. Choose the program number from the dropdown list. If you are sending a JSON file, provide the program ID, which is part of the audio metadata. If your input file has incorrect metadata, you can choose All channels instead of a program number to have the service ignore the program IDs and include all the programs in the track.

remix_settings: Option<RemixSettings>

Use these settings to reorder the audio channels of one input to match those of another input. This allows you to combine the two files into a single output, one after the other.

selector_type: Option<String>

Specifies the type of the audio selector.

tracks: Option<Vec<i64>>

Identify a track from the input audio to include in this selector by entering the track index number. To include several tracks in a single audio selector, specify multiple tracks as follows. Using the console, enter a comma-separated list. For examle, type "1,2,3" to include tracks 1 through 3. Specifying directly in your JSON job file, provide the track numbers in an array. For example, "tracks": [1,2,3].

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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