interface AacSettingsProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.AacSettingsProps |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#AacSettingsProps |
Java | software.amazon.awscdk.services.medialive.alpha.AacSettingsProps |
Python | aws_cdk.aws_medialive_alpha.AacSettingsProps |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป AacSettingsProps |
Properties for AAC codec settings.
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 |
|---|---|---|
| bitrate? | Bitrate | The average bitrate. |
| coding | Aac | The coding mode (mono, stereo, 5.1). |
| input | Aac | Set to broadcasterMixedAd when the input contains pre-mixed main audio + AD (narration) as a stereo pair. |
| profile? | Aac | The AAC profile. |
| rate | Aac | The rate control mode. |
| raw | Aac | Sets the LATM/LOAS AAC output for raw containers. |
| sample | Audio | The sample rate. |
| spec? | Aac | The AAC specification (MPEG-4 or MPEG-2) used to encode the audio. |
| vbr | Aac | The VBR quality level. |
bitrate?
Type:
Bitrate
(optional, default: Bitrate.kbps(192))
The average bitrate.
codingMode?
Type:
Aac
(optional, default: AacCodingMode.CODING_MODE_2_0)
The coding mode (mono, stereo, 5.1).
inputType?
Type:
Aac
(optional, default: AacInputType.NORMAL)
Set to broadcasterMixedAd when the input contains pre-mixed main audio + AD (narration) as a stereo pair.
profile?
Type:
Aac
(optional, default: AacProfile.LC)
The AAC profile.
rateControlMode?
Type:
Aac
(optional, default: AacRateControlMode.CBR)
The rate control mode.
rawFormat?
Type:
Aac
(optional, default: AacRawFormat.NONE)
Sets the LATM/LOAS AAC output for raw containers.
sampleRate?
Type:
Audio
(optional, default: AudioSampleRate.HZ_48000)
The sample rate.
spec?
Type:
Aac
(optional, default: AacSpec.MPEG4)
The AAC specification (MPEG-4 or MPEG-2) used to encode the audio.
Set to AacSpec.MPEG2 to emit MPEG-2 AAC instead of MPEG-4 AAC for raw or MPEG-2 Transport
Stream containers.
vbrQuality?
Type:
Aac
(optional, default: service default)
The VBR quality level.
Used only if rateControlMode is VBR.

.NET
Go
Java
Python
TypeScript (