Interface Mp2Settings.Builder

  • Method Details

    • audioDescriptionMix

      Mp2Settings.Builder audioDescriptionMix(String audioDescriptionMix)
      Choose BROADCASTER_MIXED_AD when the input contains pre-mixed main audio + audio description (AD) as a stereo pair. The value for AudioType will be set to 3, which signals to downstream systems that this stream contains "broadcaster mixed AD". Note that the input received by the encoder must contain pre-mixed audio; the encoder does not perform the mixing. When you choose BROADCASTER_MIXED_AD, the encoder ignores any values you provide in AudioType and FollowInputAudioType. Choose NONE when the input does not contain pre-mixed audio + audio description (AD). In this case, the encoder will use any values you provide for AudioType and FollowInputAudioType.
      Parameters:
      audioDescriptionMix - Choose BROADCASTER_MIXED_AD when the input contains pre-mixed main audio + audio description (AD) as a stereo pair. The value for AudioType will be set to 3, which signals to downstream systems that this stream contains "broadcaster mixed AD". Note that the input received by the encoder must contain pre-mixed audio; the encoder does not perform the mixing. When you choose BROADCASTER_MIXED_AD, the encoder ignores any values you provide in AudioType and FollowInputAudioType. Choose NONE when the input does not contain pre-mixed audio + audio description (AD). In this case, the encoder will use any values you provide for AudioType and FollowInputAudioType.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • audioDescriptionMix

      Mp2Settings.Builder audioDescriptionMix(Mp2AudioDescriptionMix audioDescriptionMix)
      Choose BROADCASTER_MIXED_AD when the input contains pre-mixed main audio + audio description (AD) as a stereo pair. The value for AudioType will be set to 3, which signals to downstream systems that this stream contains "broadcaster mixed AD". Note that the input received by the encoder must contain pre-mixed audio; the encoder does not perform the mixing. When you choose BROADCASTER_MIXED_AD, the encoder ignores any values you provide in AudioType and FollowInputAudioType. Choose NONE when the input does not contain pre-mixed audio + audio description (AD). In this case, the encoder will use any values you provide for AudioType and FollowInputAudioType.
      Parameters:
      audioDescriptionMix - Choose BROADCASTER_MIXED_AD when the input contains pre-mixed main audio + audio description (AD) as a stereo pair. The value for AudioType will be set to 3, which signals to downstream systems that this stream contains "broadcaster mixed AD". Note that the input received by the encoder must contain pre-mixed audio; the encoder does not perform the mixing. When you choose BROADCASTER_MIXED_AD, the encoder ignores any values you provide in AudioType and FollowInputAudioType. Choose NONE when the input does not contain pre-mixed audio + audio description (AD). In this case, the encoder will use any values you provide for AudioType and FollowInputAudioType.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • bitrate

      Mp2Settings.Builder bitrate(Integer bitrate)
      Specify the average bitrate in bits per second.
      Parameters:
      bitrate - Specify the average bitrate in bits per second.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • channels

      Mp2Settings.Builder channels(Integer channels)
      Set Channels to specify the number of channels in this output audio track. Choosing Mono in will give you 1 output channel; choosing Stereo will give you 2. In the API, valid values are 1 and 2.
      Parameters:
      channels - Set Channels to specify the number of channels in this output audio track. Choosing Mono in will give you 1 output channel; choosing Stereo will give you 2. In the API, valid values are 1 and 2.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleRate

      Mp2Settings.Builder sampleRate(Integer sampleRate)
      Sample rate in Hz.
      Parameters:
      sampleRate - Sample rate in Hz.
      Returns:
      Returns a reference to this object so that method calls can be chained together.