Struct rusoto_medialive::Mpeg2Settings
source · [−]pub struct Mpeg2Settings {Show 16 fields
pub adaptive_quantization: Option<String>,
pub afd_signaling: Option<String>,
pub color_metadata: Option<String>,
pub color_space: Option<String>,
pub display_aspect_ratio: Option<String>,
pub filter_settings: Option<Mpeg2FilterSettings>,
pub fixed_afd: Option<String>,
pub framerate_denominator: i64,
pub framerate_numerator: i64,
pub gop_closed_cadence: Option<i64>,
pub gop_num_b_frames: Option<i64>,
pub gop_size: Option<f64>,
pub gop_size_units: Option<String>,
pub scan_type: Option<String>,
pub subgop_length: Option<String>,
pub timecode_insertion: Option<String>,
}
Expand description
Mpeg2 Settings
Fields
adaptive_quantization: Option<String>
Choose Off to disable adaptive quantization. Or choose another value to enable the quantizer and set its strength. The strengths are: Auto, Off, Low, Medium, High. When you enable this field, MediaLive allows intra-frame quantizers to vary, which might improve visual quality.
afd_signaling: Option<String>
Indicates the AFD values that MediaLive will write into the video encode. If you do not know what AFD signaling is, or if your downstream system has not given you guidance, choose AUTO. AUTO: MediaLive will try to preserve the input AFD value (in cases where multiple AFD values are valid). FIXED: MediaLive will use the value you specify in fixedAFD.
color_metadata: Option<String>
Specifies whether to include the color space metadata. The metadata describes the color space that applies to the video (the colorSpace field). We recommend that you insert the metadata.
color_space: Option<String>
Choose the type of color space conversion to apply to the output. For detailed information on setting up both the input and the output to obtain the desired color space in the output, see the section on "MediaLive Features - Video - color space" in the MediaLive User Guide. PASSTHROUGH: Keep the color space of the input content - do not convert it. AUTO:Convert all content that is SD to rec 601, and convert all content that is HD to rec 709.
display_aspect_ratio: Option<String>
Sets the pixel aspect ratio for the encode.
filter_settings: Option<Mpeg2FilterSettings>
Optionally specify a noise reduction filter, which can improve quality of compressed content. If you do not choose a filter, no filter will be applied. TEMPORAL: This filter is useful for both source content that is noisy (when it has excessive digital artifacts) and source content that is clean. When the content is noisy, the filter cleans up the source content before the encoding phase, with these two effects: First, it improves the output video quality because the content has been cleaned up. Secondly, it decreases the bandwidth because MediaLive does not waste bits on encoding noise. When the content is reasonably clean, the filter tends to decrease the bitrate.
fixed_afd: Option<String>
Complete this field only when afdSignaling is set to FIXED. Enter the AFD value (4 bits) to write on all frames of the video encode.
framerate_denominator: i64
description": "The framerate denominator. For example, 1001. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS.
framerate_numerator: i64
The framerate numerator. For example, 24000. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS.
gop_closed_cadence: Option<i64>
MPEG2: default is open GOP.
gop_num_b_frames: Option<i64>
Relates to the GOP structure. The number of B-frames between reference frames. If you do not know what a B-frame is, use the default.
gop_size: Option<f64>
Relates to the GOP structure. The GOP size (keyframe interval) in the units specified in gopSizeUnits. If you do not know what GOP is, use the default. If gopSizeUnits is frames, then the gopSize must be an integer and must be greater than or equal to 1. If gopSizeUnits is seconds, the gopSize must be greater than 0, but does not need to be an integer.
gop_size_units: Option<String>
Relates to the GOP structure. Specifies whether the gopSize is specified in frames or seconds. If you do not plan to change the default gopSize, leave the default. If you specify SECONDS, MediaLive will internally convert the gop size to a frame count.
scan_type: Option<String>
Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).
subgop_length: Option<String>
Relates to the GOP structure. If you do not know what GOP is, use the default. FIXED: Set the number of B-frames in each sub-GOP to the value in gopNumBFrames. DYNAMIC: Let MediaLive optimize the number of B-frames in each sub-GOP, to improve visual quality.
timecode_insertion: Option<String>
Determines how MediaLive inserts timecodes in the output video. For detailed information about setting up the input and the output for a timecode, see the section on "MediaLive Features - Timecode configuration" in the MediaLive User Guide. DISABLED: do not include timecodes. GOP_TIMECODE: Include timecode metadata in the GOP header.
Trait Implementations
sourceimpl Clone for Mpeg2Settings
impl Clone for Mpeg2Settings
sourcefn clone(&self) -> Mpeg2Settings
fn clone(&self) -> Mpeg2Settings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Mpeg2Settings
impl Debug for Mpeg2Settings
sourceimpl Default for Mpeg2Settings
impl Default for Mpeg2Settings
sourcefn default() -> Mpeg2Settings
fn default() -> Mpeg2Settings
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Mpeg2Settings
impl<'de> Deserialize<'de> for Mpeg2Settings
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<Mpeg2Settings> for Mpeg2Settings
impl PartialEq<Mpeg2Settings> for Mpeg2Settings
sourcefn eq(&self, other: &Mpeg2Settings) -> bool
fn eq(&self, other: &Mpeg2Settings) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Mpeg2Settings) -> bool
fn ne(&self, other: &Mpeg2Settings) -> bool
This method tests for !=
.
sourceimpl Serialize for Mpeg2Settings
impl Serialize for Mpeg2Settings
impl StructuralPartialEq for Mpeg2Settings
Auto Trait Implementations
impl RefUnwindSafe for Mpeg2Settings
impl Send for Mpeg2Settings
impl Sync for Mpeg2Settings
impl Unpin for Mpeg2Settings
impl UnwindSafe for Mpeg2Settings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more