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();
 
  • Method Details

    • getBitrate

      @Stability(Experimental) @Nullable default Bitrate getBitrate()
      (experimental) The average bitrate.

      Default: Bitrate.kbps(192)

    • getCodingMode

      @Stability(Experimental) @Nullable default AacCodingMode getCodingMode()
      (experimental) The coding mode (mono, stereo, 5.1).

      Default: AacCodingMode.CODING_MODE_2_0

    • getInputType

      @Stability(Experimental) @Nullable default AacInputType getInputType()
      (experimental) Set to broadcasterMixedAd when the input contains pre-mixed main audio + AD (narration) as a stereo pair.

      Default: AacInputType.NORMAL

    • getProfile

      @Stability(Experimental) @Nullable default AacProfile getProfile()
      (experimental) The AAC profile.

      Default: AacProfile.LC

    • getRateControlMode

      @Stability(Experimental) @Nullable default AacRateControlMode getRateControlMode()
      (experimental) The rate control mode.

      Default: AacRateControlMode.CBR

    • getRawFormat

      @Stability(Experimental) @Nullable default AacRawFormat getRawFormat()
      (experimental) Sets the LATM/LOAS AAC output for raw containers.

      Default: AacRawFormat.NONE

    • getSampleRate

      @Stability(Experimental) @Nullable default AudioSampleRate getSampleRate()
      (experimental) The sample rate.

      Default: AudioSampleRate.HZ_48000

    • getSpec

      @Stability(Experimental) @Nullable default AacSpec getSpec()
      (experimental) 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.

      Default: AacSpec.MPEG4

    • getVbrQuality

      @Stability(Experimental) @Nullable default AacVbrQuality getVbrQuality()
      (experimental) The VBR quality level.

      Used only if rateControlMode is VBR.

      Default: - service default

    • builder

      @Stability(Experimental) static AacSettingsProps.Builder builder()
      Returns:
      a AacSettingsProps.Builder of AacSettingsProps