public static interface AudioSelector.Builder extends SdkPojo, CopyableBuilder<AudioSelector.Builder,AudioSelector>
Modifier and Type | Method and Description |
---|---|
AudioSelector.Builder |
audioDurationCorrection(AudioDurationCorrection audioDurationCorrection)
Apply audio timing corrections to help synchronize audio and video in your output.
|
AudioSelector.Builder |
audioDurationCorrection(String audioDurationCorrection)
Apply audio timing corrections to help synchronize audio and video in your output.
|
AudioSelector.Builder |
customLanguageCode(String customLanguageCode)
Selects a specific language code from within an audio source, using the ISO 639-2 or ISO 639-3 three-letter
language code
|
AudioSelector.Builder |
defaultSelection(AudioDefaultSelection defaultSelection)
Enable this setting on one audio selector to set it as the default for the job.
|
AudioSelector.Builder |
defaultSelection(String defaultSelection)
Enable this setting on one audio selector to set it as the default for the job.
|
AudioSelector.Builder |
externalAudioFileInput(String externalAudioFileInput)
Specifies audio data from an external file source.
|
default AudioSelector.Builder |
hlsRenditionGroupSettings(Consumer<HlsRenditionGroupSettings.Builder> hlsRenditionGroupSettings)
Settings specific to audio sources in an HLS alternate rendition group.
|
AudioSelector.Builder |
hlsRenditionGroupSettings(HlsRenditionGroupSettings hlsRenditionGroupSettings)
Settings specific to audio sources in an HLS alternate rendition group.
|
AudioSelector.Builder |
languageCode(LanguageCode languageCode)
Selects a specific language code from within an audio source.
|
AudioSelector.Builder |
languageCode(String languageCode)
Selects a specific language code from within an audio source.
|
AudioSelector.Builder |
offset(Integer offset)
Specifies a time delta in milliseconds to offset the audio from the input video.
|
AudioSelector.Builder |
pids(Collection<Integer> pids)
Selects a specific PID from within an audio source (e.g.
|
AudioSelector.Builder |
pids(Integer... pids)
Selects a specific PID from within an audio source (e.g.
|
AudioSelector.Builder |
programSelection(Integer programSelection)
Use this setting for input streams that contain Dolby E, to have the service extract specific program data
from the track.
|
default AudioSelector.Builder |
remixSettings(Consumer<RemixSettings.Builder> remixSettings)
Use these settings to reorder the audio channels of one input to match those of another input.
|
AudioSelector.Builder |
remixSettings(RemixSettings remixSettings)
Use these settings to reorder the audio channels of one input to match those of another input.
|
AudioSelector.Builder |
selectorType(AudioSelectorType selectorType)
Specifies the type of the audio selector.
|
AudioSelector.Builder |
selectorType(String selectorType)
Specifies the type of the audio selector.
|
AudioSelector.Builder |
tracks(Collection<Integer> tracks)
Identify a track from the input audio to include in this selector by entering the track index number.
|
AudioSelector.Builder |
tracks(Integer... tracks)
Identify a track from the input audio to include in this selector by entering the track index number.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
AudioSelector.Builder audioDurationCorrection(String audioDurationCorrection)
audioDurationCorrection
- Apply audio timing corrections to help synchronize audio and video in your output. To apply timing
corrections, your input must meet the following requirements: * Container: MP4, or MOV, with an
accurate time-to-sample (STTS) table. * Audio track: AAC. Choose from the following audio timing
correction settings: * Disabled (Default): Apply no correction. * Auto: Recommended for most inputs.
MediaConvert analyzes the audio timing in your input and determines which correction setting to use,
if needed. * Track: Adjust the duration of each audio frame by a constant amount to align the audio
track length with STTS duration. Track-level correction does not affect pitch, and is recommended for
tonal audio content such as music. * Frame: Adjust the duration of each audio frame by a variable
amount to align audio frames with STTS timestamps. No corrections are made to already-aligned frames.
Frame-level correction may affect the pitch of corrected frames, and is recommended for atonal audio
content such as speech or percussion.AudioDurationCorrection
,
AudioDurationCorrection
AudioSelector.Builder audioDurationCorrection(AudioDurationCorrection audioDurationCorrection)
audioDurationCorrection
- Apply audio timing corrections to help synchronize audio and video in your output. To apply timing
corrections, your input must meet the following requirements: * Container: MP4, or MOV, with an
accurate time-to-sample (STTS) table. * Audio track: AAC. Choose from the following audio timing
correction settings: * Disabled (Default): Apply no correction. * Auto: Recommended for most inputs.
MediaConvert analyzes the audio timing in your input and determines which correction setting to use,
if needed. * Track: Adjust the duration of each audio frame by a constant amount to align the audio
track length with STTS duration. Track-level correction does not affect pitch, and is recommended for
tonal audio content such as music. * Frame: Adjust the duration of each audio frame by a variable
amount to align audio frames with STTS timestamps. No corrections are made to already-aligned frames.
Frame-level correction may affect the pitch of corrected frames, and is recommended for atonal audio
content such as speech or percussion.AudioDurationCorrection
,
AudioDurationCorrection
AudioSelector.Builder customLanguageCode(String customLanguageCode)
customLanguageCode
- Selects a specific language code from within an audio source, using the ISO 639-2 or ISO 639-3
three-letter language codeAudioSelector.Builder defaultSelection(String defaultSelection)
defaultSelection
- 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.AudioDefaultSelection
,
AudioDefaultSelection
AudioSelector.Builder defaultSelection(AudioDefaultSelection defaultSelection)
defaultSelection
- 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.AudioDefaultSelection
,
AudioDefaultSelection
AudioSelector.Builder externalAudioFileInput(String externalAudioFileInput)
externalAudioFileInput
- Specifies audio data from an external file source.AudioSelector.Builder hlsRenditionGroupSettings(HlsRenditionGroupSettings hlsRenditionGroupSettings)
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.default AudioSelector.Builder hlsRenditionGroupSettings(Consumer<HlsRenditionGroupSettings.Builder> hlsRenditionGroupSettings)
HlsRenditionGroupSettings.Builder
avoiding the need to create one manually via
HlsRenditionGroupSettings.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to hlsRenditionGroupSettings(HlsRenditionGroupSettings)
.
hlsRenditionGroupSettings
- a consumer that will call methods on HlsRenditionGroupSettings.Builder
hlsRenditionGroupSettings(HlsRenditionGroupSettings)
AudioSelector.Builder languageCode(String languageCode)
languageCode
- Selects a specific language code from within an audio source.LanguageCode
,
LanguageCode
AudioSelector.Builder languageCode(LanguageCode languageCode)
languageCode
- Selects a specific language code from within an audio source.LanguageCode
,
LanguageCode
AudioSelector.Builder offset(Integer offset)
offset
- Specifies a time delta in milliseconds to offset the audio from the input video.AudioSelector.Builder pids(Collection<Integer> pids)
pids
- Selects a specific PID from within an audio source (e.g. 257 selects PID 0x101).AudioSelector.Builder pids(Integer... pids)
pids
- Selects a specific PID from within an audio source (e.g. 257 selects PID 0x101).AudioSelector.Builder programSelection(Integer programSelection)
programSelection
- 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.AudioSelector.Builder remixSettings(RemixSettings remixSettings)
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.default AudioSelector.Builder remixSettings(Consumer<RemixSettings.Builder> remixSettings)
RemixSettings.Builder
avoiding the need to create one manually via
RemixSettings.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to remixSettings(RemixSettings)
.
remixSettings
- a consumer that will call methods on RemixSettings.Builder
remixSettings(RemixSettings)
AudioSelector.Builder selectorType(String selectorType)
selectorType
- Specifies the type of the audio selector.AudioSelectorType
,
AudioSelectorType
AudioSelector.Builder selectorType(AudioSelectorType selectorType)
selectorType
- Specifies the type of the audio selector.AudioSelectorType
,
AudioSelectorType
AudioSelector.Builder tracks(Collection<Integer> tracks)
tracks
- 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].AudioSelector.Builder tracks(Integer... tracks)
tracks
- 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].Copyright © 2022. All rights reserved.