Mpeg2Settings
public struct Mpeg2Settings : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
Adaptive quantization. Allows intra-frame quantizers to vary to improve visual quality.
Declaration
Swift
public let adaptiveQuantization: Mpeg2AdaptiveQuantization?
-
Specify the average bitrate in bits per second. Required for VBR and CBR. For MS Smooth outputs, bitrates must be unique when rounded down to the nearest multiple of 1000.
Declaration
Swift
public let bitrate: Int?
-
Use Level (Mpeg2CodecLevel) to set the MPEG-2 level for the video output.
Declaration
Swift
public let codecLevel: Mpeg2CodecLevel?
-
Use Profile (Mpeg2CodecProfile) to set the MPEG-2 profile for the video output.
Declaration
Swift
public let codecProfile: Mpeg2CodecProfile?
-
Choose Adaptive to improve subjective video quality for high-motion content. This will cause the service to use fewer B-frames (which infer information based on other frames) for high-motion portions of the video and more B-frames for low-motion portions. The maximum number of B-frames is limited by the value you provide for the setting B frames between reference frames (numberBFramesBetweenReferenceFrames).
Declaration
Swift
public let dynamicSubGop: Mpeg2DynamicSubGop?
-
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. If you are creating your transcoding job specification as a JSON file without the console, use FramerateControl to specify which value the service uses for the frame rate for this output. Choose INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the input. Choose SPECIFIED if you want the service to use the frame rate you specify in the settings FramerateNumerator and FramerateDenominator.
Declaration
Swift
public let framerateControl: Mpeg2FramerateControl?
-
Optional. Specify how the transcoder performs framerate conversion. The default behavior is to use duplicate drop conversion.
Declaration
Swift
public let framerateConversionAlgorithm: Mpeg2FramerateConversionAlgorithm?
-
Frame rate denominator.
Declaration
Swift
public let framerateDenominator: Int?
-
Frame rate numerator - frame rate is a fraction, e.g. 24000 / 1001 = 23.976 fps.
Declaration
Swift
public let framerateNumerator: Int?
-
Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting.
Declaration
Swift
public let gopClosedCadence: Int?
-
GOP Length (keyframe interval) in frames or seconds. Must be greater than zero.
Declaration
Swift
public let gopSize: Double?
-
Indicates if the GOP Size in MPEG2 is specified in frames or seconds. If seconds the system will convert the GOP Size into a frame count at run time.
Declaration
Swift
public let gopSizeUnits: Mpeg2GopSizeUnits?
-
Percentage of the buffer that should initially be filled (HRD buffer model).
Declaration
Swift
public let hrdBufferInitialFillPercentage: Int?
-
Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000.
Declaration
Swift
public let hrdBufferSize: Int?
-
Use Interlace mode (InterlaceMode) to choose the scan line type for the output. * Top Field First (TOP_FIELD) and Bottom Field First (BOTTOM_FIELD) produce interlaced output with the entire output having the same field polarity (top or bottom first). * Follow, Default Top (FOLLOW_TOP_FIELD) and Follow, Default Bottom (FOLLOW_BOTTOM_FIELD) use the same field polarity as the source. Therefore, behavior depends on the input scan type.
- If the source is interlaced, the output will be interlaced with the same polarity as the source (it will follow the source). The output could therefore be a mix of “top field first” and “bottom field first”.
- If the source is progressive, the output will be interlaced with “top field first” or “bottom field first” polarity, depending on which of the Follow options you chose.
Declaration
Swift
public let interlaceMode: Mpeg2InterlaceMode?
-
Use Intra DC precision (Mpeg2IntraDcPrecision) to set quantization precision for intra-block DC coefficients. If you choose the value auto, the service will automatically select the precision based on the per-frame compression ratio.
Declaration
Swift
public let intraDcPrecision: Mpeg2IntraDcPrecision?
-
Maximum bitrate in bits/second. For example, enter five megabits per second as 5000000.
Declaration
Swift
public let maxBitrate: Int?
-
Enforces separation between repeated (cadence) I-frames and I-frames inserted by Scene Change Detection. If a scene change I-frame is within I-interval frames of a cadence I-frame, the GOP is shrunk and/or stretched to the scene change I-frame. GOP stretch requires enabling lookahead as well as setting I-interval. The normal cadence resumes for the next GOP. This setting is only used when Scene Change Detect is enabled. Note: Maximum GOP stretch = GOP size + Min-I-interval - 1
Declaration
Swift
public let minIInterval: Int?
-
Number of B-frames between reference frames.
Declaration
Swift
public let numberBFramesBetweenReferenceFrames: Int?
-
Optional. Specify how the service determines the pixel aspect ratio (PAR) for this output. The default behavior, Follow source (INITIALIZE_FROM_SOURCE), uses the PAR from your input video for your output. To specify a different PAR in the console, choose any value other than Follow source. To specify a different PAR by editing the JSON job specification, choose SPECIFIED. When you choose SPECIFIED for this setting, you must also specify values for the parNumerator and parDenominator settings.
Declaration
Swift
public let parControl: Mpeg2ParControl?
-
Required when you set Pixel aspect ratio (parControl) 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.
Declaration
Swift
public let parDenominator: Int?
-
Required when you set Pixel aspect ratio (parControl) 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.
Declaration
Swift
public let parNumerator: Int?
-
Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, single-pass encoding.
Declaration
Swift
public let qualityTuningLevel: Mpeg2QualityTuningLevel?
-
Use Rate control mode (Mpeg2RateControlMode) to specifiy whether the bitrate is variable (vbr) or constant (cbr).
Declaration
Swift
public let rateControlMode: Mpeg2RateControlMode?
-
Enable this setting to insert I-frames at scene changes that the service automatically detects. This improves video quality and is enabled by default.
Declaration
Swift
public let sceneChangeDetect: Mpeg2SceneChangeDetect?
-
Enables Slow PAL rate conversion. 23.976fps and 24fps input is relabeled as 25fps, and audio is sped up correspondingly.
Declaration
Swift
public let slowPal: Mpeg2SlowPal?
-
Softness. Selects quantizer matrix, larger values reduce high-frequency content in the encoded image.
Declaration
Swift
public let softness: Int?
-
Adjust quantization within each frame based on spatial variation of content complexity.
Declaration
Swift
public let spatialAdaptiveQuantization: Mpeg2SpatialAdaptiveQuantization?
-
Produces a Type D-10 compatible bitstream (SMPTE 356M-2001).
Declaration
Swift
public let syntax: Mpeg2Syntax?
-
Only use Telecine (Mpeg2Telecine) when you set Framerate (Framerate) to 29.970. Set Telecine (Mpeg2Telecine) to Hard (hard) to produce a 29.97i output from a 23.976 input. Set it to Soft (soft) to produce 23.976 output and leave converstion to the player.
Declaration
Swift
public let telecine: Mpeg2Telecine?
-
Adjust quantization within each frame based on temporal variation of content complexity.
Declaration
Swift
public let temporalAdaptiveQuantization: Mpeg2TemporalAdaptiveQuantization?
-
init(adaptiveQuantization:bitrate:codecLevel:codecProfile:dynamicSubGop:framerateControl:framerateConversionAlgorithm:framerateDenominator:framerateNumerator:gopClosedCadence:gopSize:gopSizeUnits:hrdBufferInitialFillPercentage:hrdBufferSize:interlaceMode:intraDcPrecision:maxBitrate:minIInterval:numberBFramesBetweenReferenceFrames:parControl:parDenominator:parNumerator:qualityTuningLevel:rateControlMode:sceneChangeDetect:slowPal:softness:spatialAdaptiveQuantization:syntax:telecine:temporalAdaptiveQuantization:)
Undocumented
Declaration
Swift
public init(adaptiveQuantization: Mpeg2AdaptiveQuantization? = nil, bitrate: Int? = nil, codecLevel: Mpeg2CodecLevel? = nil, codecProfile: Mpeg2CodecProfile? = nil, dynamicSubGop: Mpeg2DynamicSubGop? = nil, framerateControl: Mpeg2FramerateControl? = nil, framerateConversionAlgorithm: Mpeg2FramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, gopClosedCadence: Int? = nil, gopSize: Double? = nil, gopSizeUnits: Mpeg2GopSizeUnits? = nil, hrdBufferInitialFillPercentage: Int? = nil, hrdBufferSize: Int? = nil, interlaceMode: Mpeg2InterlaceMode? = nil, intraDcPrecision: Mpeg2IntraDcPrecision? = nil, maxBitrate: Int? = nil, minIInterval: Int? = nil, numberBFramesBetweenReferenceFrames: Int? = nil, parControl: Mpeg2ParControl? = nil, parDenominator: Int? = nil, parNumerator: Int? = nil, qualityTuningLevel: Mpeg2QualityTuningLevel? = nil, rateControlMode: Mpeg2RateControlMode? = nil, sceneChangeDetect: Mpeg2SceneChangeDetect? = nil, slowPal: Mpeg2SlowPal? = nil, softness: Int? = nil, spatialAdaptiveQuantization: Mpeg2SpatialAdaptiveQuantization? = nil, syntax: Mpeg2Syntax? = nil, telecine: Mpeg2Telecine? = nil, temporalAdaptiveQuantization: Mpeg2TemporalAdaptiveQuantization? = nil)
-
Declaration
Swift
public func validate(name: String) throws