Class CfnChannel.Mpeg2SettingsProperty
The settings for the MPEG-2 codec in the output.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.MediaLive
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Mpeg2SettingsProperty : Object, CfnChannel.IMpeg2SettingsProperty
Syntax (vb)
Public Class Mpeg2SettingsProperty
Inherits Object
Implements CfnChannel.IMpeg2SettingsProperty
Remarks
The parent of this entity is VideoCodecSetting.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive;
var mpeg2SettingsProperty = new Mpeg2SettingsProperty {
AdaptiveQuantization = "adaptiveQuantization",
AfdSignaling = "afdSignaling",
ColorMetadata = "colorMetadata",
ColorSpace = "colorSpace",
DisplayAspectRatio = "displayAspectRatio",
FilterSettings = new Mpeg2FilterSettingsProperty {
TemporalFilterSettings = new TemporalFilterSettingsProperty {
PostFilterSharpening = "postFilterSharpening",
Strength = "strength"
}
},
FixedAfd = "fixedAfd",
FramerateDenominator = 123,
FramerateNumerator = 123,
GopClosedCadence = 123,
GopNumBFrames = 123,
GopSize = 123,
GopSizeUnits = "gopSizeUnits",
ScanType = "scanType",
SubgopLength = "subgopLength",
TimecodeBurninSettings = new TimecodeBurninSettingsProperty {
FontSize = "fontSize",
Position = "position",
Prefix = "prefix"
},
TimecodeInsertion = "timecodeInsertion"
};
Synopsis
Constructors
Mpeg2SettingsProperty() |
Properties
AdaptiveQuantization | Choose Off to disable adaptive quantization. |
AfdSignaling | Indicates the AFD values that MediaLive will write into the video encode. |
ColorMetadata | Specifies whether to include the color space metadata. |
ColorSpace | Choose the type of color space conversion to apply to the output. |
DisplayAspectRatio | Sets the pixel aspect ratio for the encode. |
FilterSettings | Optionally specify a noise reduction filter, which can improve quality of compressed content. |
FixedAfd | Complete this field only when afdSignaling is set to FIXED. |
FramerateDenominator | description": "The framerate denominator. |
FramerateNumerator | The framerate numerator. |
GopClosedCadence | MPEG2: default is open GOP. |
GopNumBFrames | Relates to the GOP structure. |
GopSize | Relates to the GOP structure. |
GopSizeUnits | Relates to the GOP structure. |
ScanType | Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first). |
SubgopLength | Relates to the GOP structure. |
TimecodeBurninSettings | |
TimecodeInsertion | Determines how MediaLive inserts timecodes in the output video. |
Constructors
Mpeg2SettingsProperty()
public Mpeg2SettingsProperty()
Properties
AdaptiveQuantization
Choose Off to disable adaptive quantization.
public string AdaptiveQuantization { get; set; }
Property Value
System.String
Remarks
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.
AfdSignaling
Indicates the AFD values that MediaLive will write into the video encode.
public string AfdSignaling { get; set; }
Property Value
System.String
Remarks
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.
ColorMetadata
Specifies whether to include the color space metadata.
public string ColorMetadata { get; set; }
Property Value
System.String
Remarks
The metadata describes the color space that applies to the video (the colorSpace field). We recommend that you insert the metadata.
ColorSpace
Choose the type of color space conversion to apply to the output.
public string ColorSpace { get; set; }
Property Value
System.String
Remarks
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.
DisplayAspectRatio
Sets the pixel aspect ratio for the encode.
public string DisplayAspectRatio { get; set; }
Property Value
System.String
Remarks
FilterSettings
Optionally specify a noise reduction filter, which can improve quality of compressed content.
public object FilterSettings { get; set; }
Property Value
System.Object
Remarks
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.
public string FixedAfd { get; set; }
Property Value
System.String
Remarks
Enter the AFD value (4 bits) to write on all frames of the video encode.
FramerateDenominator
description": "The framerate denominator.
public Nullable<double> FramerateDenominator { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
For example, 1001. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS.
FramerateNumerator
The framerate numerator.
public Nullable<double> FramerateNumerator { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
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.
public Nullable<double> GopClosedCadence { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
GopNumBFrames
Relates to the GOP structure.
public Nullable<double> GopNumBFrames { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
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.
public Nullable<double> GopSize { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
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.
public string GopSizeUnits { get; set; }
Property Value
System.String
Remarks
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.
ScanType
Set the scan type of the output to PROGRESSIVE or INTERLACED (top field first).
public string ScanType { get; set; }
Property Value
System.String
Remarks
SubgopLength
Relates to the GOP structure.
public string SubgopLength { get; set; }
Property Value
System.String
Remarks
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.
TimecodeBurninSettings
public object TimecodeBurninSettings { get; set; }
Property Value
System.Object
Remarks
TimecodeInsertion
Determines how MediaLive inserts timecodes in the output video.
public string TimecodeInsertion { get; set; }
Property Value
System.String
Remarks
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.