interface VideoEncodeProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.VideoEncodeProps |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#VideoEncodeProps |
Java | software.amazon.awscdk.services.medialive.alpha.VideoEncodeProps |
Python | aws_cdk.aws_medialive_alpha.VideoEncodeProps |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป VideoEncodeProps |
Properties for a video encode configuration.
Example
declare const stack: Stack;
declare const input: medialive.IInput;
declare const bucket: s3.IBucket;
const video = medialive.EncodeConfiguration.video({
name: 'video_720p',
codec: medialive.VideoCodecSettings.h264({
rateControl: medialive.H264RateControl.cbr({ bitrate: Bitrate.mbps(3) }),
framerate: medialive.Framerate.FPS_30,
}),
width: 1280,
height: 720,
});
const audio = medialive.EncodeConfiguration.audio({
name: 'audio_aac',
codec: medialive.AudioCodecSettings.aac({ bitrate: Bitrate.kbps(192) }),
});
new medialive.Channel(stack, 'Channel', {
inputs: [{ input }],
outputGroups: [
medialive.OutputGroupConfiguration.hls({
name: 'hls',
destinations: [medialive.OutputDestination.toBucket(bucket, 'live/stream')],
outputs: [{ encodes: [video, audio], outputName: 'hls_out' }],
}),
],
});
Properties
| Name | Type | Description |
|---|---|---|
| codec | Video | The codec for the video encode. |
| height | number | The height of the output video in pixels. |
| name | string | A unique name for this video encode. |
| width | number | The width of the output video in pixels. |
| respond | Respond | How to respond to AFD values in the input stream. |
| scaling | Scaling | The video scaling behavior. |
| sharpness? | number | The anti-alias filter strength (0-100). |
codec
Type:
Video
The codec for the video encode.
Choose the codec explicitly (e.g. VideoCodecSettings.h264(...))
height
Type:
number
The height of the output video in pixels.
Must be an even number.
name
Type:
string
A unique name for this video encode.
width
Type:
number
The width of the output video in pixels.
Must be an even number.
respondToAfd?
Type:
Respond
(optional, default: RespondToAfd.NONE)
How to respond to AFD values in the input stream.
scalingBehavior?
Type:
Scaling
(optional, default: ScalingBehavior.DEFAULT)
The video scaling behavior.
sharpness?
Type:
number
(optional, default: 50)
The anti-alias filter strength (0-100).
0 is softest, 100 is sharpest.

.NET
Go
Java
Python
TypeScript (