def _create_aac_audio_configuration():
    # type: () -> AacAudioConfiguration
    """
    Creates a configuration for the AAC audio codec to be applied to audio streams.

    <p>API endpoint:
    https://bitmovin.com/docs/encoding/api-reference/sections/configurations#/Encoding/PostEncodingConfigurationsAudioAac
    """

    config = AacAudioConfiguration(name="AAC 128 kbit/s", bitrate=128000)

    return bitmovin_api.encoding.configurations.audio.aac.create(
        aac_audio_configuration=config)
def _create_aac_audio_configuration(bitrate):
    # type: (int) -> AacAudioConfiguration
    """
    Creates a configuration for the AAC audio codec to be applied to audio streams.

    <p>API endpoint:
    https://bitmovin.com/docs/encoding/api-reference/sections/configurations#/Encoding/PostEncodingConfigurationsAudioAac
    """

    config = AacAudioConfiguration(name="AAC Audio @ {0} Kbps".format(
        round(bitrate / 1000)),
                                   bitrate=bitrate)

    return bitmovin_api.encoding.configurations.audio.aac.create(
        aac_audio_configuration=config)
Пример #3
0
def _create_aac_audio_configuration(bitrate):
    # type: (int) -> AacAudioConfiguration
    """
    Creates a configuration for the AAC audio codec to be applied to audio streams.

    <p>API endpoint:
    https://bitmovin.com/docs/encoding/api-reference/sections/configurations#/Encoding/PostEncodingConfigurationsAudioAac

    :param bitrate: The target bitrate of the output audio
    """

    config = AacAudioConfiguration(name="AAC {0} kbit/s".format(bitrate /
                                                                1000),
                                   bitrate=bitrate)

    return bitmovin_api.encoding.configurations.audio.aac.create(
        aac_audio_configuration=config)