Class VideoCodecSettings
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.medialive.alpha.VideoCodecSettings
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:41.397Z")
@Stability(Experimental)
public abstract class VideoCodecSettings
extends software.amazon.jsii.JsiiObject
(experimental) Video codec settings.
Use the static factory methods to create.
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 classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedVideoCodecSettings(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedVideoCodecSettings(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoCodecSettingsav1()(experimental) Create AV1 codec settings.static VideoCodecSettingsav1(Av1SettingsProps props) (experimental) Create AV1 codec settings.static VideoCodecSettings(experimental) Create frame capture codec settings.static VideoCodecSettings(experimental) Create frame capture codec settings.static VideoCodecSettingsh264()(experimental) Create H.264 (AVC) codec settings.static VideoCodecSettingsh264(H264SettingsProps props) (experimental) Create H.264 (AVC) codec settings.static VideoCodecSettingsh265(H265SettingsProps props) (experimental) Create H.265 (HEVC) codec settings.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
VideoCodecSettings
protected VideoCodecSettings(software.amazon.jsii.JsiiObjectRef objRef) -
VideoCodecSettings
protected VideoCodecSettings(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
VideoCodecSettings
@Stability(Experimental) protected VideoCodecSettings()
-
-
Method Details
-
av1
@Stability(Experimental) @NotNull public static VideoCodecSettings av1(@Nullable Av1SettingsProps props) (experimental) Create AV1 codec settings.- Parameters:
props-
-
av1
(experimental) Create AV1 codec settings. -
frameCapture
@Stability(Experimental) @NotNull public static VideoCodecSettings frameCapture(@Nullable FrameCaptureSettingsProps props) (experimental) Create frame capture codec settings.- Parameters:
props-
-
frameCapture
(experimental) Create frame capture codec settings. -
h264
@Stability(Experimental) @NotNull public static VideoCodecSettings h264(@Nullable H264SettingsProps props) (experimental) Create H.264 (AVC) codec settings.- Parameters:
props-
-
h264
(experimental) Create H.264 (AVC) codec settings. -
h265
@Stability(Experimental) @NotNull public static VideoCodecSettings h265(@NotNull H265SettingsProps props) (experimental) Create H.265 (HEVC) codec settings. Framerate is required for H.265.- Parameters:
props- This parameter is required.
-