Class AudioParameters
- java.lang.Object
-
- com.amazonaws.services.elastictranscoder.model.AudioParameters
-
- All Implemented Interfaces:
Serializable,Cloneable
public class AudioParameters extends Object implements Serializable, Cloneable
Parameters required for transcoding audio.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AudioParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AudioParametersclone()booleanequals(Object obj)StringgetAudioPackingMode()The method of organizing audio channels and tracks.StringgetBitRate()The bit rate of the audio stream in the output file, in kilobits/second.StringgetChannels()The number of audio channels in the output file.StringgetCodec()The audio codec for the output file.AudioCodecOptionsgetCodecOptions()If you specifiedAACforAudio:Codec, this is theAACcompression profile to use.StringgetSampleRate()The sample rate of the audio stream in the output file, in Hertz.inthashCode()voidsetAudioPackingMode(String audioPackingMode)The method of organizing audio channels and tracks.voidsetBitRate(String bitRate)The bit rate of the audio stream in the output file, in kilobits/second.voidsetChannels(String channels)The number of audio channels in the output file.voidsetCodec(String codec)The audio codec for the output file.voidsetCodecOptions(AudioCodecOptions codecOptions)If you specifiedAACforAudio:Codec, this is theAACcompression profile to use.voidsetSampleRate(String sampleRate)The sample rate of the audio stream in the output file, in Hertz.StringtoString()Returns a string representation of this object; useful for testing and debugging.AudioParameterswithAudioPackingMode(String audioPackingMode)The method of organizing audio channels and tracks.AudioParameterswithBitRate(String bitRate)The bit rate of the audio stream in the output file, in kilobits/second.AudioParameterswithChannels(String channels)The number of audio channels in the output file.AudioParameterswithCodec(String codec)The audio codec for the output file.AudioParameterswithCodecOptions(AudioCodecOptions codecOptions)If you specifiedAACforAudio:Codec, this is theAACcompression profile to use.AudioParameterswithSampleRate(String sampleRate)The sample rate of the audio stream in the output file, in Hertz.
-
-
-
Method Detail
-
setCodec
public void setCodec(String codec)
The audio codec for the output file. Valid values include
aac,flac,mp2,mp3,pcm, andvorbis.- Parameters:
codec- The audio codec for the output file. Valid values includeaac,flac,mp2,mp3,pcm, andvorbis.
-
getCodec
public String getCodec()
The audio codec for the output file. Valid values include
aac,flac,mp2,mp3,pcm, andvorbis.- Returns:
- The audio codec for the output file. Valid values include
aac,flac,mp2,mp3,pcm, andvorbis.
-
withCodec
public AudioParameters withCodec(String codec)
The audio codec for the output file. Valid values include
aac,flac,mp2,mp3,pcm, andvorbis.- Parameters:
codec- The audio codec for the output file. Valid values includeaac,flac,mp2,mp3,pcm, andvorbis.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSampleRate
public void setSampleRate(String sampleRate)
The sample rate of the audio stream in the output file, in Hertz. Valid values include:
auto,22050,32000,44100,48000,96000If you specify
auto, Elastic Transcoder automatically detects the sample rate.- Parameters:
sampleRate- The sample rate of the audio stream in the output file, in Hertz. Valid values include:auto,22050,32000,44100,48000,96000If you specify
auto, Elastic Transcoder automatically detects the sample rate.
-
getSampleRate
public String getSampleRate()
The sample rate of the audio stream in the output file, in Hertz. Valid values include:
auto,22050,32000,44100,48000,96000If you specify
auto, Elastic Transcoder automatically detects the sample rate.- Returns:
- The sample rate of the audio stream in the output file, in Hertz.
Valid values include:
auto,22050,32000,44100,48000,96000If you specify
auto, Elastic Transcoder automatically detects the sample rate.
-
withSampleRate
public AudioParameters withSampleRate(String sampleRate)
The sample rate of the audio stream in the output file, in Hertz. Valid values include:
auto,22050,32000,44100,48000,96000If you specify
auto, Elastic Transcoder automatically detects the sample rate.- Parameters:
sampleRate- The sample rate of the audio stream in the output file, in Hertz. Valid values include:auto,22050,32000,44100,48000,96000If you specify
auto, Elastic Transcoder automatically detects the sample rate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBitRate
public void setBitRate(String bitRate)
The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
- Parameters:
bitRate- The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
-
getBitRate
public String getBitRate()
The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
- Returns:
- The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
-
withBitRate
public AudioParameters withBitRate(String bitRate)
The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
- Parameters:
bitRate- The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setChannels
public void setChannels(String channels)
The number of audio channels in the output file. The following values are valid:
auto,0,1,2One channel carries the information played by a single speaker. For example, a stereo track with two channels sends one channel to the left speaker, and the other channel to the right speaker. The output channels are organized into tracks. If you want Elastic Transcoder to automatically detect the number of audio channels in the input file and use that value for the output file, select
auto.The output of a specific channel value and inputs are as follows:
-
autochannel specified, with any input: Pass through up to eight input channels. -
0channels specified, with any input: Audio omitted from the output. -
1channel specified, with at least one input channel: Mono sound. -
2channels specified, with any input: Two identical mono channels or stereo. For more information about tracks, seeAudio:AudioPackingMode.
For more information about how Elastic Transcoder organizes channels and tracks, see
Audio:AudioPackingMode.- Parameters:
channels- The number of audio channels in the output file. The following values are valid:auto,0,1,2One channel carries the information played by a single speaker. For example, a stereo track with two channels sends one channel to the left speaker, and the other channel to the right speaker. The output channels are organized into tracks. If you want Elastic Transcoder to automatically detect the number of audio channels in the input file and use that value for the output file, select
auto.The output of a specific channel value and inputs are as follows:
-
autochannel specified, with any input: Pass through up to eight input channels. -
0channels specified, with any input: Audio omitted from the output. -
1channel specified, with at least one input channel: Mono sound. -
2channels specified, with any input: Two identical mono channels or stereo. For more information about tracks, seeAudio:AudioPackingMode.
For more information about how Elastic Transcoder organizes channels and tracks, see
Audio:AudioPackingMode.-
-
-
getChannels
public String getChannels()
The number of audio channels in the output file. The following values are valid:
auto,0,1,2One channel carries the information played by a single speaker. For example, a stereo track with two channels sends one channel to the left speaker, and the other channel to the right speaker. The output channels are organized into tracks. If you want Elastic Transcoder to automatically detect the number of audio channels in the input file and use that value for the output file, select
auto.The output of a specific channel value and inputs are as follows:
-
autochannel specified, with any input: Pass through up to eight input channels. -
0channels specified, with any input: Audio omitted from the output. -
1channel specified, with at least one input channel: Mono sound. -
2channels specified, with any input: Two identical mono channels or stereo. For more information about tracks, seeAudio:AudioPackingMode.
For more information about how Elastic Transcoder organizes channels and tracks, see
Audio:AudioPackingMode.- Returns:
- The number of audio channels in the output file. The following
values are valid:
auto,0,1,2One channel carries the information played by a single speaker. For example, a stereo track with two channels sends one channel to the left speaker, and the other channel to the right speaker. The output channels are organized into tracks. If you want Elastic Transcoder to automatically detect the number of audio channels in the input file and use that value for the output file, select
auto.The output of a specific channel value and inputs are as follows:
-
autochannel specified, with any input: Pass through up to eight input channels. -
0channels specified, with any input: Audio omitted from the output. -
1channel specified, with at least one input channel: Mono sound. -
2channels specified, with any input: Two identical mono channels or stereo. For more information about tracks, seeAudio:AudioPackingMode.
For more information about how Elastic Transcoder organizes channels and tracks, see
Audio:AudioPackingMode. -
-
-
withChannels
public AudioParameters withChannels(String channels)
The number of audio channels in the output file. The following values are valid:
auto,0,1,2One channel carries the information played by a single speaker. For example, a stereo track with two channels sends one channel to the left speaker, and the other channel to the right speaker. The output channels are organized into tracks. If you want Elastic Transcoder to automatically detect the number of audio channels in the input file and use that value for the output file, select
auto.The output of a specific channel value and inputs are as follows:
-
autochannel specified, with any input: Pass through up to eight input channels. -
0channels specified, with any input: Audio omitted from the output. -
1channel specified, with at least one input channel: Mono sound. -
2channels specified, with any input: Two identical mono channels or stereo. For more information about tracks, seeAudio:AudioPackingMode.
For more information about how Elastic Transcoder organizes channels and tracks, see
Audio:AudioPackingMode.- Parameters:
channels- The number of audio channels in the output file. The following values are valid:auto,0,1,2One channel carries the information played by a single speaker. For example, a stereo track with two channels sends one channel to the left speaker, and the other channel to the right speaker. The output channels are organized into tracks. If you want Elastic Transcoder to automatically detect the number of audio channels in the input file and use that value for the output file, select
auto.The output of a specific channel value and inputs are as follows:
-
autochannel specified, with any input: Pass through up to eight input channels. -
0channels specified, with any input: Audio omitted from the output. -
1channel specified, with at least one input channel: Mono sound. -
2channels specified, with any input: Two identical mono channels or stereo. For more information about tracks, seeAudio:AudioPackingMode.
For more information about how Elastic Transcoder organizes channels and tracks, see
Audio:AudioPackingMode.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
setAudioPackingMode
public void setAudioPackingMode(String audioPackingMode)
The method of organizing audio channels and tracks. Use
Audio:Channelsto specify the number of channels in your output, andAudio:AudioPackingModeto specify the number of tracks and their relation to the channels. If you do not specify anAudio:AudioPackingMode, Elastic Transcoder usesSingleTrack.The following values are valid:
SingleTrack,OneChannelPerTrack, andOneChannelPerTrackWithMosTo8TracksWhen you specify
SingleTrack, Elastic Transcoder creates a single track for your output. The track can have up to eight channels. UseSingleTrackfor all non-mxfcontainers.The outputs of
SingleTrackfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary -
2channels with one track with one channel: One track with two identical channels -
2 or autochannels with two tracks with one channel each: One track with two channels -
2 or autochannels with one track with two channels: One track with two channels -
2channels with one track with multiple channels: One track with two channels -
autochannels with one track with one channel: One track with one channel -
autochannels with one track with multiple channels: One track with multiple channels
When you specify
OneChannelPerTrack, Elastic Transcoder creates a new track for every channel in your output. Your output can have up to eight single-channel tracks.The outputs of
OneChannelPerTrackfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary -
2channels with one track with one channel: Two tracks with one identical channel each -
2 or autochannels with two tracks with one channel each: Two tracks with one channel each -
2 or autochannels with one track with two channels: Two tracks with one channel each -
2channels with one track with multiple channels: Two tracks with one channel each -
autochannels with one track with one channel: One track with one channel -
autochannels with one track with multiple channels: Up to eight tracks with one channel each
When you specify
OneChannelPerTrackWithMosTo8Tracks, Elastic Transcoder creates eight single-channel tracks for your output. All tracks that do not contain audio data from an input channel are MOS, or Mit Out Sound, tracks.The outputs of
OneChannelPerTrackWithMosTo8Tracksfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary, plus six MOS tracks -
2channels with one track with one channel: Two tracks with one identical channel each, plus six MOS tracks -
2 or autochannels with two tracks with one channel each: Two tracks with one channel each, plus six MOS tracks -
2 or autochannels with one track with two channels: Two tracks with one channel each, plus six MOS tracks -
2channels with one track with multiple channels: Two tracks with one channel each, plus six MOS tracks -
autochannels with one track with one channel: One track with one channel, plus seven MOS tracks -
autochannels with one track with multiple channels: Up to eight tracks with one channel each, plus MOS tracks until there are eight tracks in all
- Parameters:
audioPackingMode- The method of organizing audio channels and tracks. UseAudio:Channelsto specify the number of channels in your output, andAudio:AudioPackingModeto specify the number of tracks and their relation to the channels. If you do not specify anAudio:AudioPackingMode, Elastic Transcoder usesSingleTrack.The following values are valid:
SingleTrack,OneChannelPerTrack, andOneChannelPerTrackWithMosTo8TracksWhen you specify
SingleTrack, Elastic Transcoder creates a single track for your output. The track can have up to eight channels. UseSingleTrackfor all non-mxfcontainers.The outputs of
SingleTrackfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary -
2channels with one track with one channel: One track with two identical channels -
2 or autochannels with two tracks with one channel each: One track with two channels -
2 or autochannels with one track with two channels: One track with two channels -
2channels with one track with multiple channels: One track with two channels -
autochannels with one track with one channel: One track with one channel -
autochannels with one track with multiple channels: One track with multiple channels
When you specify
OneChannelPerTrack, Elastic Transcoder creates a new track for every channel in your output. Your output can have up to eight single-channel tracks.The outputs of
OneChannelPerTrackfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary -
2channels with one track with one channel: Two tracks with one identical channel each -
2 or autochannels with two tracks with one channel each: Two tracks with one channel each -
2 or autochannels with one track with two channels: Two tracks with one channel each -
2channels with one track with multiple channels: Two tracks with one channel each -
autochannels with one track with one channel: One track with one channel -
autochannels with one track with multiple channels: Up to eight tracks with one channel each
When you specify
OneChannelPerTrackWithMosTo8Tracks, Elastic Transcoder creates eight single-channel tracks for your output. All tracks that do not contain audio data from an input channel are MOS, or Mit Out Sound, tracks.The outputs of
OneChannelPerTrackWithMosTo8Tracksfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary, plus six MOS tracks -
2channels with one track with one channel: Two tracks with one identical channel each, plus six MOS tracks -
2 or autochannels with two tracks with one channel each: Two tracks with one channel each, plus six MOS tracks -
2 or autochannels with one track with two channels: Two tracks with one channel each, plus six MOS tracks -
2channels with one track with multiple channels: Two tracks with one channel each, plus six MOS tracks -
autochannels with one track with one channel: One track with one channel, plus seven MOS tracks -
autochannels with one track with multiple channels: Up to eight tracks with one channel each, plus MOS tracks until there are eight tracks in all
-
-
-
getAudioPackingMode
public String getAudioPackingMode()
The method of organizing audio channels and tracks. Use
Audio:Channelsto specify the number of channels in your output, andAudio:AudioPackingModeto specify the number of tracks and their relation to the channels. If you do not specify anAudio:AudioPackingMode, Elastic Transcoder usesSingleTrack.The following values are valid:
SingleTrack,OneChannelPerTrack, andOneChannelPerTrackWithMosTo8TracksWhen you specify
SingleTrack, Elastic Transcoder creates a single track for your output. The track can have up to eight channels. UseSingleTrackfor all non-mxfcontainers.The outputs of
SingleTrackfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary -
2channels with one track with one channel: One track with two identical channels -
2 or autochannels with two tracks with one channel each: One track with two channels -
2 or autochannels with one track with two channels: One track with two channels -
2channels with one track with multiple channels: One track with two channels -
autochannels with one track with one channel: One track with one channel -
autochannels with one track with multiple channels: One track with multiple channels
When you specify
OneChannelPerTrack, Elastic Transcoder creates a new track for every channel in your output. Your output can have up to eight single-channel tracks.The outputs of
OneChannelPerTrackfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary -
2channels with one track with one channel: Two tracks with one identical channel each -
2 or autochannels with two tracks with one channel each: Two tracks with one channel each -
2 or autochannels with one track with two channels: Two tracks with one channel each -
2channels with one track with multiple channels: Two tracks with one channel each -
autochannels with one track with one channel: One track with one channel -
autochannels with one track with multiple channels: Up to eight tracks with one channel each
When you specify
OneChannelPerTrackWithMosTo8Tracks, Elastic Transcoder creates eight single-channel tracks for your output. All tracks that do not contain audio data from an input channel are MOS, or Mit Out Sound, tracks.The outputs of
OneChannelPerTrackWithMosTo8Tracksfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary, plus six MOS tracks -
2channels with one track with one channel: Two tracks with one identical channel each, plus six MOS tracks -
2 or autochannels with two tracks with one channel each: Two tracks with one channel each, plus six MOS tracks -
2 or autochannels with one track with two channels: Two tracks with one channel each, plus six MOS tracks -
2channels with one track with multiple channels: Two tracks with one channel each, plus six MOS tracks -
autochannels with one track with one channel: One track with one channel, plus seven MOS tracks -
autochannels with one track with multiple channels: Up to eight tracks with one channel each, plus MOS tracks until there are eight tracks in all
- Returns:
- The method of organizing audio channels and tracks. Use
Audio:Channelsto specify the number of channels in your output, andAudio:AudioPackingModeto specify the number of tracks and their relation to the channels. If you do not specify anAudio:AudioPackingMode, Elastic Transcoder usesSingleTrack.The following values are valid:
SingleTrack,OneChannelPerTrack, andOneChannelPerTrackWithMosTo8TracksWhen you specify
SingleTrack, Elastic Transcoder creates a single track for your output. The track can have up to eight channels. UseSingleTrackfor all non-mxfcontainers.The outputs of
SingleTrackfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary -
2channels with one track with one channel: One track with two identical channels -
2 or autochannels with two tracks with one channel each: One track with two channels -
2 or autochannels with one track with two channels: One track with two channels -
2channels with one track with multiple channels: One track with two channels -
autochannels with one track with one channel: One track with one channel -
autochannels with one track with multiple channels: One track with multiple channels
When you specify
OneChannelPerTrack, Elastic Transcoder creates a new track for every channel in your output. Your output can have up to eight single-channel tracks.The outputs of
OneChannelPerTrackfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary -
2channels with one track with one channel: Two tracks with one identical channel each -
2 or autochannels with two tracks with one channel each: Two tracks with one channel each -
2 or autochannels with one track with two channels: Two tracks with one channel each -
2channels with one track with multiple channels: Two tracks with one channel each -
autochannels with one track with one channel: One track with one channel -
autochannels with one track with multiple channels: Up to eight tracks with one channel each
When you specify
OneChannelPerTrackWithMosTo8Tracks, Elastic Transcoder creates eight single-channel tracks for your output. All tracks that do not contain audio data from an input channel are MOS, or Mit Out Sound, tracks.The outputs of
OneChannelPerTrackWithMosTo8Tracksfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary, plus six MOS tracks -
2channels with one track with one channel: Two tracks with one identical channel each, plus six MOS tracks -
2 or autochannels with two tracks with one channel each: Two tracks with one channel each, plus six MOS tracks -
2 or autochannels with one track with two channels: Two tracks with one channel each, plus six MOS tracks -
2channels with one track with multiple channels: Two tracks with one channel each, plus six MOS tracks -
autochannels with one track with one channel: One track with one channel, plus seven MOS tracks -
autochannels with one track with multiple channels: Up to eight tracks with one channel each, plus MOS tracks until there are eight tracks in all
-
-
-
withAudioPackingMode
public AudioParameters withAudioPackingMode(String audioPackingMode)
The method of organizing audio channels and tracks. Use
Audio:Channelsto specify the number of channels in your output, andAudio:AudioPackingModeto specify the number of tracks and their relation to the channels. If you do not specify anAudio:AudioPackingMode, Elastic Transcoder usesSingleTrack.The following values are valid:
SingleTrack,OneChannelPerTrack, andOneChannelPerTrackWithMosTo8TracksWhen you specify
SingleTrack, Elastic Transcoder creates a single track for your output. The track can have up to eight channels. UseSingleTrackfor all non-mxfcontainers.The outputs of
SingleTrackfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary -
2channels with one track with one channel: One track with two identical channels -
2 or autochannels with two tracks with one channel each: One track with two channels -
2 or autochannels with one track with two channels: One track with two channels -
2channels with one track with multiple channels: One track with two channels -
autochannels with one track with one channel: One track with one channel -
autochannels with one track with multiple channels: One track with multiple channels
When you specify
OneChannelPerTrack, Elastic Transcoder creates a new track for every channel in your output. Your output can have up to eight single-channel tracks.The outputs of
OneChannelPerTrackfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary -
2channels with one track with one channel: Two tracks with one identical channel each -
2 or autochannels with two tracks with one channel each: Two tracks with one channel each -
2 or autochannels with one track with two channels: Two tracks with one channel each -
2channels with one track with multiple channels: Two tracks with one channel each -
autochannels with one track with one channel: One track with one channel -
autochannels with one track with multiple channels: Up to eight tracks with one channel each
When you specify
OneChannelPerTrackWithMosTo8Tracks, Elastic Transcoder creates eight single-channel tracks for your output. All tracks that do not contain audio data from an input channel are MOS, or Mit Out Sound, tracks.The outputs of
OneChannelPerTrackWithMosTo8Tracksfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary, plus six MOS tracks -
2channels with one track with one channel: Two tracks with one identical channel each, plus six MOS tracks -
2 or autochannels with two tracks with one channel each: Two tracks with one channel each, plus six MOS tracks -
2 or autochannels with one track with two channels: Two tracks with one channel each, plus six MOS tracks -
2channels with one track with multiple channels: Two tracks with one channel each, plus six MOS tracks -
autochannels with one track with one channel: One track with one channel, plus seven MOS tracks -
autochannels with one track with multiple channels: Up to eight tracks with one channel each, plus MOS tracks until there are eight tracks in all
- Parameters:
audioPackingMode- The method of organizing audio channels and tracks. UseAudio:Channelsto specify the number of channels in your output, andAudio:AudioPackingModeto specify the number of tracks and their relation to the channels. If you do not specify anAudio:AudioPackingMode, Elastic Transcoder usesSingleTrack.The following values are valid:
SingleTrack,OneChannelPerTrack, andOneChannelPerTrackWithMosTo8TracksWhen you specify
SingleTrack, Elastic Transcoder creates a single track for your output. The track can have up to eight channels. UseSingleTrackfor all non-mxfcontainers.The outputs of
SingleTrackfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary -
2channels with one track with one channel: One track with two identical channels -
2 or autochannels with two tracks with one channel each: One track with two channels -
2 or autochannels with one track with two channels: One track with two channels -
2channels with one track with multiple channels: One track with two channels -
autochannels with one track with one channel: One track with one channel -
autochannels with one track with multiple channels: One track with multiple channels
When you specify
OneChannelPerTrack, Elastic Transcoder creates a new track for every channel in your output. Your output can have up to eight single-channel tracks.The outputs of
OneChannelPerTrackfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary -
2channels with one track with one channel: Two tracks with one identical channel each -
2 or autochannels with two tracks with one channel each: Two tracks with one channel each -
2 or autochannels with one track with two channels: Two tracks with one channel each -
2channels with one track with multiple channels: Two tracks with one channel each -
autochannels with one track with one channel: One track with one channel -
autochannels with one track with multiple channels: Up to eight tracks with one channel each
When you specify
OneChannelPerTrackWithMosTo8Tracks, Elastic Transcoder creates eight single-channel tracks for your output. All tracks that do not contain audio data from an input channel are MOS, or Mit Out Sound, tracks.The outputs of
OneChannelPerTrackWithMosTo8Tracksfor a specific channel value and inputs are as follows:-
0channels with any input: Audio omitted from the output -
1, 2, or autochannels with no audio input: Audio omitted from the output -
1channel with any input with audio: One track with one channel, downmixed if necessary, plus six MOS tracks -
2channels with one track with one channel: Two tracks with one identical channel each, plus six MOS tracks -
2 or autochannels with two tracks with one channel each: Two tracks with one channel each, plus six MOS tracks -
2 or autochannels with one track with two channels: Two tracks with one channel each, plus six MOS tracks -
2channels with one track with multiple channels: Two tracks with one channel each, plus six MOS tracks -
autochannels with one track with one channel: One track with one channel, plus seven MOS tracks -
autochannels with one track with multiple channels: Up to eight tracks with one channel each, plus MOS tracks until there are eight tracks in all
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
setCodecOptions
public void setCodecOptions(AudioCodecOptions codecOptions)
If you specified
AACforAudio:Codec, this is theAACcompression profile to use. Valid values include:auto,AAC-LC,HE-AAC,HE-AACv2If you specify
auto, Elastic Transcoder chooses a profile based on the bit rate of the output file.- Parameters:
codecOptions- If you specifiedAACforAudio:Codec, this is theAACcompression profile to use. Valid values include:auto,AAC-LC,HE-AAC,HE-AACv2If you specify
auto, Elastic Transcoder chooses a profile based on the bit rate of the output file.
-
getCodecOptions
public AudioCodecOptions getCodecOptions()
If you specified
AACforAudio:Codec, this is theAACcompression profile to use. Valid values include:auto,AAC-LC,HE-AAC,HE-AACv2If you specify
auto, Elastic Transcoder chooses a profile based on the bit rate of the output file.- Returns:
- If you specified
AACforAudio:Codec, this is theAACcompression profile to use. Valid values include:auto,AAC-LC,HE-AAC,HE-AACv2If you specify
auto, Elastic Transcoder chooses a profile based on the bit rate of the output file.
-
withCodecOptions
public AudioParameters withCodecOptions(AudioCodecOptions codecOptions)
If you specified
AACforAudio:Codec, this is theAACcompression profile to use. Valid values include:auto,AAC-LC,HE-AAC,HE-AACv2If you specify
auto, Elastic Transcoder chooses a profile based on the bit rate of the output file.- Parameters:
codecOptions- If you specifiedAACforAudio:Codec, this is theAACcompression profile to use. Valid values include:auto,AAC-LC,HE-AAC,HE-AACv2If you specify
auto, Elastic Transcoder chooses a profile based on the bit rate of the output file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AudioParameters clone()
-
-