@Stability(value=Stable)
public static interface CfnChannel.Mpeg2SettingsProperty
extends software.amazon.jsii.JsiiSerializable
The parent of this entity is VideoCodecSetting.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.medialive.*;
Mpeg2SettingsProperty mpeg2SettingsProperty = Mpeg2SettingsProperty.builder()
.adaptiveQuantization("adaptiveQuantization")
.afdSignaling("afdSignaling")
.colorMetadata("colorMetadata")
.colorSpace("colorSpace")
.displayAspectRatio("displayAspectRatio")
.filterSettings(Mpeg2FilterSettingsProperty.builder()
.temporalFilterSettings(TemporalFilterSettingsProperty.builder()
.postFilterSharpening("postFilterSharpening")
.strength("strength")
.build())
.build())
.fixedAfd("fixedAfd")
.framerateDenominator(123)
.framerateNumerator(123)
.gopClosedCadence(123)
.gopNumBFrames(123)
.gopSize(123)
.gopSizeUnits("gopSizeUnits")
.scanType("scanType")
.subgopLength("subgopLength")
.timecodeInsertion("timecodeInsertion")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnChannel.Mpeg2SettingsProperty.Builder
A builder for
CfnChannel.Mpeg2SettingsProperty |
static class |
CfnChannel.Mpeg2SettingsProperty.Jsii$Proxy
An implementation for
CfnChannel.Mpeg2SettingsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnChannel.Mpeg2SettingsProperty.Builder |
builder() |
default String |
getAdaptiveQuantization()
Choose Off to disable adaptive quantization.
|
default String |
getAfdSignaling()
Indicates the AFD values that MediaLive will write into the video encode.
|
default String |
getColorMetadata()
Specifies whether to include the color space metadata.
|
default String |
getColorSpace()
Choose the type of color space conversion to apply to the output.
|
default String |
getDisplayAspectRatio()
Sets the pixel aspect ratio for the encode.
|
default Object |
getFilterSettings()
Optionally specify a noise reduction filter, which can improve quality of compressed content.
|
default String |
getFixedAfd()
Complete this field only when afdSignaling is set to FIXED.
|
default Number |
getFramerateDenominator()
description": "The framerate denominator.
|
default Number |
getFramerateNumerator()
The framerate numerator.
|
default Number |
getGopClosedCadence()
MPEG2: default is open GOP.
|
default Number |
getGopNumBFrames()
Relates to the GOP structure.
|
default Number |
getGopSize()
Relates to the GOP structure.
|
default String |
getGopSizeUnits()
Relates to the GOP structure.
|
default String |
getScanType()
Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).
|
default String |
getSubgopLength()
Relates to the GOP structure.
|
default String |
getTimecodeInsertion()
Determines how MediaLive inserts timecodes in the output video.
|
@Stability(value=Stable) @Nullable default String getAdaptiveQuantization()
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.
@Stability(value=Stable) @Nullable default String getAfdSignaling()
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.
@Stability(value=Stable) @Nullable default String getColorMetadata()
The metadata describes the color space that applies to the video (the colorSpace field). We recommend that you insert the metadata.
@Stability(value=Stable) @Nullable default String getColorSpace()
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.
@Stability(value=Stable) @Nullable default String getDisplayAspectRatio()
@Stability(value=Stable) @Nullable default Object getFilterSettings()
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.
@Stability(value=Stable) @Nullable default String getFixedAfd()
Enter the AFD value (4 bits) to write on all frames of the video encode.
@Stability(value=Stable) @Nullable default Number getFramerateDenominator()
For example, 1001. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS.
@Stability(value=Stable) @Nullable default Number getFramerateNumerator()
For example, 24000. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS.
@Stability(value=Stable) @Nullable default Number getGopClosedCadence()
@Stability(value=Stable) @Nullable default Number getGopNumBFrames()
The number of B-frames between reference frames. If you do not know what a B-frame is, use the default.
@Stability(value=Stable) @Nullable default Number getGopSize()
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.
@Stability(value=Stable) @Nullable default String getGopSizeUnits()
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.
@Stability(value=Stable) @Nullable default String getScanType()
@Stability(value=Stable) @Nullable default String getSubgopLength()
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.
@Stability(value=Stable) @Nullable default String getTimecodeInsertion()
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.
@Stability(value=Stable) static CfnChannel.Mpeg2SettingsProperty.Builder builder()
Copyright © 2022. All rights reserved.