Experimental
@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
H265RateControl Class
H.265 rate control. Use the static factory methods to create.
Example
ts
// H.264
const h264 = medialive.EncodeConfiguration.video({
name: 'h264_720p',
codec: medialive.VideoCodecSettings.h264({
rateControl: medialive.H264RateControl.cbr({ bitrate: Bitrate.mbps(3) }),
framerate: medialive.Framerate.FPS_30,
profile: medialive.H264Profile.HIGH,
}),
width: 1280,
height: 720,
});
// H.265
const h265 = medialive.EncodeConfiguration.video({
name: 'h265_1080p',
codec: medialive.VideoCodecSettings.h265({
rateControl: medialive.H265RateControl.qvbr({
maxBitrate: Bitrate.mbps(5),
qvbrQualityLevel: 7,
}),
framerate: medialive.Framerate.FPS_30,
profile: medialive.H265Profile.MAIN,
tier: medialive.H265Tier.HIGH,
}),
width: 1920,
height: 1080,
});
Methods
cbr(props: CbrRateControlProps): H265RateControl // chainable@staticmethod def cbr(props: CbrRateControlProps) -> H265RateControlpublic static H265RateControl cbr(CbrRateControlProps props)public static H265RateControl Cbr(CbrRateControlProps props)func Cbr(Props CbrRateControlProps) H265RateControlstatic#Constant bitrate.
qvbr(props: QvbrRateControlProps): H265RateControl // chainable@staticmethod def qvbr(props: QvbrRateControlProps) -> H265RateControlpublic static H265RateControl qvbr(QvbrRateControlProps props)public static H265RateControl Qvbr(QvbrRateControlProps props)func Qvbr(Props QvbrRateControlProps) H265RateControlstatic#Quality-defined variable bitrate.
vbr(props: VbrRateControlProps): H265RateControl // chainable@staticmethod def vbr(props: VbrRateControlProps) -> H265RateControlpublic static H265RateControl vbr(VbrRateControlProps props)public static H265RateControl Vbr(VbrRateControlProps props)func Vbr(Props VbrRateControlProps) H265RateControlstatic#Variable bitrate.