All Products
Search
Document Center

Intelligent Media Management:TargetAudio

Last Updated:Aug 28, 2026

Parameter

Type

Description

Example

object

The audio processing settings.

DisableAudio

boolean

Whether to disable audio stream generation. Valid values:

  • true: disables audio stream generation. The output file contains no audio stream.

  • false (default): does not disable audio stream generation.

false

Stream

array

Index numbers of audio streams to process. Default: the first audio stream (smallest index). An element greater than 100 means all audio streams are processed.

  • Example: [0,1] processes streams 0 and 1, [1] processes only stream 1, [101] processes all streams.

Note

Index numbers with no matching audio stream are ignored.

integer

The index number of the audio stream.

0

TranscodeAudio

object

Audio transcoding settings. If unspecified, the output file contains no audio streams.

Note

Do not use this parameter to disable audio stream generation.

Codec

string

The codec. Valid values:

  • CreateMediaConvert: copy (default), mp3, vorbis, aac, flac, ac3, opus, amr.

  • GenerateVideoPlaylist: aac (default).

Note

When set to copy, the audio stream is copied directly to the output file and other TranscodeAudio parameters are ignored. Commonly used for container format conversion. Not supported for audio merging.

aac

BitrateOption

string

Bitrate option. Valid values:

  • fixed: always uses the target bitrate.

  • adaptive: uses the source bitrate if it is lower than the target bitrate.

  • fall: returns a failure if the source bitrate is lower than the target bitrate.

Default values:

  • fixed for the CreateMediaConvert operation.

  • adaptive for the GenerateVideoPlaylist operation.

Note

Must be used with the Bitrate parameter.

fixed

Bitrate

integer

Audio stream bitrate in bit/s. Mutually exclusive with the Quality parameter. Valid values: 1000 to 10000000.

64000

Quality

integer

Audio quality. Valid values: 0 to 100. Higher values produce higher quality. Mutually exclusive with the Bitrate parameter.

6

SampleRateOption

string

Sampling rate option. Valid values:

  • fixed: always uses the target sampling rate.

  • adaptive: uses the source sampling rate if it is lower than the target sampling rate.

  • fall: returns a failure if the source sampling rate is lower than the target sampling rate.

Default values:

  • fixed for the CreateMediaConvert operation.

  • adaptive for the GenerateVideoPlaylist operation.

Note

Must be used with the SampleRate parameter.

fixed

SampleRate

integer

Sampling rate in Hz. Default: source sampling rate. Valid values: 8000, 12025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, and 96000.

Note

Supported sampling rates vary with formats: 48 kHz and lower for MP3, 8 kHz, 12 kHz, 16 kHz, 24 kHz, and 48 kHz for Opus, 32 kHz, 44.1 kHz, and 48 kHz for AC3, and 8 kHz and 16 kHz for AMR.

12050

Channel

integer

Number of sound channels. Default: same as source audio. Valid values: [1,8].

Note

Sound channel limits vary by format: one or two for MP3, up to six for AC3 5.1, one for AMR.

2

BitsPerSample

integer

Audio bit depth. Valid values: 16 and 24.

Note

This parameter takes effect only when Codec is set to flac.

16

FilterAudio

object

Audio filter settings. Invalid if TranscodeAudio is empty or TranscodeAudio.Codec is set to copy.

Note

Not available for the GenerateVideoPlaylist operation.

Mixing

boolean

Whether to mix all sound tracks into a single track. Valid values:

  • false (default)

  • true

false