#[non_exhaustive]pub struct AvcIntraSettingsBuilder { /* private fields */ }
Expand description
A builder for AvcIntraSettings
.
Implementations§
source§impl AvcIntraSettingsBuilder
impl AvcIntraSettingsBuilder
sourcepub fn avc_intra_class(self, input: AvcIntraClass) -> Self
pub fn avc_intra_class(self, input: AvcIntraClass) -> Self
Specify the AVC-Intra class of your output. The AVC-Intra class selection determines the output video bit rate depending on the frame rate of the output. Outputs with higher class values have higher bitrates and improved image quality. Note that for Class 4K/2K, MediaConvert supports only 4:2:2 chroma subsampling.
sourcepub fn set_avc_intra_class(self, input: Option<AvcIntraClass>) -> Self
pub fn set_avc_intra_class(self, input: Option<AvcIntraClass>) -> Self
Specify the AVC-Intra class of your output. The AVC-Intra class selection determines the output video bit rate depending on the frame rate of the output. Outputs with higher class values have higher bitrates and improved image quality. Note that for Class 4K/2K, MediaConvert supports only 4:2:2 chroma subsampling.
sourcepub fn get_avc_intra_class(&self) -> &Option<AvcIntraClass>
pub fn get_avc_intra_class(&self) -> &Option<AvcIntraClass>
Specify the AVC-Intra class of your output. The AVC-Intra class selection determines the output video bit rate depending on the frame rate of the output. Outputs with higher class values have higher bitrates and improved image quality. Note that for Class 4K/2K, MediaConvert supports only 4:2:2 chroma subsampling.
sourcepub fn avc_intra_uhd_settings(self, input: AvcIntraUhdSettings) -> Self
pub fn avc_intra_uhd_settings(self, input: AvcIntraUhdSettings) -> Self
Optional when you set AVC-Intra class to Class 4K/2K. When you set AVC-Intra class to a different value, this object isn’t allowed.
sourcepub fn set_avc_intra_uhd_settings(
self,
input: Option<AvcIntraUhdSettings>
) -> Self
pub fn set_avc_intra_uhd_settings( self, input: Option<AvcIntraUhdSettings> ) -> Self
Optional when you set AVC-Intra class to Class 4K/2K. When you set AVC-Intra class to a different value, this object isn’t allowed.
sourcepub fn get_avc_intra_uhd_settings(&self) -> &Option<AvcIntraUhdSettings>
pub fn get_avc_intra_uhd_settings(&self) -> &Option<AvcIntraUhdSettings>
Optional when you set AVC-Intra class to Class 4K/2K. When you set AVC-Intra class to a different value, this object isn’t allowed.
sourcepub fn framerate_control(self, input: AvcIntraFramerateControl) -> Self
pub fn framerate_control(self, input: AvcIntraFramerateControl) -> Self
If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction.
sourcepub fn set_framerate_control(
self,
input: Option<AvcIntraFramerateControl>
) -> Self
pub fn set_framerate_control( self, input: Option<AvcIntraFramerateControl> ) -> Self
If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction.
sourcepub fn get_framerate_control(&self) -> &Option<AvcIntraFramerateControl>
pub fn get_framerate_control(&self) -> &Option<AvcIntraFramerateControl>
If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction.
sourcepub fn framerate_conversion_algorithm(
self,
input: AvcIntraFramerateConversionAlgorithm
) -> Self
pub fn framerate_conversion_algorithm( self, input: AvcIntraFramerateConversionAlgorithm ) -> Self
Choose the method that you want MediaConvert to use when increasing or decreasing the frame rate. For numerically simple conversions, such as 60 fps to 30 fps: We recommend that you keep the default value, Drop duplicate. For numerically complex conversions, to avoid stutter: Choose Interpolate. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence: Choose FrameFormer to do motion-compensated interpolation. FrameFormer uses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost. When you choose FrameFormer, your input video resolution must be at least 128x96.
sourcepub fn set_framerate_conversion_algorithm(
self,
input: Option<AvcIntraFramerateConversionAlgorithm>
) -> Self
pub fn set_framerate_conversion_algorithm( self, input: Option<AvcIntraFramerateConversionAlgorithm> ) -> Self
Choose the method that you want MediaConvert to use when increasing or decreasing the frame rate. For numerically simple conversions, such as 60 fps to 30 fps: We recommend that you keep the default value, Drop duplicate. For numerically complex conversions, to avoid stutter: Choose Interpolate. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence: Choose FrameFormer to do motion-compensated interpolation. FrameFormer uses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost. When you choose FrameFormer, your input video resolution must be at least 128x96.
sourcepub fn get_framerate_conversion_algorithm(
&self
) -> &Option<AvcIntraFramerateConversionAlgorithm>
pub fn get_framerate_conversion_algorithm( &self ) -> &Option<AvcIntraFramerateConversionAlgorithm>
Choose the method that you want MediaConvert to use when increasing or decreasing the frame rate. For numerically simple conversions, such as 60 fps to 30 fps: We recommend that you keep the default value, Drop duplicate. For numerically complex conversions, to avoid stutter: Choose Interpolate. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence: Choose FrameFormer to do motion-compensated interpolation. FrameFormer uses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost. When you choose FrameFormer, your input video resolution must be at least 128x96.
sourcepub fn framerate_denominator(self, input: i32) -> Self
pub fn framerate_denominator(self, input: i32) -> Self
When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
sourcepub fn set_framerate_denominator(self, input: Option<i32>) -> Self
pub fn set_framerate_denominator(self, input: Option<i32>) -> Self
When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
sourcepub fn get_framerate_denominator(&self) -> &Option<i32>
pub fn get_framerate_denominator(&self) -> &Option<i32>
When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
sourcepub fn framerate_numerator(self, input: i32) -> Self
pub fn framerate_numerator(self, input: i32) -> Self
When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
sourcepub fn set_framerate_numerator(self, input: Option<i32>) -> Self
pub fn set_framerate_numerator(self, input: Option<i32>) -> Self
When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
sourcepub fn get_framerate_numerator(&self) -> &Option<i32>
pub fn get_framerate_numerator(&self) -> &Option<i32>
When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
sourcepub fn interlace_mode(self, input: AvcIntraInterlaceMode) -> Self
pub fn interlace_mode(self, input: AvcIntraInterlaceMode) -> Self
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 set_interlace_mode(self, input: Option<AvcIntraInterlaceMode>) -> Self
pub fn set_interlace_mode(self, input: Option<AvcIntraInterlaceMode>) -> Self
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 get_interlace_mode(&self) -> &Option<AvcIntraInterlaceMode>
pub fn get_interlace_mode(&self) -> &Option<AvcIntraInterlaceMode>
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 scan_type_conversion_mode(
self,
input: AvcIntraScanTypeConversionMode
) -> Self
pub fn scan_type_conversion_mode( self, input: AvcIntraScanTypeConversionMode ) -> Self
Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing, for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn’t suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine to None or Soft. You can’t use optimized interlacing for hard telecine outputs. You must also set Interlace mode to a value other than Progressive.
sourcepub fn set_scan_type_conversion_mode(
self,
input: Option<AvcIntraScanTypeConversionMode>
) -> Self
pub fn set_scan_type_conversion_mode( self, input: Option<AvcIntraScanTypeConversionMode> ) -> Self
Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing, for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn’t suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine to None or Soft. You can’t use optimized interlacing for hard telecine outputs. You must also set Interlace mode to a value other than Progressive.
sourcepub fn get_scan_type_conversion_mode(
&self
) -> &Option<AvcIntraScanTypeConversionMode>
pub fn get_scan_type_conversion_mode( &self ) -> &Option<AvcIntraScanTypeConversionMode>
Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing, for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn’t suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine to None or Soft. You can’t use optimized interlacing for hard telecine outputs. You must also set Interlace mode to a value other than Progressive.
sourcepub fn slow_pal(self, input: AvcIntraSlowPal) -> Self
pub fn slow_pal(self, input: AvcIntraSlowPal) -> Self
Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output. When you enable slow PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio to keep it synchronized with the video. Note that enabling this setting will slightly reduce the duration of your video. Required settings: You must also set Framerate to 25.
sourcepub fn set_slow_pal(self, input: Option<AvcIntraSlowPal>) -> Self
pub fn set_slow_pal(self, input: Option<AvcIntraSlowPal>) -> Self
Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output. When you enable slow PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio to keep it synchronized with the video. Note that enabling this setting will slightly reduce the duration of your video. Required settings: You must also set Framerate to 25.
sourcepub fn get_slow_pal(&self) -> &Option<AvcIntraSlowPal>
pub fn get_slow_pal(&self) -> &Option<AvcIntraSlowPal>
Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output. When you enable slow PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio to keep it synchronized with the video. Note that enabling this setting will slightly reduce the duration of your video. Required settings: You must also set Framerate to 25.
sourcepub fn telecine(self, input: AvcIntraTelecine) -> Self
pub fn telecine(self, input: AvcIntraTelecine) -> Self
When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 fps, and your output scan type is interlaced, you can optionally enable hard telecine to create a smoother picture. When you keep the default value, None, MediaConvert does a standard frame rate conversion to 29.97 without doing anything with the field polarity to create a smoother picture.
sourcepub fn set_telecine(self, input: Option<AvcIntraTelecine>) -> Self
pub fn set_telecine(self, input: Option<AvcIntraTelecine>) -> Self
When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 fps, and your output scan type is interlaced, you can optionally enable hard telecine to create a smoother picture. When you keep the default value, None, MediaConvert does a standard frame rate conversion to 29.97 without doing anything with the field polarity to create a smoother picture.
sourcepub fn get_telecine(&self) -> &Option<AvcIntraTelecine>
pub fn get_telecine(&self) -> &Option<AvcIntraTelecine>
When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 fps, and your output scan type is interlaced, you can optionally enable hard telecine to create a smoother picture. When you keep the default value, None, MediaConvert does a standard frame rate conversion to 29.97 without doing anything with the field polarity to create a smoother picture.
sourcepub fn build(self) -> AvcIntraSettings
pub fn build(self) -> AvcIntraSettings
Consumes the builder and constructs a AvcIntraSettings
.
Trait Implementations§
source§impl Clone for AvcIntraSettingsBuilder
impl Clone for AvcIntraSettingsBuilder
source§fn clone(&self) -> AvcIntraSettingsBuilder
fn clone(&self) -> AvcIntraSettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AvcIntraSettingsBuilder
impl Debug for AvcIntraSettingsBuilder
source§impl Default for AvcIntraSettingsBuilder
impl Default for AvcIntraSettingsBuilder
source§fn default() -> AvcIntraSettingsBuilder
fn default() -> AvcIntraSettingsBuilder
source§impl PartialEq for AvcIntraSettingsBuilder
impl PartialEq for AvcIntraSettingsBuilder
source§fn eq(&self, other: &AvcIntraSettingsBuilder) -> bool
fn eq(&self, other: &AvcIntraSettingsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AvcIntraSettingsBuilder
Auto Trait Implementations§
impl Freeze for AvcIntraSettingsBuilder
impl RefUnwindSafe for AvcIntraSettingsBuilder
impl Send for AvcIntraSettingsBuilder
impl Sync for AvcIntraSettingsBuilder
impl Unpin for AvcIntraSettingsBuilder
impl UnwindSafe for AvcIntraSettingsBuilder
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