Interface VideoEncodeProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VideoEncodeProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:41.400Z")
@Stability(Experimental)
public interface VideoEncodeProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for a video encode configuration.
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 forVideoEncodePropsstatic final classAn implementation forVideoEncodeProps -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoEncodeProps.Builderbuilder()getCodec()(experimental) The codec for the video encode.(experimental) The height of the output video in pixels.getName()(experimental) A unique name for this video encode.default RespondToAfd(experimental) How to respond to AFD values in the input stream.default ScalingBehavior(experimental) The video scaling behavior.default Number(experimental) The anti-alias filter strength (0-100).getWidth()(experimental) The width of the output video in pixels.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCodec
(experimental) The codec for the video encode.Choose the codec explicitly (e.g.
VideoCodecSettings.h264(...)) -
getHeight
(experimental) The height of the output video in pixels.Must be an even number.
-
getName
(experimental) A unique name for this video encode. -
getWidth
(experimental) The width of the output video in pixels.Must be an even number.
-
getRespondToAfd
(experimental) How to respond to AFD values in the input stream.Default: RespondToAfd.NONE
-
getScalingBehavior
(experimental) The video scaling behavior.Default: ScalingBehavior.DEFAULT
-
getSharpness
(experimental) The anti-alias filter strength (0-100).0 is softest, 100 is sharpest.
Default: 50
-
builder
- Returns:
- a
VideoEncodeProps.BuilderofVideoEncodeProps
-