Interface AacSettingsProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AacSettingsProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:40.862Z")
@Stability(Experimental)
public interface AacSettingsProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for AAC codec settings.
Example:
Stack stack;
IInput input;
IBucket bucket;
EncodeConfiguration video = EncodeConfiguration.video(VideoEncodeProps.builder()
.name("video_720p")
.codec(VideoCodecSettings.h264(H264SettingsProps.builder()
.rateControl(H264RateControl.cbr(CbrRateControlProps.builder().bitrate(Bitrate.mbps(3)).build()))
.framerate(Framerate.FPS_30)
.build()))
.width(1280)
.height(720)
.build());
EncodeConfiguration audio = EncodeConfiguration.audio(AudioEncodeProps.builder()
.name("audio_aac")
.codec(AudioCodecSettings.aac(AacSettingsProps.builder().bitrate(Bitrate.kbps(192)).build()))
.build());
Channel.Builder.create(stack, "Channel")
.inputs(List.of(InputAttachment.builder().input(input).build()))
.outputGroups(List.of(OutputGroupConfiguration.hls(HlsOutputGroupProps.builder()
.name("hls")
.destinations(List.of(OutputDestination.toBucket(bucket, "live/stream")))
.outputs(List.of(HlsOutputDefinition.builder().encodes(List.of(video, audio)).outputName("hls_out").build()))
.build())))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAacSettingsPropsstatic final classAn implementation forAacSettingsProps -
Method Summary
Modifier and TypeMethodDescriptionstatic AacSettingsProps.Builderbuilder()default Bitrate(experimental) The average bitrate.default AacCodingMode(experimental) The coding mode (mono, stereo, 5.1).default AacInputType(experimental) Set to broadcasterMixedAd when the input contains pre-mixed main audio + AD (narration) as a stereo pair.default AacProfile(experimental) The AAC profile.default AacRateControlMode(experimental) The rate control mode.default AacRawFormat(experimental) Sets the LATM/LOAS AAC output for raw containers.default AudioSampleRate(experimental) The sample rate.default AacSpecgetSpec()(experimental) The AAC specification (MPEG-4 or MPEG-2) used to encode the audio.default AacVbrQuality(experimental) The VBR quality level.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBitrate
(experimental) The average bitrate.Default: Bitrate.kbps(192)
-
getCodingMode
(experimental) The coding mode (mono, stereo, 5.1).Default: AacCodingMode.CODING_MODE_2_0
-
getInputType
(experimental) Set to broadcasterMixedAd when the input contains pre-mixed main audio + AD (narration) as a stereo pair.Default: AacInputType.NORMAL
-
getProfile
(experimental) The AAC profile.Default: AacProfile.LC
-
getRateControlMode
(experimental) The rate control mode.Default: AacRateControlMode.CBR
-
getRawFormat
(experimental) Sets the LATM/LOAS AAC output for raw containers.Default: AacRawFormat.NONE
-
getSampleRate
(experimental) The sample rate.Default: AudioSampleRate.HZ_48000
-
getSpec
(experimental) The AAC specification (MPEG-4 or MPEG-2) used to encode the audio.Set to
AacSpec.MPEG2to emit MPEG-2 AAC instead of MPEG-4 AAC for raw or MPEG-2 Transport Stream containers.Default: AacSpec.MPEG4
-
getVbrQuality
(experimental) The VBR quality level.Used only if rateControlMode is VBR.
Default: - service default
-
builder
- Returns:
- a
AacSettingsProps.BuilderofAacSettingsProps
-