All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.elastictranscoder.model.AudioParameters Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Elastic Transcoder module holds the client classes that are used for communicating with Amazon Elastic Transcoder Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.elastictranscoder.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Parameters required for transcoding audio. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AudioParameters implements Serializable, Cloneable, StructuredPojo { /** *

* The audio codec for the output file. Valid values include aac, flac, mp2, * mp3, pcm, and vorbis. *

*/ private String codec; /** *

* The sample rate of the audio stream in the output file, in Hertz. Valid values include: *

*

* auto, 22050, 32000, 44100, 48000, * 96000 *

*

* If you specify auto, Elastic Transcoder automatically detects the sample rate. *

*/ private String sampleRate; /** *

* The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, * inclusive. *

*/ private String bitRate; /** *

* The number of audio channels in the output file. The following values are valid: *

*

* auto, 0, 1, 2 *

*

* One 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: *

*
    *
  • *

    * auto channel specified, with any input: Pass through up to eight input channels. *

    *
  • *
  • *

    * 0 channels specified, with any input: Audio omitted from the output. *

    *
  • *
  • *

    * 1 channel specified, with at least one input channel: Mono sound. *

    *
  • *
  • *

    * 2 channels specified, with any input: Two identical mono channels or stereo. For more * information about tracks, see Audio:AudioPackingMode. *

    *
  • *
*

* For more information about how Elastic Transcoder organizes channels and tracks, see * Audio:AudioPackingMode. *

*/ private String channels; /** *

* The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of * channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their * relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses * SingleTrack. *

*

* The following values are valid: *

*

* SingleTrack, OneChannelPerTrack, and OneChannelPerTrackWithMosTo8Tracks *

*

* When you specify SingleTrack, Elastic Transcoder creates a single track for your output. The track * can have up to eight channels. Use SingleTrack for all non-mxf containers. *

*

* The outputs of SingleTrack for a specific channel value and inputs are as follows: *

*
    *
  • *

    * 0 channels with any input: Audio omitted from the output *

    *
  • *
  • *

    * 1, 2, or auto channels with no audio input: Audio omitted from the output *

    *
  • *
  • *

    * 1 channel with any input with audio: One track with one channel, downmixed if necessary *

    *
  • *
  • *

    * 2 channels with one track with one channel: One track with two identical channels *

    *
  • *
  • *

    * 2 or auto channels with two tracks with one channel each: One track with two channels *

    *
  • *
  • *

    * 2 or auto channels with one track with two channels: One track with two channels *

    *
  • *
  • *

    * 2 channels with one track with multiple channels: One track with two channels *

    *
  • *
  • *

    * auto channels with one track with one channel: One track with one channel *

    *
  • *
  • *

    * auto channels 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 OneChannelPerTrack for a specific channel value and inputs are as follows: *

*
    *
  • *

    * 0 channels with any input: Audio omitted from the output *

    *
  • *
  • *

    * 1, 2, or auto channels with no audio input: Audio omitted from the output *

    *
  • *
  • *

    * 1 channel with any input with audio: One track with one channel, downmixed if necessary *

    *
  • *
  • *

    * 2 channels with one track with one channel: Two tracks with one identical channel each *

    *
  • *
  • *

    * 2 or auto channels with two tracks with one channel each: Two tracks with one channel each *

    *
  • *
  • *

    * 2 or auto channels with one track with two channels: Two tracks with one channel each *

    *
  • *
  • *

    * 2 channels with one track with multiple channels: Two tracks with one channel each *

    *
  • *
  • *

    * auto channels with one track with one channel: One track with one channel *

    *
  • *
  • *

    * auto channels 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 OneChannelPerTrackWithMosTo8Tracks for a specific channel value and inputs are as * follows: *

*
    *
  • *

    * 0 channels with any input: Audio omitted from the output *

    *
  • *
  • *

    * 1, 2, or auto channels with no audio input: Audio omitted from the output *

    *
  • *
  • *

    * 1 channel with any input with audio: One track with one channel, downmixed if necessary, * plus six MOS tracks *

    *
  • *
  • *

    * 2 channels with one track with one channel: Two tracks with one identical channel each, plus * six MOS tracks *

    *
  • *
  • *

    * 2 or auto channels with two tracks with one channel each: Two tracks with one channel each, * plus six MOS tracks *

    *
  • *
  • *

    * 2 or auto channels with one track with two channels: Two tracks with one channel each, plus * six MOS tracks *

    *
  • *
  • *

    * 2 channels with one track with multiple channels: Two tracks with one channel each, plus six * MOS tracks *

    *
  • *
  • *

    * auto channels with one track with one channel: One track with one channel, plus seven MOS * tracks *

    *
  • *
  • *

    * auto channels with one track with multiple channels: Up to eight tracks with one channel * each, plus MOS tracks until there are eight tracks in all *

    *
  • *
*/ private String audioPackingMode; /** *

* If you specified AAC for Audio:Codec, this is the AAC compression profile * to use. Valid values include: *

*

* auto, AAC-LC, HE-AAC, HE-AACv2 *

*

* If you specify auto, Elastic Transcoder chooses a profile based on the bit rate of the output file. *

*/ private AudioCodecOptions codecOptions; /** *

* The audio codec for the output file. Valid values include aac, flac, mp2, * mp3, pcm, and vorbis. *

* * @param codec * The audio codec for the output file. Valid values include aac, flac, * mp2, mp3, pcm, and vorbis. */ public void setCodec(String codec) { this.codec = codec; } /** *

* The audio codec for the output file. Valid values include aac, flac, mp2, * mp3, pcm, and vorbis. *

* * @return The audio codec for the output file. Valid values include aac, flac, * mp2, mp3, pcm, and vorbis. */ public String getCodec() { return this.codec; } /** *

* The audio codec for the output file. Valid values include aac, flac, mp2, * mp3, pcm, and vorbis. *

* * @param codec * The audio codec for the output file. Valid values include aac, flac, * mp2, mp3, pcm, and vorbis. * @return Returns a reference to this object so that method calls can be chained together. */ public AudioParameters withCodec(String codec) { setCodec(codec); return this; } /** *

* The sample rate of the audio stream in the output file, in Hertz. Valid values include: *

*

* auto, 22050, 32000, 44100, 48000, * 96000 *

*

* If you specify auto, Elastic Transcoder automatically detects the sample rate. *

* * @param sampleRate * The sample rate of the audio stream in the output file, in Hertz. Valid values include:

*

* auto, 22050, 32000, 44100, 48000, * 96000 *

*

* If you specify auto, Elastic Transcoder automatically detects the sample rate. */ public void setSampleRate(String sampleRate) { this.sampleRate = sampleRate; } /** *

* The sample rate of the audio stream in the output file, in Hertz. Valid values include: *

*

* auto, 22050, 32000, 44100, 48000, * 96000 *

*

* If you specify auto, Elastic Transcoder automatically detects the sample rate. *

* * @return The sample rate of the audio stream in the output file, in Hertz. Valid values include:

*

* auto, 22050, 32000, 44100, 48000, * 96000 *

*

* If you specify auto, Elastic Transcoder automatically detects the sample rate. */ public String getSampleRate() { return this.sampleRate; } /** *

* The sample rate of the audio stream in the output file, in Hertz. Valid values include: *

*

* auto, 22050, 32000, 44100, 48000, * 96000 *

*

* If you specify auto, Elastic Transcoder automatically detects the sample rate. *

* * @param sampleRate * The sample rate of the audio stream in the output file, in Hertz. Valid values include:

*

* auto, 22050, 32000, 44100, 48000, * 96000 *

*

* If you specify auto, Elastic Transcoder automatically detects the sample rate. * @return Returns a reference to this object so that method calls can be chained together. */ public AudioParameters withSampleRate(String sampleRate) { setSampleRate(sampleRate); return this; } /** *

* The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, * inclusive. *

* * @param bitRate * The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and * 320, inclusive. */ public void setBitRate(String bitRate) { this.bitRate = bitRate; } /** *

* The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, * inclusive. *

* * @return The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and * 320, inclusive. */ public String getBitRate() { return this.bitRate; } /** *

* The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, * inclusive. *

* * @param bitRate * The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and * 320, inclusive. * @return Returns a reference to this object so that method calls can be chained together. */ public AudioParameters withBitRate(String bitRate) { setBitRate(bitRate); return this; } /** *

* The number of audio channels in the output file. The following values are valid: *

*

* auto, 0, 1, 2 *

*

* One 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: *

*
    *
  • *

    * auto channel specified, with any input: Pass through up to eight input channels. *

    *
  • *
  • *

    * 0 channels specified, with any input: Audio omitted from the output. *

    *
  • *
  • *

    * 1 channel specified, with at least one input channel: Mono sound. *

    *
  • *
  • *

    * 2 channels specified, with any input: Two identical mono channels or stereo. For more * information about tracks, see Audio:AudioPackingMode. *

    *
  • *
*

* For more information about how Elastic Transcoder organizes channels and tracks, see * Audio:AudioPackingMode. *

* * @param channels * The number of audio channels in the output file. The following values are valid:

*

* auto, 0, 1, 2 *

*

* One 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: *

*
    *
  • *

    * auto channel specified, with any input: Pass through up to eight input channels. *

    *
  • *
  • *

    * 0 channels specified, with any input: Audio omitted from the output. *

    *
  • *
  • *

    * 1 channel specified, with at least one input channel: Mono sound. *

    *
  • *
  • *

    * 2 channels specified, with any input: Two identical mono channels or stereo. For more * information about tracks, see Audio:AudioPackingMode. *

    *
  • *
*

* For more information about how Elastic Transcoder organizes channels and tracks, see * Audio:AudioPackingMode. */ public void setChannels(String channels) { this.channels = channels; } /** *

* The number of audio channels in the output file. The following values are valid: *

*

* auto, 0, 1, 2 *

*

* One 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: *

*
    *
  • *

    * auto channel specified, with any input: Pass through up to eight input channels. *

    *
  • *
  • *

    * 0 channels specified, with any input: Audio omitted from the output. *

    *
  • *
  • *

    * 1 channel specified, with at least one input channel: Mono sound. *

    *
  • *
  • *

    * 2 channels specified, with any input: Two identical mono channels or stereo. For more * information about tracks, see Audio:AudioPackingMode. *

    *
  • *
*

* For more information about how Elastic Transcoder organizes channels and tracks, see * Audio:AudioPackingMode. *

* * @return The number of audio channels in the output file. The following values are valid:

*

* auto, 0, 1, 2 *

*

* One 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: *

*
    *
  • *

    * auto channel specified, with any input: Pass through up to eight input channels. *

    *
  • *
  • *

    * 0 channels specified, with any input: Audio omitted from the output. *

    *
  • *
  • *

    * 1 channel specified, with at least one input channel: Mono sound. *

    *
  • *
  • *

    * 2 channels specified, with any input: Two identical mono channels or stereo. For * more information about tracks, see Audio:AudioPackingMode. *

    *
  • *
*

* For more information about how Elastic Transcoder organizes channels and tracks, see * Audio:AudioPackingMode. */ public String getChannels() { return this.channels; } /** *

* The number of audio channels in the output file. The following values are valid: *

*

* auto, 0, 1, 2 *

*

* One 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: *

*
    *
  • *

    * auto channel specified, with any input: Pass through up to eight input channels. *

    *
  • *
  • *

    * 0 channels specified, with any input: Audio omitted from the output. *

    *
  • *
  • *

    * 1 channel specified, with at least one input channel: Mono sound. *

    *
  • *
  • *

    * 2 channels specified, with any input: Two identical mono channels or stereo. For more * information about tracks, see Audio:AudioPackingMode. *

    *
  • *
*

* For more information about how Elastic Transcoder organizes channels and tracks, see * Audio:AudioPackingMode. *

* * @param channels * The number of audio channels in the output file. The following values are valid:

*

* auto, 0, 1, 2 *

*

* One 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: *

*
    *
  • *

    * auto channel specified, with any input: Pass through up to eight input channels. *

    *
  • *
  • *

    * 0 channels specified, with any input: Audio omitted from the output. *

    *
  • *
  • *

    * 1 channel specified, with at least one input channel: Mono sound. *

    *
  • *
  • *

    * 2 channels specified, with any input: Two identical mono channels or stereo. For more * information about tracks, see Audio:AudioPackingMode. *

    *
  • *
*

* For more information about how Elastic Transcoder organizes channels and tracks, see * Audio:AudioPackingMode. * @return Returns a reference to this object so that method calls can be chained together. */ public AudioParameters withChannels(String channels) { setChannels(channels); return this; } /** *

* The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of * channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their * relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses * SingleTrack. *

*

* The following values are valid: *

*

* SingleTrack, OneChannelPerTrack, and OneChannelPerTrackWithMosTo8Tracks *

*

* When you specify SingleTrack, Elastic Transcoder creates a single track for your output. The track * can have up to eight channels. Use SingleTrack for all non-mxf containers. *

*

* The outputs of SingleTrack for a specific channel value and inputs are as follows: *

*
    *
  • *

    * 0 channels with any input: Audio omitted from the output *

    *
  • *
  • *

    * 1, 2, or auto channels with no audio input: Audio omitted from the output *

    *
  • *
  • *

    * 1 channel with any input with audio: One track with one channel, downmixed if necessary *

    *
  • *
  • *

    * 2 channels with one track with one channel: One track with two identical channels *

    *
  • *
  • *

    * 2 or auto channels with two tracks with one channel each: One track with two channels *

    *
  • *
  • *

    * 2 or auto channels with one track with two channels: One track with two channels *

    *
  • *
  • *

    * 2 channels with one track with multiple channels: One track with two channels *

    *
  • *
  • *

    * auto channels with one track with one channel: One track with one channel *

    *
  • *
  • *

    * auto channels 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 OneChannelPerTrack for a specific channel value and inputs are as follows: *

*
    *
  • *

    * 0 channels with any input: Audio omitted from the output *

    *
  • *
  • *

    * 1, 2, or auto channels with no audio input: Audio omitted from the output *

    *
  • *
  • *

    * 1 channel with any input with audio: One track with one channel, downmixed if necessary *

    *
  • *
  • *

    * 2 channels with one track with one channel: Two tracks with one identical channel each *

    *
  • *
  • *

    * 2 or auto channels with two tracks with one channel each: Two tracks with one channel each *

    *
  • *
  • *

    * 2 or auto channels with one track with two channels: Two tracks with one channel each *

    *
  • *
  • *

    * 2 channels with one track with multiple channels: Two tracks with one channel each *

    *
  • *
  • *

    * auto channels with one track with one channel: One track with one channel *

    *
  • *
  • *

    * auto channels 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 OneChannelPerTrackWithMosTo8Tracks for a specific channel value and inputs are as * follows: *

*
    *
  • *

    * 0 channels with any input: Audio omitted from the output *

    *
  • *
  • *

    * 1, 2, or auto channels with no audio input: Audio omitted from the output *

    *
  • *
  • *

    * 1 channel with any input with audio: One track with one channel, downmixed if necessary, * plus six MOS tracks *

    *
  • *
  • *

    * 2 channels with one track with one channel: Two tracks with one identical channel each, plus * six MOS tracks *

    *
  • *
  • *

    * 2 or auto channels with two tracks with one channel each: Two tracks with one channel each, * plus six MOS tracks *

    *
  • *
  • *

    * 2 or auto channels with one track with two channels: Two tracks with one channel each, plus * six MOS tracks *

    *
  • *
  • *

    * 2 channels with one track with multiple channels: Two tracks with one channel each, plus six * MOS tracks *

    *
  • *
  • *

    * auto channels with one track with one channel: One track with one channel, plus seven MOS * tracks *

    *
  • *
  • *

    * auto channels with one track with multiple channels: Up to eight tracks with one channel * each, plus MOS tracks until there are eight tracks in all *

    *
  • *
* * @param audioPackingMode * The method of organizing audio channels and tracks. Use Audio:Channels to specify the number * of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and * their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic * Transcoder uses SingleTrack.

*

* The following values are valid: *

*

* SingleTrack, OneChannelPerTrack, and * OneChannelPerTrackWithMosTo8Tracks *

*

* When you specify SingleTrack, Elastic Transcoder creates a single track for your output. The * track can have up to eight channels. Use SingleTrack for all non-mxf containers. *

*

* The outputs of SingleTrack for a specific channel value and inputs are as follows: *

*
    *
  • *

    * 0 channels with any input: Audio omitted from the output *

    *
  • *
  • *

    * 1, 2, or auto channels with no audio input: Audio omitted from the output *

    *
  • *
  • *

    * 1 channel with any input with audio: One track with one channel, downmixed if * necessary *

    *
  • *
  • *

    * 2 channels with one track with one channel: One track with two identical channels *

    *
  • *
  • *

    * 2 or auto channels with two tracks with one channel each: One track with two channels *

    *
  • *
  • *

    * 2 or auto channels with one track with two channels: One track with two channels *

    *
  • *
  • *

    * 2 channels with one track with multiple channels: One track with two channels *

    *
  • *
  • *

    * auto channels with one track with one channel: One track with one channel *

    *
  • *
  • *

    * auto channels 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 OneChannelPerTrack for a specific channel value and inputs are as follows: *

*
    *
  • *

    * 0 channels with any input: Audio omitted from the output *

    *
  • *
  • *

    * 1, 2, or auto channels with no audio input: Audio omitted from the output *

    *
  • *
  • *

    * 1 channel with any input with audio: One track with one channel, downmixed if * necessary *

    *
  • *
  • *

    * 2 channels with one track with one channel: Two tracks with one identical channel * each *

    *
  • *
  • *

    * 2 or auto channels with two tracks with one channel each: Two tracks with one channel * each *

    *
  • *
  • *

    * 2 or auto channels with one track with two channels: Two tracks with one channel each *

    *
  • *
  • *

    * 2 channels with one track with multiple channels: Two tracks with one channel each *

    *
  • *
  • *

    * auto channels with one track with one channel: One track with one channel *

    *
  • *
  • *

    * auto channels 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 OneChannelPerTrackWithMosTo8Tracks for a specific channel value and inputs are * as follows: *

*
    *
  • *

    * 0 channels with any input: Audio omitted from the output *

    *
  • *
  • *

    * 1, 2, or auto channels with no audio input: Audio omitted from the output *

    *
  • *
  • *

    * 1 channel with any input with audio: One track with one channel, downmixed if * necessary, plus six MOS tracks *

    *
  • *
  • *

    * 2 channels with one track with one channel: Two tracks with one identical channel * each, plus six MOS tracks *

    *
  • *
  • *

    * 2 or auto channels with two tracks with one channel each: Two tracks with one channel * each, plus six MOS tracks *

    *
  • *
  • *

    * 2 or auto channels with one track with two channels: Two tracks with one channel * each, plus six MOS tracks *

    *
  • *
  • *

    * 2 channels with one track with multiple channels: Two tracks with one channel each, * plus six MOS tracks *

    *
  • *
  • *

    * auto channels with one track with one channel: One track with one channel, plus seven * MOS tracks *

    *
  • *
  • *

    * auto channels with one track with multiple channels: Up to eight tracks with one * channel each, plus MOS tracks until there are eight tracks in all *

    *
  • */ public void setAudioPackingMode(String audioPackingMode) { this.audioPackingMode = audioPackingMode; } /** *

    * The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of * channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their * relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses * SingleTrack. *

    *

    * The following values are valid: *

    *

    * SingleTrack, OneChannelPerTrack, and OneChannelPerTrackWithMosTo8Tracks *

    *

    * When you specify SingleTrack, Elastic Transcoder creates a single track for your output. The track * can have up to eight channels. Use SingleTrack for all non-mxf containers. *

    *

    * The outputs of SingleTrack for a specific channel value and inputs are as follows: *

    *
      *
    • *

      * 0 channels with any input: Audio omitted from the output *

      *
    • *
    • *

      * 1, 2, or auto channels with no audio input: Audio omitted from the output *

      *
    • *
    • *

      * 1 channel with any input with audio: One track with one channel, downmixed if necessary *

      *
    • *
    • *

      * 2 channels with one track with one channel: One track with two identical channels *

      *
    • *
    • *

      * 2 or auto channels with two tracks with one channel each: One track with two channels *

      *
    • *
    • *

      * 2 or auto channels with one track with two channels: One track with two channels *

      *
    • *
    • *

      * 2 channels with one track with multiple channels: One track with two channels *

      *
    • *
    • *

      * auto channels with one track with one channel: One track with one channel *

      *
    • *
    • *

      * auto channels 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 OneChannelPerTrack for a specific channel value and inputs are as follows: *

    *
      *
    • *

      * 0 channels with any input: Audio omitted from the output *

      *
    • *
    • *

      * 1, 2, or auto channels with no audio input: Audio omitted from the output *

      *
    • *
    • *

      * 1 channel with any input with audio: One track with one channel, downmixed if necessary *

      *
    • *
    • *

      * 2 channels with one track with one channel: Two tracks with one identical channel each *

      *
    • *
    • *

      * 2 or auto channels with two tracks with one channel each: Two tracks with one channel each *

      *
    • *
    • *

      * 2 or auto channels with one track with two channels: Two tracks with one channel each *

      *
    • *
    • *

      * 2 channels with one track with multiple channels: Two tracks with one channel each *

      *
    • *
    • *

      * auto channels with one track with one channel: One track with one channel *

      *
    • *
    • *

      * auto channels 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 OneChannelPerTrackWithMosTo8Tracks for a specific channel value and inputs are as * follows: *

    *
      *
    • *

      * 0 channels with any input: Audio omitted from the output *

      *
    • *
    • *

      * 1, 2, or auto channels with no audio input: Audio omitted from the output *

      *
    • *
    • *

      * 1 channel with any input with audio: One track with one channel, downmixed if necessary, * plus six MOS tracks *

      *
    • *
    • *

      * 2 channels with one track with one channel: Two tracks with one identical channel each, plus * six MOS tracks *

      *
    • *
    • *

      * 2 or auto channels with two tracks with one channel each: Two tracks with one channel each, * plus six MOS tracks *

      *
    • *
    • *

      * 2 or auto channels with one track with two channels: Two tracks with one channel each, plus * six MOS tracks *

      *
    • *
    • *

      * 2 channels with one track with multiple channels: Two tracks with one channel each, plus six * MOS tracks *

      *
    • *
    • *

      * auto channels with one track with one channel: One track with one channel, plus seven MOS * tracks *

      *
    • *
    • *

      * auto channels with one track with multiple channels: Up to eight tracks with one channel * each, plus MOS tracks until there are eight tracks in all *

      *
    • *
    * * @return The method of organizing audio channels and tracks. Use Audio:Channels to specify the number * of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and * their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic * Transcoder uses SingleTrack.

    *

    * The following values are valid: *

    *

    * SingleTrack, OneChannelPerTrack, and * OneChannelPerTrackWithMosTo8Tracks *

    *

    * When you specify SingleTrack, Elastic Transcoder creates a single track for your output. The * track can have up to eight channels. Use SingleTrack for all non-mxf * containers. *

    *

    * The outputs of SingleTrack for a specific channel value and inputs are as follows: *

    *
      *
    • *

      * 0 channels with any input: Audio omitted from the output *

      *
    • *
    • *

      * 1, 2, or auto channels with no audio input: Audio omitted from the output *

      *
    • *
    • *

      * 1 channel with any input with audio: One track with one channel, downmixed if * necessary *

      *
    • *
    • *

      * 2 channels with one track with one channel: One track with two identical channels *

      *
    • *
    • *

      * 2 or auto channels with two tracks with one channel each: One track with two * channels *

      *
    • *
    • *

      * 2 or auto channels with one track with two channels: One track with two channels *

      *
    • *
    • *

      * 2 channels with one track with multiple channels: One track with two channels *

      *
    • *
    • *

      * auto channels with one track with one channel: One track with one channel *

      *
    • *
    • *

      * auto channels 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 OneChannelPerTrack for a specific channel value and inputs are as follows: *

    *
      *
    • *

      * 0 channels with any input: Audio omitted from the output *

      *
    • *
    • *

      * 1, 2, or auto channels with no audio input: Audio omitted from the output *

      *
    • *
    • *

      * 1 channel with any input with audio: One track with one channel, downmixed if * necessary *

      *
    • *
    • *

      * 2 channels with one track with one channel: Two tracks with one identical channel * each *

      *
    • *
    • *

      * 2 or auto channels with two tracks with one channel each: Two tracks with one * channel each *

      *
    • *
    • *

      * 2 or auto channels with one track with two channels: Two tracks with one channel * each *

      *
    • *
    • *

      * 2 channels with one track with multiple channels: Two tracks with one channel each *

      *
    • *
    • *

      * auto channels with one track with one channel: One track with one channel *

      *
    • *
    • *

      * auto channels 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 OneChannelPerTrackWithMosTo8Tracks for a specific channel value and inputs * are as follows: *

    *
      *
    • *

      * 0 channels with any input: Audio omitted from the output *

      *
    • *
    • *

      * 1, 2, or auto channels with no audio input: Audio omitted from the output *

      *
    • *
    • *

      * 1 channel with any input with audio: One track with one channel, downmixed if * necessary, plus six MOS tracks *

      *
    • *
    • *

      * 2 channels with one track with one channel: Two tracks with one identical channel * each, plus six MOS tracks *

      *
    • *
    • *

      * 2 or auto channels with two tracks with one channel each: Two tracks with one * channel each, plus six MOS tracks *

      *
    • *
    • *

      * 2 or auto channels with one track with two channels: Two tracks with one channel * each, plus six MOS tracks *

      *
    • *
    • *

      * 2 channels with one track with multiple channels: Two tracks with one channel each, * plus six MOS tracks *

      *
    • *
    • *

      * auto channels with one track with one channel: One track with one channel, plus * seven MOS tracks *

      *
    • *
    • *

      * auto channels with one track with multiple channels: Up to eight tracks with one * channel each, plus MOS tracks until there are eight tracks in all *

      *
    • */ public String getAudioPackingMode() { return this.audioPackingMode; } /** *

      * The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of * channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their * relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses * SingleTrack. *

      *

      * The following values are valid: *

      *

      * SingleTrack, OneChannelPerTrack, and OneChannelPerTrackWithMosTo8Tracks *

      *

      * When you specify SingleTrack, Elastic Transcoder creates a single track for your output. The track * can have up to eight channels. Use SingleTrack for all non-mxf containers. *

      *

      * The outputs of SingleTrack for a specific channel value and inputs are as follows: *

      *
        *
      • *

        * 0 channels with any input: Audio omitted from the output *

        *
      • *
      • *

        * 1, 2, or auto channels with no audio input: Audio omitted from the output *

        *
      • *
      • *

        * 1 channel with any input with audio: One track with one channel, downmixed if necessary *

        *
      • *
      • *

        * 2 channels with one track with one channel: One track with two identical channels *

        *
      • *
      • *

        * 2 or auto channels with two tracks with one channel each: One track with two channels *

        *
      • *
      • *

        * 2 or auto channels with one track with two channels: One track with two channels *

        *
      • *
      • *

        * 2 channels with one track with multiple channels: One track with two channels *

        *
      • *
      • *

        * auto channels with one track with one channel: One track with one channel *

        *
      • *
      • *

        * auto channels 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 OneChannelPerTrack for a specific channel value and inputs are as follows: *

      *
        *
      • *

        * 0 channels with any input: Audio omitted from the output *

        *
      • *
      • *

        * 1, 2, or auto channels with no audio input: Audio omitted from the output *

        *
      • *
      • *

        * 1 channel with any input with audio: One track with one channel, downmixed if necessary *

        *
      • *
      • *

        * 2 channels with one track with one channel: Two tracks with one identical channel each *

        *
      • *
      • *

        * 2 or auto channels with two tracks with one channel each: Two tracks with one channel each *

        *
      • *
      • *

        * 2 or auto channels with one track with two channels: Two tracks with one channel each *

        *
      • *
      • *

        * 2 channels with one track with multiple channels: Two tracks with one channel each *

        *
      • *
      • *

        * auto channels with one track with one channel: One track with one channel *

        *
      • *
      • *

        * auto channels 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 OneChannelPerTrackWithMosTo8Tracks for a specific channel value and inputs are as * follows: *

      *
        *
      • *

        * 0 channels with any input: Audio omitted from the output *

        *
      • *
      • *

        * 1, 2, or auto channels with no audio input: Audio omitted from the output *

        *
      • *
      • *

        * 1 channel with any input with audio: One track with one channel, downmixed if necessary, * plus six MOS tracks *

        *
      • *
      • *

        * 2 channels with one track with one channel: Two tracks with one identical channel each, plus * six MOS tracks *

        *
      • *
      • *

        * 2 or auto channels with two tracks with one channel each: Two tracks with one channel each, * plus six MOS tracks *

        *
      • *
      • *

        * 2 or auto channels with one track with two channels: Two tracks with one channel each, plus * six MOS tracks *

        *
      • *
      • *

        * 2 channels with one track with multiple channels: Two tracks with one channel each, plus six * MOS tracks *

        *
      • *
      • *

        * auto channels with one track with one channel: One track with one channel, plus seven MOS * tracks *

        *
      • *
      • *

        * auto channels with one track with multiple channels: Up to eight tracks with one channel * each, plus MOS tracks until there are eight tracks in all *

        *
      • *
      * * @param audioPackingMode * The method of organizing audio channels and tracks. Use Audio:Channels to specify the number * of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and * their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic * Transcoder uses SingleTrack.

      *

      * The following values are valid: *

      *

      * SingleTrack, OneChannelPerTrack, and * OneChannelPerTrackWithMosTo8Tracks *

      *

      * When you specify SingleTrack, Elastic Transcoder creates a single track for your output. The * track can have up to eight channels. Use SingleTrack for all non-mxf containers. *

      *

      * The outputs of SingleTrack for a specific channel value and inputs are as follows: *

      *
        *
      • *

        * 0 channels with any input: Audio omitted from the output *

        *
      • *
      • *

        * 1, 2, or auto channels with no audio input: Audio omitted from the output *

        *
      • *
      • *

        * 1 channel with any input with audio: One track with one channel, downmixed if * necessary *

        *
      • *
      • *

        * 2 channels with one track with one channel: One track with two identical channels *

        *
      • *
      • *

        * 2 or auto channels with two tracks with one channel each: One track with two channels *

        *
      • *
      • *

        * 2 or auto channels with one track with two channels: One track with two channels *

        *
      • *
      • *

        * 2 channels with one track with multiple channels: One track with two channels *

        *
      • *
      • *

        * auto channels with one track with one channel: One track with one channel *

        *
      • *
      • *

        * auto channels 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 OneChannelPerTrack for a specific channel value and inputs are as follows: *

      *
        *
      • *

        * 0 channels with any input: Audio omitted from the output *

        *
      • *
      • *

        * 1, 2, or auto channels with no audio input: Audio omitted from the output *

        *
      • *
      • *

        * 1 channel with any input with audio: One track with one channel, downmixed if * necessary *

        *
      • *
      • *

        * 2 channels with one track with one channel: Two tracks with one identical channel * each *

        *
      • *
      • *

        * 2 or auto channels with two tracks with one channel each: Two tracks with one channel * each *

        *
      • *
      • *

        * 2 or auto channels with one track with two channels: Two tracks with one channel each *

        *
      • *
      • *

        * 2 channels with one track with multiple channels: Two tracks with one channel each *

        *
      • *
      • *

        * auto channels with one track with one channel: One track with one channel *

        *
      • *
      • *

        * auto channels 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 OneChannelPerTrackWithMosTo8Tracks for a specific channel value and inputs are * as follows: *

      *
        *
      • *

        * 0 channels with any input: Audio omitted from the output *

        *
      • *
      • *

        * 1, 2, or auto channels with no audio input: Audio omitted from the output *

        *
      • *
      • *

        * 1 channel with any input with audio: One track with one channel, downmixed if * necessary, plus six MOS tracks *

        *
      • *
      • *

        * 2 channels with one track with one channel: Two tracks with one identical channel * each, plus six MOS tracks *

        *
      • *
      • *

        * 2 or auto channels with two tracks with one channel each: Two tracks with one channel * each, plus six MOS tracks *

        *
      • *
      • *

        * 2 or auto channels with one track with two channels: Two tracks with one channel * each, plus six MOS tracks *

        *
      • *
      • *

        * 2 channels with one track with multiple channels: Two tracks with one channel each, * plus six MOS tracks *

        *
      • *
      • *

        * auto channels with one track with one channel: One track with one channel, plus seven * MOS tracks *

        *
      • *
      • *

        * auto channels with one track with multiple channels: Up to eight tracks with one * channel each, plus MOS tracks until there are eight tracks in all *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public AudioParameters withAudioPackingMode(String audioPackingMode) { setAudioPackingMode(audioPackingMode); return this; } /** *

        * If you specified AAC for Audio:Codec, this is the AAC compression profile * to use. Valid values include: *

        *

        * auto, AAC-LC, HE-AAC, HE-AACv2 *

        *

        * If you specify auto, Elastic Transcoder chooses a profile based on the bit rate of the output file. *

        * * @param codecOptions * If you specified AAC for Audio:Codec, this is the AAC compression * profile to use. Valid values include:

        *

        * auto, AAC-LC, HE-AAC, HE-AACv2 *

        *

        * If you specify auto, Elastic Transcoder chooses a profile based on the bit rate of the output * file. */ public void setCodecOptions(AudioCodecOptions codecOptions) { this.codecOptions = codecOptions; } /** *

        * If you specified AAC for Audio:Codec, this is the AAC compression profile * to use. Valid values include: *

        *

        * auto, AAC-LC, HE-AAC, HE-AACv2 *

        *

        * If you specify auto, Elastic Transcoder chooses a profile based on the bit rate of the output file. *

        * * @return If you specified AAC for Audio:Codec, this is the AAC compression * profile to use. Valid values include:

        *

        * auto, AAC-LC, HE-AAC, HE-AACv2 *

        *

        * If you specify auto, Elastic Transcoder chooses a profile based on the bit rate of the * output file. */ public AudioCodecOptions getCodecOptions() { return this.codecOptions; } /** *

        * If you specified AAC for Audio:Codec, this is the AAC compression profile * to use. Valid values include: *

        *

        * auto, AAC-LC, HE-AAC, HE-AACv2 *

        *

        * If you specify auto, Elastic Transcoder chooses a profile based on the bit rate of the output file. *

        * * @param codecOptions * If you specified AAC for Audio:Codec, this is the AAC compression * profile to use. Valid values include:

        *

        * auto, AAC-LC, HE-AAC, HE-AACv2 *

        *

        * If you specify auto, Elastic Transcoder chooses a profile based on the bit rate of the output * file. * @return Returns a reference to this object so that method calls can be chained together. */ public AudioParameters withCodecOptions(AudioCodecOptions codecOptions) { setCodecOptions(codecOptions); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCodec() != null) sb.append("Codec: ").append(getCodec()).append(","); if (getSampleRate() != null) sb.append("SampleRate: ").append(getSampleRate()).append(","); if (getBitRate() != null) sb.append("BitRate: ").append(getBitRate()).append(","); if (getChannels() != null) sb.append("Channels: ").append(getChannels()).append(","); if (getAudioPackingMode() != null) sb.append("AudioPackingMode: ").append(getAudioPackingMode()).append(","); if (getCodecOptions() != null) sb.append("CodecOptions: ").append(getCodecOptions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AudioParameters == false) return false; AudioParameters other = (AudioParameters) obj; if (other.getCodec() == null ^ this.getCodec() == null) return false; if (other.getCodec() != null && other.getCodec().equals(this.getCodec()) == false) return false; if (other.getSampleRate() == null ^ this.getSampleRate() == null) return false; if (other.getSampleRate() != null && other.getSampleRate().equals(this.getSampleRate()) == false) return false; if (other.getBitRate() == null ^ this.getBitRate() == null) return false; if (other.getBitRate() != null && other.getBitRate().equals(this.getBitRate()) == false) return false; if (other.getChannels() == null ^ this.getChannels() == null) return false; if (other.getChannels() != null && other.getChannels().equals(this.getChannels()) == false) return false; if (other.getAudioPackingMode() == null ^ this.getAudioPackingMode() == null) return false; if (other.getAudioPackingMode() != null && other.getAudioPackingMode().equals(this.getAudioPackingMode()) == false) return false; if (other.getCodecOptions() == null ^ this.getCodecOptions() == null) return false; if (other.getCodecOptions() != null && other.getCodecOptions().equals(this.getCodecOptions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCodec() == null) ? 0 : getCodec().hashCode()); hashCode = prime * hashCode + ((getSampleRate() == null) ? 0 : getSampleRate().hashCode()); hashCode = prime * hashCode + ((getBitRate() == null) ? 0 : getBitRate().hashCode()); hashCode = prime * hashCode + ((getChannels() == null) ? 0 : getChannels().hashCode()); hashCode = prime * hashCode + ((getAudioPackingMode() == null) ? 0 : getAudioPackingMode().hashCode()); hashCode = prime * hashCode + ((getCodecOptions() == null) ? 0 : getCodecOptions().hashCode()); return hashCode; } @Override public AudioParameters clone() { try { return (AudioParameters) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.elastictranscoder.model.transform.AudioParametersMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy