Interface AudioEncodeProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AudioEncodeProps.Jsii$Proxy
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAudioEncodePropsstatic final classAn implementation forAudioEncodeProps -
Method Summary
Modifier and TypeMethodDescriptionstatic AudioEncodeProps.Builderbuilder()default List<AudioDashRole> (experimental) The DASH roles to assign to this audio output.default AudioNormalizationSettings(experimental) Audio normalization settings for loudness correction.default String(experimental) The name of the audio selector in the input to use as the source.default AudioType(experimental) The audio type when audioTypeControl is USE_CONFIGURED.default AudioTypeControl(experimental) How the audio type is signaled in the output.default AudioWatermarkSettings(experimental) Audio watermarking settings (e.g.getCodec()(experimental) The codec for the audio encode.default DvbDashAccessibility(experimental) DVB DASH accessibility signaling for this audio output.default String(experimental) The ISO 639-2 language code for the audio output track (e.g.default AudioLanguageCodeControl(experimental) How the audio language code is signaled in the output.getName()(experimental) A unique name for this audio encode.default RemixSettings(experimental) Audio remix settings for channel remapping.default String(experimental) The display name for the audio track (e.g.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCodec
(experimental) The codec for the audio encode.Choose the codec explicitly (e.g.
AudioCodecSettings.aac(...)) -
getName
(experimental) A unique name for this audio encode. -
getAudioDashRoles
(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
-
getAudioNormalization
(experimental) Audio normalization settings for loudness correction.Default: - no normalization
-
getAudioSelectorName
(experimental) The name of the audio selector in the input to use as the source.Must match the
nameof anAudioSelectoron the input attachment. When omitted, MediaLive uses the input's default audio.Default: - the input's default audio
-
getAudioType
(experimental) The audio type when audioTypeControl is USE_CONFIGURED.The values are defined in ISO-IEC 13818-1.
Default: - follow input
-
getAudioTypeControl
(experimental) How the audio type is signaled in the output.Default: - USE_CONFIGURED when `audioType` is set, otherwise FOLLOW_INPUT
-
getAudioWatermarkSettings
(experimental) Audio watermarking settings (e.g. Nielsen watermarks).Default: - no watermarking
-
getDvbDashAccessibility
(experimental) DVB DASH accessibility signaling for this audio output.Default: - no DVB DASH accessibility signaling
-
getLanguageCode
(experimental) The ISO 639-2 language code for the audio output track (e.g. 'eng', 'spa').Default: - follow input
-
getLanguageCodeControl
(experimental) How the audio language code is signaled in the output.When
FOLLOW_INPUT, a configuredlanguageCodeis used only as a fallback when the input has none.Default: - USE_CONFIGURED when `languageCode` is set, otherwise FOLLOW_INPUT
-
getRemixSettings
(experimental) Audio remix settings for channel remapping.Default: - no remixing
-
getStreamName
(experimental) The display name for the audio track (e.g. 'English', 'Director Commentary'). Used for HLS and MS Smooth outputs.Default: - no stream name
-
builder
- Returns:
- a
AudioEncodeProps.BuilderofAudioEncodeProps
-