AudioEncodeProps

class aws_cdk.aws_medialive_alpha.AudioEncodeProps(*, codec, name, audio_dash_roles=None, audio_normalization=None, audio_selector_name=None, audio_type=None, audio_type_control=None, audio_watermark_settings=None, dvb_dash_accessibility=None, language_code=None, language_code_control=None, remix_settings=None, stream_name=None)

Bases: object

(experimental) Properties for an audio encode configuration.

Parameters:
  • codec (AudioCodecSettings) – (experimental) The codec for the audio encode. Choose the codec explicitly (e.g. AudioCodecSettings.aac(...))

  • name (str) – (experimental) A unique name for this audio encode.

  • audio_dash_roles (Optional[Sequence[AudioDashRole]]) – (experimental) The DASH roles to assign to this audio output. Applies only when the output is configured for DVB DASH accessibility signaling. Default: - no DASH roles

  • audio_normalization (Union[AudioNormalizationSettings, Dict[str, Any], None]) – (experimental) Audio normalization settings for loudness correction. Default: - no normalization

  • audio_selector_name (Optional[str]) – (experimental) The name of the audio selector in the input to use as the source. Must match the name of an AudioSelector on the input attachment. When omitted, MediaLive uses the input’s default audio. Default: - the input’s default audio

  • audio_type (Optional[AudioType]) – (experimental) The audio type when audioTypeControl is USE_CONFIGURED. The values are defined in ISO-IEC 13818-1. Default: - follow input

  • audio_type_control (Optional[AudioTypeControl]) – (experimental) How the audio type is signaled in the output. Default: - USE_CONFIGURED when audioType is set, otherwise FOLLOW_INPUT

  • audio_watermark_settings (Union[AudioWatermarkSettings, Dict[str, Any], None]) – (experimental) Audio watermarking settings (e.g. Nielsen watermarks). Default: - no watermarking

  • dvb_dash_accessibility (Optional[DvbDashAccessibility]) – (experimental) DVB DASH accessibility signaling for this audio output. Default: - no DVB DASH accessibility signaling

  • language_code (Optional[str]) – (experimental) The ISO 639-2 language code for the audio output track (e.g. ‘eng’, ‘spa’). Default: - follow input

  • language_code_control (Optional[AudioLanguageCodeControl]) – (experimental) How the audio language code is signaled in the output. When FOLLOW_INPUT, a configured languageCode is used only as a fallback when the input has none. Default: - USE_CONFIGURED when languageCode is set, otherwise FOLLOW_INPUT

  • remix_settings (Union[RemixSettings, Dict[str, Any], None]) – (experimental) Audio remix settings for channel remapping. Default: - no remixing

  • stream_name (Optional[str]) – (experimental) The display name for the audio track (e.g. ‘English’, ‘Director Commentary’). Used for HLS and MS Smooth outputs. Default: - no stream name

Stability:

experimental

ExampleMetadata:

infused

Example:

# stack: Stack
# input: medialive.IInput
# bucket: s3.IBucket


video = medialive.EncodeConfiguration.video(
    name="video_720p",
    codec=medialive.VideoCodecSettings.h264(
        rate_control=medialive.H264RateControl.cbr(bitrate=Bitrate.mbps(3)),
        framerate=medialive.Framerate.FPS_30
    ),
    width=1280,
    height=720
)

audio = medialive.EncodeConfiguration.audio(
    name="audio_aac",
    codec=medialive.AudioCodecSettings.aac(bitrate=Bitrate.kbps(192))
)

medialive.Channel(stack, "Channel",
    inputs=[medialive.InputAttachment(input=input)],
    output_groups=[
        medialive.OutputGroupConfiguration.hls(
            name="hls",
            destinations=[medialive.OutputDestination.to_bucket(bucket, "live/stream")],
            outputs=[medialive.HlsOutputDefinition(encodes=[video, audio], output_name="hls_out")]
        )
    ]
)

Attributes

audio_dash_roles

(experimental) The DASH roles to assign to this audio output.

Applies only when the output is configured for DVB DASH accessibility signaling.

Default:
  • no DASH roles

Stability:

experimental

audio_normalization

(experimental) Audio normalization settings for loudness correction.

Default:
  • no normalization

Stability:

experimental

audio_selector_name

(experimental) The name of the audio selector in the input to use as the source.

Must match the name of an AudioSelector on the input attachment. When omitted, MediaLive uses the input’s default audio.

Default:
  • the input’s default audio

Stability:

experimental

audio_type

(experimental) The audio type when audioTypeControl is USE_CONFIGURED.

The values are defined in ISO-IEC 13818-1.

Default:
  • follow input

Stability:

experimental

audio_type_control

(experimental) How the audio type is signaled in the output.

Default:
  • USE_CONFIGURED when audioType is set, otherwise FOLLOW_INPUT

Stability:

experimental

audio_watermark_settings

(experimental) Audio watermarking settings (e.g. Nielsen watermarks).

Default:
  • no watermarking

Stability:

experimental

codec

(experimental) The codec for the audio encode.

Choose the codec explicitly (e.g. AudioCodecSettings.aac(...))

Stability:

experimental

dvb_dash_accessibility

(experimental) DVB DASH accessibility signaling for this audio output.

Default:
  • no DVB DASH accessibility signaling

Stability:

experimental

language_code

(experimental) The ISO 639-2 language code for the audio output track (e.g. ‘eng’, ‘spa’).

Default:
  • follow input

Stability:

experimental

language_code_control

(experimental) How the audio language code is signaled in the output.

When FOLLOW_INPUT, a configured languageCode is used only as a fallback when the input has none.

Default:
  • USE_CONFIGURED when languageCode is set, otherwise FOLLOW_INPUT

Stability:

experimental

name

(experimental) A unique name for this audio encode.

Stability:

experimental

remix_settings

(experimental) Audio remix settings for channel remapping.

Default:
  • no remixing

Stability:

experimental

stream_name

(experimental) The display name for the audio track (e.g. ‘English’, ‘Director Commentary’). Used for HLS and MS Smooth outputs.

Default:
  • no stream name

Stability:

experimental