Struct aws_sdk_mediaconvert::types::XavcHdProfileSettings
source · #[non_exhaustive]pub struct XavcHdProfileSettings {
pub bitrate_class: Option<XavcHdProfileBitrateClass>,
pub flicker_adaptive_quantization: Option<XavcFlickerAdaptiveQuantization>,
pub gop_b_reference: Option<XavcGopBReference>,
pub gop_closed_cadence: Option<i32>,
pub hrd_buffer_size: Option<i32>,
pub interlace_mode: Option<XavcInterlaceMode>,
pub quality_tuning_level: Option<XavcHdProfileQualityTuningLevel>,
pub slices: Option<i32>,
pub telecine: Option<XavcHdProfileTelecine>,
}
Expand description
Required when you set Profile to the value XAVC_HD.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.bitrate_class: Option<XavcHdProfileBitrateClass>
Specify the XAVC HD (Long GOP) Bitrate Class to set the bitrate of your output. Outputs of the same class have similar image quality over the operating points that are valid for that class.
flicker_adaptive_quantization: Option<XavcFlickerAdaptiveQuantization>
The best way to set up adaptive quantization is to keep the default value, Auto, for the setting Adaptive quantization. When you do so, MediaConvert automatically applies the best types of quantization for your video content. Include this setting in your JSON job specification only when you choose to change the default value for Adaptive quantization. Enable this setting to have the encoder reduce I-frame pop. I-frame pop appears as a visual flicker that can arise when the encoder saves bits by copying some macroblocks many times from frame to frame, and then refreshes them at the I-frame. When you enable this setting, the encoder updates these macroblocks slightly more often to smooth out the flicker. This setting is disabled by default. Related setting: In addition to enabling this setting, you must also set Adaptive quantization to a value other than Off or Auto. Use Adaptive quantization to adjust the degree of smoothing that Flicker adaptive quantization provides.
gop_b_reference: Option<XavcGopBReference>
Specify whether the encoder uses B-frames as reference frames for other pictures in the same GOP. Choose Allow to allow the encoder to use B-frames as reference frames. Choose Don’t allow to prevent the encoder from using B-frames as reference frames.
gop_closed_cadence: Option<i32>
Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting.
hrd_buffer_size: Option<i32>
Specify the size of the buffer that MediaConvert uses in the HRD buffer model for this output. Specify this value in bits; for example, enter five megabits as 5000000. When you don’t set this value, or you set it to zero, MediaConvert calculates the default by doubling the bitrate of this output point.
interlace_mode: Option<XavcInterlaceMode>
Choose the scan line type for the output. Keep the default value, Progressive to create a progressive output, regardless of the scan type of your input. Use Top field first or Bottom field first to create an output that’s interlaced with the same field polarity throughout. Use Follow, default top or Follow, default bottom to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
quality_tuning_level: Option<XavcHdProfileQualityTuningLevel>
Optional. Use Quality tuning level to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, single-pass encoding.
slices: Option<i32>
Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures.
telecine: Option<XavcHdProfileTelecine>
Ignore this setting unless you set Frame rate (framerateNumerator divided by framerateDenominator) to 29.970. If your input framerate is 23.976, choose Hard. Otherwise, keep the default value None. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-telecine-and-inverse-telecine.html.
Implementations§
source§impl XavcHdProfileSettings
impl XavcHdProfileSettings
sourcepub fn bitrate_class(&self) -> Option<&XavcHdProfileBitrateClass>
pub fn bitrate_class(&self) -> Option<&XavcHdProfileBitrateClass>
Specify the XAVC HD (Long GOP) Bitrate Class to set the bitrate of your output. Outputs of the same class have similar image quality over the operating points that are valid for that class.
sourcepub fn flicker_adaptive_quantization(
&self
) -> Option<&XavcFlickerAdaptiveQuantization>
pub fn flicker_adaptive_quantization( &self ) -> Option<&XavcFlickerAdaptiveQuantization>
The best way to set up adaptive quantization is to keep the default value, Auto, for the setting Adaptive quantization. When you do so, MediaConvert automatically applies the best types of quantization for your video content. Include this setting in your JSON job specification only when you choose to change the default value for Adaptive quantization. Enable this setting to have the encoder reduce I-frame pop. I-frame pop appears as a visual flicker that can arise when the encoder saves bits by copying some macroblocks many times from frame to frame, and then refreshes them at the I-frame. When you enable this setting, the encoder updates these macroblocks slightly more often to smooth out the flicker. This setting is disabled by default. Related setting: In addition to enabling this setting, you must also set Adaptive quantization to a value other than Off or Auto. Use Adaptive quantization to adjust the degree of smoothing that Flicker adaptive quantization provides.
sourcepub fn gop_b_reference(&self) -> Option<&XavcGopBReference>
pub fn gop_b_reference(&self) -> Option<&XavcGopBReference>
Specify whether the encoder uses B-frames as reference frames for other pictures in the same GOP. Choose Allow to allow the encoder to use B-frames as reference frames. Choose Don’t allow to prevent the encoder from using B-frames as reference frames.
sourcepub fn gop_closed_cadence(&self) -> Option<i32>
pub fn gop_closed_cadence(&self) -> Option<i32>
Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting.
sourcepub fn hrd_buffer_size(&self) -> Option<i32>
pub fn hrd_buffer_size(&self) -> Option<i32>
Specify the size of the buffer that MediaConvert uses in the HRD buffer model for this output. Specify this value in bits; for example, enter five megabits as 5000000. When you don’t set this value, or you set it to zero, MediaConvert calculates the default by doubling the bitrate of this output point.
sourcepub fn interlace_mode(&self) -> Option<&XavcInterlaceMode>
pub fn interlace_mode(&self) -> Option<&XavcInterlaceMode>
Choose the scan line type for the output. Keep the default value, Progressive to create a progressive output, regardless of the scan type of your input. Use Top field first or Bottom field first to create an output that’s interlaced with the same field polarity throughout. Use Follow, default top or Follow, default bottom to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
sourcepub fn quality_tuning_level(&self) -> Option<&XavcHdProfileQualityTuningLevel>
pub fn quality_tuning_level(&self) -> Option<&XavcHdProfileQualityTuningLevel>
Optional. Use Quality tuning level to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, single-pass encoding.
sourcepub fn slices(&self) -> Option<i32>
pub fn slices(&self) -> Option<i32>
Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures.
sourcepub fn telecine(&self) -> Option<&XavcHdProfileTelecine>
pub fn telecine(&self) -> Option<&XavcHdProfileTelecine>
Ignore this setting unless you set Frame rate (framerateNumerator divided by framerateDenominator) to 29.970. If your input framerate is 23.976, choose Hard. Otherwise, keep the default value None. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-telecine-and-inverse-telecine.html.
source§impl XavcHdProfileSettings
impl XavcHdProfileSettings
sourcepub fn builder() -> XavcHdProfileSettingsBuilder
pub fn builder() -> XavcHdProfileSettingsBuilder
Creates a new builder-style object to manufacture XavcHdProfileSettings
.
Trait Implementations§
source§impl Clone for XavcHdProfileSettings
impl Clone for XavcHdProfileSettings
source§fn clone(&self) -> XavcHdProfileSettings
fn clone(&self) -> XavcHdProfileSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for XavcHdProfileSettings
impl Debug for XavcHdProfileSettings
source§impl PartialEq for XavcHdProfileSettings
impl PartialEq for XavcHdProfileSettings
source§fn eq(&self, other: &XavcHdProfileSettings) -> bool
fn eq(&self, other: &XavcHdProfileSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for XavcHdProfileSettings
Auto Trait Implementations§
impl Freeze for XavcHdProfileSettings
impl RefUnwindSafe for XavcHdProfileSettings
impl Send for XavcHdProfileSettings
impl Sync for XavcHdProfileSettings
impl Unpin for XavcHdProfileSettings
impl UnwindSafe for XavcHdProfileSettings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more