Struct aws_sdk_mediaconvert::types::builders::Vp9SettingsBuilder
source · #[non_exhaustive]pub struct Vp9SettingsBuilder { /* private fields */ }
Expand description
A builder for Vp9Settings
.
Implementations§
source§impl Vp9SettingsBuilder
impl Vp9SettingsBuilder
sourcepub fn bitrate(self, input: i32) -> Self
pub fn bitrate(self, input: i32) -> Self
Target bitrate in bits/second. For example, enter five megabits per second as 5000000.
sourcepub fn set_bitrate(self, input: Option<i32>) -> Self
pub fn set_bitrate(self, input: Option<i32>) -> Self
Target bitrate in bits/second. For example, enter five megabits per second as 5000000.
sourcepub fn get_bitrate(&self) -> &Option<i32>
pub fn get_bitrate(&self) -> &Option<i32>
Target bitrate in bits/second. For example, enter five megabits per second as 5000000.
sourcepub fn framerate_control(self, input: Vp9FramerateControl) -> Self
pub fn framerate_control(self, input: Vp9FramerateControl) -> 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<Vp9FramerateControl>) -> Self
pub fn set_framerate_control(self, input: Option<Vp9FramerateControl>) -> 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<Vp9FramerateControl>
pub fn get_framerate_control(&self) -> &Option<Vp9FramerateControl>
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: Vp9FramerateConversionAlgorithm
) -> Self
pub fn framerate_conversion_algorithm( self, input: Vp9FramerateConversionAlgorithm ) -> 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<Vp9FramerateConversionAlgorithm>
) -> Self
pub fn set_framerate_conversion_algorithm( self, input: Option<Vp9FramerateConversionAlgorithm> ) -> 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<Vp9FramerateConversionAlgorithm>
pub fn get_framerate_conversion_algorithm( &self ) -> &Option<Vp9FramerateConversionAlgorithm>
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 gop_size(self, input: f64) -> Self
pub fn gop_size(self, input: f64) -> Self
GOP Length (keyframe interval) in frames. Must be greater than zero.
sourcepub fn set_gop_size(self, input: Option<f64>) -> Self
pub fn set_gop_size(self, input: Option<f64>) -> Self
GOP Length (keyframe interval) in frames. Must be greater than zero.
sourcepub fn get_gop_size(&self) -> &Option<f64>
pub fn get_gop_size(&self) -> &Option<f64>
GOP Length (keyframe interval) in frames. Must be greater than zero.
sourcepub fn hrd_buffer_size(self, input: i32) -> Self
pub fn hrd_buffer_size(self, input: i32) -> Self
Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000.
sourcepub fn set_hrd_buffer_size(self, input: Option<i32>) -> Self
pub fn set_hrd_buffer_size(self, input: Option<i32>) -> Self
Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000.
sourcepub fn get_hrd_buffer_size(&self) -> &Option<i32>
pub fn get_hrd_buffer_size(&self) -> &Option<i32>
Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000.
sourcepub fn max_bitrate(self, input: i32) -> Self
pub fn max_bitrate(self, input: i32) -> Self
Ignore this setting unless you set qualityTuningLevel to MULTI_PASS. Optional. Specify the maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. The default behavior uses twice the target bitrate as the maximum bitrate.
sourcepub fn set_max_bitrate(self, input: Option<i32>) -> Self
pub fn set_max_bitrate(self, input: Option<i32>) -> Self
Ignore this setting unless you set qualityTuningLevel to MULTI_PASS. Optional. Specify the maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. The default behavior uses twice the target bitrate as the maximum bitrate.
sourcepub fn get_max_bitrate(&self) -> &Option<i32>
pub fn get_max_bitrate(&self) -> &Option<i32>
Ignore this setting unless you set qualityTuningLevel to MULTI_PASS. Optional. Specify the maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. The default behavior uses twice the target bitrate as the maximum bitrate.
sourcepub fn par_control(self, input: Vp9ParControl) -> Self
pub fn par_control(self, input: Vp9ParControl) -> Self
Optional. Specify how the service determines the pixel aspect ratio for this output. The default behavior is to use the same pixel aspect ratio as your input video.
sourcepub fn set_par_control(self, input: Option<Vp9ParControl>) -> Self
pub fn set_par_control(self, input: Option<Vp9ParControl>) -> Self
Optional. Specify how the service determines the pixel aspect ratio for this output. The default behavior is to use the same pixel aspect ratio as your input video.
sourcepub fn get_par_control(&self) -> &Option<Vp9ParControl>
pub fn get_par_control(&self) -> &Option<Vp9ParControl>
Optional. Specify how the service determines the pixel aspect ratio for this output. The default behavior is to use the same pixel aspect ratio as your input video.
sourcepub fn par_denominator(self, input: i32) -> Self
pub fn par_denominator(self, input: i32) -> Self
Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parDenominator is 33.
sourcepub fn set_par_denominator(self, input: Option<i32>) -> Self
pub fn set_par_denominator(self, input: Option<i32>) -> Self
Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parDenominator is 33.
sourcepub fn get_par_denominator(&self) -> &Option<i32>
pub fn get_par_denominator(&self) -> &Option<i32>
Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parDenominator is 33.
sourcepub fn par_numerator(self, input: i32) -> Self
pub fn par_numerator(self, input: i32) -> Self
Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parNumerator is 40.
sourcepub fn set_par_numerator(self, input: Option<i32>) -> Self
pub fn set_par_numerator(self, input: Option<i32>) -> Self
Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parNumerator is 40.
sourcepub fn get_par_numerator(&self) -> &Option<i32>
pub fn get_par_numerator(&self) -> &Option<i32>
Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parNumerator is 40.
sourcepub fn quality_tuning_level(self, input: Vp9QualityTuningLevel) -> Self
pub fn quality_tuning_level(self, input: Vp9QualityTuningLevel) -> Self
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, multi-pass encoding.
sourcepub fn set_quality_tuning_level(
self,
input: Option<Vp9QualityTuningLevel>
) -> Self
pub fn set_quality_tuning_level( self, input: Option<Vp9QualityTuningLevel> ) -> Self
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, multi-pass encoding.
sourcepub fn get_quality_tuning_level(&self) -> &Option<Vp9QualityTuningLevel>
pub fn get_quality_tuning_level(&self) -> &Option<Vp9QualityTuningLevel>
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, multi-pass encoding.
sourcepub fn rate_control_mode(self, input: Vp9RateControlMode) -> Self
pub fn rate_control_mode(self, input: Vp9RateControlMode) -> Self
With the VP9 codec, you can use only the variable bitrate (VBR) rate control mode.
sourcepub fn set_rate_control_mode(self, input: Option<Vp9RateControlMode>) -> Self
pub fn set_rate_control_mode(self, input: Option<Vp9RateControlMode>) -> Self
With the VP9 codec, you can use only the variable bitrate (VBR) rate control mode.
sourcepub fn get_rate_control_mode(&self) -> &Option<Vp9RateControlMode>
pub fn get_rate_control_mode(&self) -> &Option<Vp9RateControlMode>
With the VP9 codec, you can use only the variable bitrate (VBR) rate control mode.
sourcepub fn build(self) -> Vp9Settings
pub fn build(self) -> Vp9Settings
Consumes the builder and constructs a Vp9Settings
.
Trait Implementations§
source§impl Clone for Vp9SettingsBuilder
impl Clone for Vp9SettingsBuilder
source§fn clone(&self) -> Vp9SettingsBuilder
fn clone(&self) -> Vp9SettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Vp9SettingsBuilder
impl Debug for Vp9SettingsBuilder
source§impl Default for Vp9SettingsBuilder
impl Default for Vp9SettingsBuilder
source§fn default() -> Vp9SettingsBuilder
fn default() -> Vp9SettingsBuilder
source§impl PartialEq for Vp9SettingsBuilder
impl PartialEq for Vp9SettingsBuilder
source§fn eq(&self, other: &Vp9SettingsBuilder) -> bool
fn eq(&self, other: &Vp9SettingsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Vp9SettingsBuilder
Auto Trait Implementations§
impl Freeze for Vp9SettingsBuilder
impl RefUnwindSafe for Vp9SettingsBuilder
impl Send for Vp9SettingsBuilder
impl Sync for Vp9SettingsBuilder
impl Unpin for Vp9SettingsBuilder
impl UnwindSafe for Vp9SettingsBuilder
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