interface AudioEncodeProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.AudioEncodeProps |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#AudioEncodeProps |
Java | software.amazon.awscdk.services.medialive.alpha.AudioEncodeProps |
Python | aws_cdk.aws_medialive_alpha.AudioEncodeProps |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป AudioEncodeProps |
Properties for an audio encode configuration.
Example
declare const stack: Stack;
declare const input: medialive.IInput;
declare const bucket: s3.IBucket;
const video = medialive.EncodeConfiguration.video({
name: 'video_720p',
codec: medialive.VideoCodecSettings.h264({
rateControl: medialive.H264RateControl.cbr({ bitrate: Bitrate.mbps(3) }),
framerate: medialive.Framerate.FPS_30,
}),
width: 1280,
height: 720,
});
const audio = medialive.EncodeConfiguration.audio({
name: 'audio_aac',
codec: medialive.AudioCodecSettings.aac({ bitrate: Bitrate.kbps(192) }),
});
new medialive.Channel(stack, 'Channel', {
inputs: [{ input }],
outputGroups: [
medialive.OutputGroupConfiguration.hls({
name: 'hls',
destinations: [medialive.OutputDestination.toBucket(bucket, 'live/stream')],
outputs: [{ encodes: [video, audio], outputName: 'hls_out' }],
}),
],
});
Properties
| Name | Type | Description |
|---|---|---|
| codec | Audio | The codec for the audio encode. |
| name | string | A unique name for this audio encode. |
| audio | Audio[] | The DASH roles to assign to this audio output. |
| audio | Audio | Audio normalization settings for loudness correction. |
| audio | string | The name of the audio selector in the input to use as the source. |
| audio | Audio | The audio type when audioTypeControl is USE_CONFIGURED. |
| audio | Audio | How the audio type is signaled in the output. |
| audio | Audio | Audio watermarking settings (e.g. Nielsen watermarks). |
| dvb | Dvb | DVB DASH accessibility signaling for this audio output. |
| language | string | The ISO 639-2 language code for the audio output track (e.g. 'eng', 'spa'). |
| language | Audio | How the audio language code is signaled in the output. |
| remix | Remix | Audio remix settings for channel remapping. |
| stream | string | The display name for the audio track (e.g. 'English', 'Director Commentary'). Used for HLS and MS Smooth outputs. |
codec
Type:
Audio
The codec for the audio encode.
Choose the codec explicitly (e.g. AudioCodecSettings.aac(...))
name
Type:
string
A unique name for this audio encode.
audioDashRoles?
Type:
Audio[]
(optional, default: no DASH roles)
The DASH roles to assign to this audio output.
Applies only when the output is configured for DVB DASH accessibility signaling.
audioNormalization?
Type:
Audio
(optional, default: no normalization)
Audio normalization settings for loudness correction.
audioSelectorName?
Type:
string
(optional, default: the input's default audio)
The name of the audio selector in the input to use as the source.
Must match the name of an
AudioSelector on the input attachment. When omitted, MediaLive uses the input's default audio.
audioType?
Type:
Audio
(optional, default: follow input)
The audio type when audioTypeControl is USE_CONFIGURED.
The values are defined in ISO-IEC 13818-1.
audioTypeControl?
Type:
Audio
(optional, default: USE_CONFIGURED when audioType is set, otherwise FOLLOW_INPUT)
How the audio type is signaled in the output.
audioWatermarkSettings?
Type:
Audio
(optional, default: no watermarking)
Audio watermarking settings (e.g. Nielsen watermarks).
dvbDashAccessibility?
Type:
Dvb
(optional, default: no DVB DASH accessibility signaling)
DVB DASH accessibility signaling for this audio output.
languageCode?
Type:
string
(optional, default: follow input)
The ISO 639-2 language code for the audio output track (e.g. 'eng', 'spa').
languageCodeControl?
Type:
Audio
(optional, default: USE_CONFIGURED when languageCode is set, otherwise FOLLOW_INPUT)
How the audio language code is signaled in the output.
When FOLLOW_INPUT, a configured
languageCode is used only as a fallback when the input has none.
remixSettings?
Type:
Remix
(optional, default: no remixing)
Audio remix settings for channel remapping.
streamName?
Type:
string
(optional, default: no stream name)
The display name for the audio track (e.g. 'English', 'Director Commentary'). Used for HLS and MS Smooth outputs.

.NET
Go
Java
Python
TypeScript (