Class Mpeg2Settings
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Mpeg2Settings.Builder,
Mpeg2Settings>
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionChoose Off to disable adaptive quantization.final String
Choose Off to disable adaptive quantization.final AfdSignaling
Indicates the AFD values that MediaLive will write into the video encode.final String
Indicates the AFD values that MediaLive will write into the video encode.static Mpeg2Settings.Builder
builder()
final Mpeg2ColorMetadata
Specifies whether to include the color space metadata.final String
Specifies whether to include the color space metadata.final Mpeg2ColorSpace
Choose the type of color space conversion to apply to the output.final String
Choose the type of color space conversion to apply to the output.final Mpeg2DisplayRatio
Sets the pixel aspect ratio for the encode.final String
Sets the pixel aspect ratio for the encode.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Mpeg2FilterSettings
Optionally specify a noise reduction filter, which can improve quality of compressed content.final FixedAfd
fixedAfd()
Complete this field only when afdSignaling is set to FIXED.final String
Complete this field only when afdSignaling is set to FIXED.final Integer
description": "The framerate denominator.final Integer
The framerate numerator.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final Integer
MPEG2: default is open GOP.final Integer
Relates to the GOP structure.final Double
gopSize()
Relates to the GOP structure.final Mpeg2GopSizeUnits
Relates to the GOP structure.final String
Relates to the GOP structure.final int
hashCode()
final Mpeg2ScanType
scanType()
Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).final String
Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).static Class
<? extends Mpeg2Settings.Builder> final Mpeg2SubGopLength
Relates to the GOP structure.final String
Relates to the GOP structure.final TimecodeBurninSettings
Timecode burn-in settingsDetermines how MediaLive inserts timecodes in the output video.final String
Determines how MediaLive inserts timecodes in the output video.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
adaptiveQuantization
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.If the service returns an enum value that is not available in the current SDK version,
adaptiveQuantization
will returnMpeg2AdaptiveQuantization.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromadaptiveQuantizationAsString()
.- Returns:
- 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.
- See Also:
-
adaptiveQuantizationAsString
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.If the service returns an enum value that is not available in the current SDK version,
adaptiveQuantization
will returnMpeg2AdaptiveQuantization.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromadaptiveQuantizationAsString()
.- Returns:
- 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.
- See Also:
-
afdSignaling
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.If the service returns an enum value that is not available in the current SDK version,
afdSignaling
will returnAfdSignaling.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromafdSignalingAsString()
.- Returns:
- 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.
- See Also:
-
afdSignalingAsString
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.If the service returns an enum value that is not available in the current SDK version,
afdSignaling
will returnAfdSignaling.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromafdSignalingAsString()
.- Returns:
- 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.
- See Also:
-
colorMetadata
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.If the service returns an enum value that is not available in the current SDK version,
colorMetadata
will returnMpeg2ColorMetadata.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcolorMetadataAsString()
.- Returns:
- 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.
- See Also:
-
colorMetadataAsString
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.If the service returns an enum value that is not available in the current SDK version,
colorMetadata
will returnMpeg2ColorMetadata.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcolorMetadataAsString()
.- Returns:
- 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.
- See Also:
-
colorSpace
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.If the service returns an enum value that is not available in the current SDK version,
colorSpace
will returnMpeg2ColorSpace.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcolorSpaceAsString()
.- Returns:
- 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.
- See Also:
-
colorSpaceAsString
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.If the service returns an enum value that is not available in the current SDK version,
colorSpace
will returnMpeg2ColorSpace.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcolorSpaceAsString()
.- Returns:
- 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.
- See Also:
-
displayAspectRatio
Sets the pixel aspect ratio for the encode.If the service returns an enum value that is not available in the current SDK version,
displayAspectRatio
will returnMpeg2DisplayRatio.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromdisplayAspectRatioAsString()
.- Returns:
- Sets the pixel aspect ratio for the encode.
- See Also:
-
displayAspectRatioAsString
Sets the pixel aspect ratio for the encode.If the service returns an enum value that is not available in the current SDK version,
displayAspectRatio
will returnMpeg2DisplayRatio.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromdisplayAspectRatioAsString()
.- Returns:
- Sets the pixel aspect ratio for the encode.
- See Also:
-
filterSettings
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.- Returns:
- 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.
-
fixedAfd
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.If the service returns an enum value that is not available in the current SDK version,
fixedAfd
will returnFixedAfd.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromfixedAfdAsString()
.- Returns:
- 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.
- See Also:
-
fixedAfdAsString
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.If the service returns an enum value that is not available in the current SDK version,
fixedAfd
will returnFixedAfd.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromfixedAfdAsString()
.- Returns:
- 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.
- See Also:
-
framerateDenominator
description": "The framerate denominator. For example, 1001. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS.- Returns:
- description": "The framerate denominator. For example, 1001. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS.
-
framerateNumerator
The framerate numerator. For example, 24000. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS.- Returns:
- The framerate numerator. For example, 24000. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS.
-
gopClosedCadence
MPEG2: default is open GOP.- Returns:
- MPEG2: default is open GOP.
-
gopNumBFrames
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.- Returns:
- 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.
-
gopSize
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.- Returns:
- 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.
-
gopSizeUnits
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.If the service returns an enum value that is not available in the current SDK version,
gopSizeUnits
will returnMpeg2GopSizeUnits.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromgopSizeUnitsAsString()
.- Returns:
- 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.
- See Also:
-
gopSizeUnitsAsString
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.If the service returns an enum value that is not available in the current SDK version,
gopSizeUnits
will returnMpeg2GopSizeUnits.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromgopSizeUnitsAsString()
.- Returns:
- 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.
- See Also:
-
scanType
Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).If the service returns an enum value that is not available in the current SDK version,
scanType
will returnMpeg2ScanType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromscanTypeAsString()
.- Returns:
- Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).
- See Also:
-
scanTypeAsString
Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).If the service returns an enum value that is not available in the current SDK version,
scanType
will returnMpeg2ScanType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromscanTypeAsString()
.- Returns:
- Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).
- See Also:
-
subgopLength
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.If the service returns an enum value that is not available in the current SDK version,
subgopLength
will returnMpeg2SubGopLength.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromsubgopLengthAsString()
.- Returns:
- 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.
- See Also:
-
subgopLengthAsString
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.If the service returns an enum value that is not available in the current SDK version,
subgopLength
will returnMpeg2SubGopLength.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromsubgopLengthAsString()
.- Returns:
- 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.
- See Also:
-
timecodeInsertion
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.If the service returns an enum value that is not available in the current SDK version,
timecodeInsertion
will returnMpeg2TimecodeInsertionBehavior.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtimecodeInsertionAsString()
.- Returns:
- 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.
- See Also:
-
timecodeInsertionAsString
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.If the service returns an enum value that is not available in the current SDK version,
timecodeInsertion
will returnMpeg2TimecodeInsertionBehavior.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtimecodeInsertionAsString()
.- Returns:
- 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.
- See Also:
-
timecodeBurninSettings
Timecode burn-in settings- Returns:
- Timecode burn-in settings
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Mpeg2Settings.Builder,
Mpeg2Settings> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-