public final class AacAudio extends Audio
Describes Advanced Audio Codec (AAC) audio encoding settings.
  • Constructor Details

    • AacAudio

      public AacAudio()
      Creates an instance of AacAudio class.
  • Method Details

    • profile

      public AacAudioProfile profile()
      Get the profile property: The encoding profile to be used when encoding audio with AAC.
      Returns:
      the profile value.
    • withProfile

      public AacAudio withProfile(AacAudioProfile profile)
      Set the profile property: The encoding profile to be used when encoding audio with AAC.
      Parameters:
      profile - the profile value to set.
      Returns:
      the AacAudio object itself.
    • withChannels

      public AacAudio withChannels(Integer channels)
      Set the channels property: The number of channels in the audio.
      Overrides:
      withChannels in class Audio
      Parameters:
      channels - the channels value to set.
      Returns:
      the Audio object itself.
    • withSamplingRate

      public AacAudio withSamplingRate(Integer samplingRate)
      Set the samplingRate property: The sampling rate to use for encoding in hertz.
      Overrides:
      withSamplingRate in class Audio
      Parameters:
      samplingRate - the samplingRate value to set.
      Returns:
      the Audio object itself.
    • withBitrate

      public AacAudio withBitrate(Integer bitrate)
      Set the bitrate property: The bitrate, in bits per second, of the output encoded audio.
      Overrides:
      withBitrate in class Audio
      Parameters:
      bitrate - the bitrate value to set.
      Returns:
      the Audio object itself.
    • withLabel

      public AacAudio withLabel(String label)
      Set the label property: An optional label for the codec. The label can be used to control muxing behavior.
      Overrides:
      withLabel in class Audio
      Parameters:
      label - the label value to set.
      Returns:
      the Codec object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class Audio
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.