Experimental
@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
H264RateControl Class
H.264 rate control. Use the static factory methods to create.
Example
ts
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' }],
}),
],
});
Methods
cbr(props: CbrRateControlProps): H264RateControl // chainable@staticmethod def cbr(props: CbrRateControlProps) -> H264RateControlpublic static H264RateControl cbr(CbrRateControlProps props)public static H264RateControl Cbr(CbrRateControlProps props)func Cbr(Props CbrRateControlProps) H264RateControlstatic#Constant bitrate.
qvbr(props: QvbrRateControlProps): H264RateControl // chainable@staticmethod def qvbr(props: QvbrRateControlProps) -> H264RateControlpublic static H264RateControl qvbr(QvbrRateControlProps props)public static H264RateControl Qvbr(QvbrRateControlProps props)func Qvbr(Props QvbrRateControlProps) H264RateControlstatic#Quality-defined variable bitrate.
vbr(props: VbrRateControlProps): H264RateControl // chainable@staticmethod def vbr(props: VbrRateControlProps) -> H264RateControlpublic static H264RateControl vbr(VbrRateControlProps props)public static H264RateControl Vbr(VbrRateControlProps props)func Vbr(Props VbrRateControlProps) H264RateControlstatic#Variable bitrate.