blib/lib/Paws/MediaLive/H264Settings.pm untested

filter: Statementstmt 0.0% 0 / 85 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 86 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::MediaLive::H264Settings;
3 use Moose;
4 has AdaptiveQuantization => (is => 'ro', isa => 'Str', request_name => 'adaptiveQuantization', traits => ['NameInRequest']);
5 has AfdSignaling => (is => 'ro', isa => 'Str', request_name => 'afdSignaling', traits => ['NameInRequest']);
6 has Bitrate => (is => 'ro', isa => 'Int', request_name => 'bitrate', traits => ['NameInRequest']);
7 has BufFillPct => (is => 'ro', isa => 'Int', request_name => 'bufFillPct', traits => ['NameInRequest']);
8 has BufSize => (is => 'ro', isa => 'Int', request_name => 'bufSize', traits => ['NameInRequest']);
9 has ColorMetadata => (is => 'ro', isa => 'Str', request_name => 'colorMetadata', traits => ['NameInRequest']);
10 has ColorSpaceSettings => (is => 'ro', isa => 'Paws::MediaLive::H264ColorSpaceSettings', request_name => 'colorSpaceSettings', traits => ['NameInRequest']);
11 has EntropyEncoding => (is => 'ro', isa => 'Str', request_name => 'entropyEncoding', traits => ['NameInRequest']);
12 has FilterSettings => (is => 'ro', isa => 'Paws::MediaLive::H264FilterSettings', request_name => 'filterSettings', traits => ['NameInRequest']);
13 has FixedAfd => (is => 'ro', isa => 'Str', request_name => 'fixedAfd', traits => ['NameInRequest']);
14 has FlickerAq => (is => 'ro', isa => 'Str', request_name => 'flickerAq', traits => ['NameInRequest']);
15 has ForceFieldPictures => (is => 'ro', isa => 'Str', request_name => 'forceFieldPictures', traits => ['NameInRequest']);
16 has FramerateControl => (is => 'ro', isa => 'Str', request_name => 'framerateControl', traits => ['NameInRequest']);
17 has FramerateDenominator => (is => 'ro', isa => 'Int', request_name => 'framerateDenominator', traits => ['NameInRequest']);
18 has FramerateNumerator => (is => 'ro', isa => 'Int', request_name => 'framerateNumerator', traits => ['NameInRequest']);
19 has GopBReference => (is => 'ro', isa => 'Str', request_name => 'gopBReference', traits => ['NameInRequest']);
20 has GopClosedCadence => (is => 'ro', isa => 'Int', request_name => 'gopClosedCadence', traits => ['NameInRequest']);
21 has GopNumBFrames => (is => 'ro', isa => 'Int', request_name => 'gopNumBFrames', traits => ['NameInRequest']);
22 has GopSize => (is => 'ro', isa => 'Num', request_name => 'gopSize', traits => ['NameInRequest']);
23 has GopSizeUnits => (is => 'ro', isa => 'Str', request_name => 'gopSizeUnits', traits => ['NameInRequest']);
24 has Level => (is => 'ro', isa => 'Str', request_name => 'level', traits => ['NameInRequest']);
25 has LookAheadRateControl => (is => 'ro', isa => 'Str', request_name => 'lookAheadRateControl', traits => ['NameInRequest']);
26 has MaxBitrate => (is => 'ro', isa => 'Int', request_name => 'maxBitrate', traits => ['NameInRequest']);
27 has MinIInterval => (is => 'ro', isa => 'Int', request_name => 'minIInterval', traits => ['NameInRequest']);
28 has NumRefFrames => (is => 'ro', isa => 'Int', request_name => 'numRefFrames', traits => ['NameInRequest']);
29 has ParControl => (is => 'ro', isa => 'Str', request_name => 'parControl', traits => ['NameInRequest']);
30 has ParDenominator => (is => 'ro', isa => 'Int', request_name => 'parDenominator', traits => ['NameInRequest']);
31 has ParNumerator => (is => 'ro', isa => 'Int', request_name => 'parNumerator', traits => ['NameInRequest']);
32 has Profile => (is => 'ro', isa => 'Str', request_name => 'profile', traits => ['NameInRequest']);
33 has QualityLevel => (is => 'ro', isa => 'Str', request_name => 'qualityLevel', traits => ['NameInRequest']);
34 has QvbrQualityLevel => (is => 'ro', isa => 'Int', request_name => 'qvbrQualityLevel', traits => ['NameInRequest']);
35 has RateControlMode => (is => 'ro', isa => 'Str', request_name => 'rateControlMode', traits => ['NameInRequest']);
36 has ScanType => (is => 'ro', isa => 'Str', request_name => 'scanType', traits => ['NameInRequest']);
37 has SceneChangeDetect => (is => 'ro', isa => 'Str', request_name => 'sceneChangeDetect', traits => ['NameInRequest']);
38 has Slices => (is => 'ro', isa => 'Int', request_name => 'slices', traits => ['NameInRequest']);
39 has Softness => (is => 'ro', isa => 'Int', request_name => 'softness', traits => ['NameInRequest']);
40 has SpatialAq => (is => 'ro', isa => 'Str', request_name => 'spatialAq', traits => ['NameInRequest']);
41 has SubgopLength => (is => 'ro', isa => 'Str', request_name => 'subgopLength', traits => ['NameInRequest']);
42 has Syntax => (is => 'ro', isa => 'Str', request_name => 'syntax', traits => ['NameInRequest']);
43 has TemporalAq => (is => 'ro', isa => 'Str', request_name => 'temporalAq', traits => ['NameInRequest']);
44 has TimecodeInsertion => (is => 'ro', isa => 'Str', request_name => 'timecodeInsertion', traits => ['NameInRequest']);
45  
46 1;
47  
48 ### main pod documentation begin ###
49  
50 =head1 NAME
51  
52 Paws::MediaLive::H264Settings
53  
54 =head1 USAGE
55  
56 This class represents one of two things:
57  
58 =head3 Arguments in a call to a service
59  
60 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
61 Each attribute should be used as a named argument in the calls that expect this type of object.
62  
63 As an example, if Att1 is expected to be a Paws::MediaLive::H264Settings object:
64  
65 $service_obj->Method(Att1 => { AdaptiveQuantization => $value, ..., TimecodeInsertion => $value });
66  
67 =head3 Results returned from an API call
68  
69 Use accessors for each attribute. If Att1 is expected to be an Paws::MediaLive::H264Settings object:
70  
71 $result = $service_obj->Method(...);
72 $result->Att1->AdaptiveQuantization
73  
74 =head1 DESCRIPTION
75  
76 H264 Settings
77  
78 =head1 ATTRIBUTES
79  
80  
81 =head2 AdaptiveQuantization => Str
82  
83 Enables or disables adaptive quantization, which is a technique
84 MediaLive can apply to video on a frame-by-frame basis to produce more
85 compression without losing quality. There are three types of adaptive
86 quantization: flicker, spatial, and temporal. Set the field in one of
87 these ways: Set to Auto. Recommended. For each type of AQ, MediaLive
88 will determine if AQ is needed, and if so, the appropriate strength.
89 Set a strength (a value other than Auto or Disable). This strength will
90 apply to any of the AQ fields that you choose to enable. Set to
91 Disabled to disable all types of adaptive quantization.
92  
93  
94 =head2 AfdSignaling => Str
95  
96 Indicates that AFD values will be written into the output stream. If
97 afdSignaling is "auto", the system will try to preserve the input AFD
98 value (in cases where multiple AFD values are valid). If set to
99 "fixed", the AFD value will be the value configured in the fixedAfd
100 parameter.
101  
102  
103 =head2 Bitrate => Int
104  
105 Average bitrate in bits/second. Required when the rate control mode is
106 VBR or CBR. Not used for QVBR. In an MS Smooth output group, each
107 output must have a unique value when its bitrate is rounded down to the
108 nearest multiple of 1000.
109  
110  
111 =head2 BufFillPct => Int
112  
113 Percentage of the buffer that should initially be filled (HRD buffer
114 model).
115  
116  
117 =head2 BufSize => Int
118  
119 Size of buffer (HRD buffer model) in bits.
120  
121  
122 =head2 ColorMetadata => Str
123  
124 Includes colorspace metadata in the output.
125  
126  
127 =head2 ColorSpaceSettings => L<Paws::MediaLive::H264ColorSpaceSettings>
128  
129 Color Space settings
130  
131  
132 =head2 EntropyEncoding => Str
133  
134 Entropy encoding mode. Use cabac (must be in Main or High profile) or
135 cavlc.
136  
137  
138 =head2 FilterSettings => L<Paws::MediaLive::H264FilterSettings>
139  
140 Optional filters that you can apply to an encode.
141  
142  
143 =head2 FixedAfd => Str
144  
145 Four bit AFD value to write on all frames of video in the output
146 stream. Only valid when afdSignaling is set to 'Fixed'.
147  
148  
149 =head2 FlickerAq => Str
150  
151 Flicker AQ makes adjustments within each frame to reduce flicker or
152 'pop' on I-frames. The value to enter in this field depends on the
153 value in the Adaptive quantization field: If you have set the Adaptive
154 quantization field to Auto, MediaLive ignores any value in this field.
155 MediaLive will determine if flicker AQ is appropriate and will apply
156 the appropriate strength. If you have set the Adaptive quantization
157 field to a strength, you can set this field to Enabled or Disabled.
158 Enabled: MediaLive will apply flicker AQ using the specified strength.
159 Disabled: MediaLive won't apply flicker AQ. If you have set the
160 Adaptive quantization to Disabled, MediaLive ignores any value in this
161 field and doesn't apply flicker AQ.
162  
163  
164 =head2 ForceFieldPictures => Str
165  
166 This setting applies only when scan type is "interlaced." It controls
167 whether coding is performed on a field basis or on a frame basis. (When
168 the video is progressive, the coding is always performed on a frame
169 basis.) enabled: Force MediaLive to code on a field basis, so that odd
170 and even sets of fields are coded separately. disabled: Code the two
171 sets of fields separately (on a field basis) or together (on a frame
172 basis using PAFF), depending on what is most appropriate for the
173 content.
174  
175  
176 =head2 FramerateControl => Str
177  
178 This field indicates how the output video frame rate is specified. If
179 "specified" is selected then the output video frame rate is determined
180 by framerateNumerator and framerateDenominator, else if
181 "initializeFromSource" is selected then the output video frame rate
182 will be set equal to the input video frame rate of the first input.
183  
184  
185 =head2 FramerateDenominator => Int
186  
187 Framerate denominator.
188  
189  
190 =head2 FramerateNumerator => Int
191  
192 Framerate numerator - framerate is a fraction, e.g. 24000 / 1001 =
193 23.976 fps.
194  
195  
196 =head2 GopBReference => Str
197  
198 Documentation update needed
199  
200  
201 =head2 GopClosedCadence => Int
202  
203 Frequency of closed GOPs. In streaming applications, it is recommended
204 that this be set to 1 so a decoder joining mid-stream will receive an
205 IDR frame as quickly as possible. Setting this value to 0 will break
206 output segmenting.
207  
208  
209 =head2 GopNumBFrames => Int
210  
211 Number of B-frames between reference frames.
212  
213  
214 =head2 GopSize => Num
215  
216 GOP size (keyframe interval) in units of either frames or seconds per
217 gopSizeUnits. If gopSizeUnits is frames, gopSize must be an integer and
218 must be greater than or equal to 1. If gopSizeUnits is seconds, gopSize
219 must be greater than 0, but need not be an integer.
220  
221  
222 =head2 GopSizeUnits => Str
223  
224 Indicates if the gopSize is specified in frames or seconds. If seconds
225 the system will convert the gopSize into a frame count at run time.
226  
227  
228 =head2 Level => Str
229  
230 H.264 Level.
231  
232  
233 =head2 LookAheadRateControl => Str
234  
235 Amount of lookahead. A value of low can decrease latency and memory
236 usage, while high can produce better quality for certain content.
237  
238  
239 =head2 MaxBitrate => Int
240  
241 For QVBR: See the tooltip for Quality level For VBR: Set the maximum
242 bitrate in order to accommodate expected spikes in the complexity of
243 the video.
244  
245  
246 =head2 MinIInterval => Int
247  
248 Only meaningful if sceneChangeDetect is set to enabled. Defaults to 5
249 if multiplex rate control is used. Enforces separation between repeated
250 (cadence) I-frames and I-frames inserted by Scene Change Detection. If
251 a scene change I-frame is within I-interval frames of a cadence
252 I-frame, the GOP is shrunk and/or stretched to the scene change
253 I-frame. GOP stretch requires enabling lookahead as well as setting
254 I-interval. The normal cadence resumes for the next GOP. Note: Maximum
255 GOP stretch = GOP size + Min-I-interval - 1
256  
257  
258 =head2 NumRefFrames => Int
259  
260 Number of reference frames to use. The encoder may use more than
261 requested if using B-frames and/or interlaced encoding.
262  
263  
264 =head2 ParControl => Str
265  
266 This field indicates how the output pixel aspect ratio is specified. If
267 "specified" is selected then the output video pixel aspect ratio is
268 determined by parNumerator and parDenominator, else if
269 "initializeFromSource" is selected then the output pixsel aspect ratio
270 will be set equal to the input video pixel aspect ratio of the first
271 input.
272  
273  
274 =head2 ParDenominator => Int
275  
276 Pixel Aspect Ratio denominator.
277  
278  
279 =head2 ParNumerator => Int
280  
281 Pixel Aspect Ratio numerator.
282  
283  
284 =head2 Profile => Str
285  
286 H.264 Profile.
287  
288  
289 =head2 QualityLevel => Str
290  
291 Leave as STANDARD_QUALITY or choose a different value (which might
292 result in additional costs to run the channel). - ENHANCED_QUALITY:
293 Produces a slightly better video quality without an increase in the
294 bitrate. Has an effect only when the Rate control mode is QVBR or CBR.
295 If this channel is in a MediaLive multiplex, the value must be
296 ENHANCED_QUALITY. - STANDARD_QUALITY: Valid for any Rate control mode.
297  
298  
299 =head2 QvbrQualityLevel => Int
300  
301 Controls the target quality for the video encode. Applies only when the
302 rate control mode is QVBR. You can set a target quality or you can let
303 MediaLive determine the best quality. To set a target quality, enter
304 values in the QVBR quality level field and the Max bitrate field. Enter
305 values that suit your most important viewing devices. Recommended
306 values are: - Primary screen: Quality level: 8 to 10. Max bitrate: 4M -
307 PC or tablet: Quality level: 7. Max bitrate: 1.5M to 3M - Smartphone:
308 Quality level: 6. Max bitrate: 1M to 1.5M To let MediaLive decide,
309 leave the QVBR quality level field empty, and in Max bitrate enter the
310 maximum rate you want in the video. For more information, see the
311 section called "Video - rate control mode" in the MediaLive user guide
312  
313  
314 =head2 RateControlMode => Str
315  
316 Rate control mode. QVBR: Quality will match the specified quality level
317 except when it is constrained by the maximum bitrate. Recommended if
318 you or your viewers pay for bandwidth. VBR: Quality and bitrate vary,
319 depending on the video complexity. Recommended instead of QVBR if you
320 want to maintain a specific average bitrate over the duration of the
321 channel. CBR: Quality varies, depending on the video complexity.
322 Recommended only if you distribute your assets to devices that cannot
323 handle variable bitrates. Multiplex: This rate control mode is only
324 supported (and is required) when the video is being delivered to a
325 MediaLive Multiplex in which case the rate control configuration is
326 controlled by the properties within the Multiplex Program.
327  
328  
329 =head2 ScanType => Str
330  
331 Sets the scan type of the output to progressive or top-field-first
332 interlaced.
333  
334  
335 =head2 SceneChangeDetect => Str
336  
337 Scene change detection. - On: inserts I-frames when scene change is
338 detected. - Off: does not force an I-frame when scene change is
339 detected.
340  
341  
342 =head2 Slices => Int
343  
344 Number of slices per picture. Must be less than or equal to the number
345 of macroblock rows for progressive pictures, and less than or equal to
346 half the number of macroblock rows for interlaced pictures. This field
347 is optional; when no value is specified the encoder will choose the
348 number of slices based on encode resolution.
349  
350  
351 =head2 Softness => Int
352  
353 Softness. Selects quantizer matrix, larger values reduce high-frequency
354 content in the encoded image. If not set to zero, must be greater than
355 15.
356  
357  
358 =head2 SpatialAq => Str
359  
360 Spatial AQ makes adjustments within each frame based on spatial
361 variation of content complexity. The value to enter in this field
362 depends on the value in the Adaptive quantization field: If you have
363 set the Adaptive quantization field to Auto, MediaLive ignores any
364 value in this field. MediaLive will determine if spatial AQ is
365 appropriate and will apply the appropriate strength. If you have set
366 the Adaptive quantization field to a strength, you can set this field
367 to Enabled or Disabled. Enabled: MediaLive will apply spatial AQ using
368 the specified strength. Disabled: MediaLive won't apply spatial AQ. If
369 you have set the Adaptive quantization to Disabled, MediaLive ignores
370 any value in this field and doesn't apply spatial AQ.
371  
372  
373 =head2 SubgopLength => Str
374  
375 If set to fixed, use gopNumBFrames B-frames per sub-GOP. If set to
376 dynamic, optimize the number of B-frames used for each sub-GOP to
377 improve visual quality.
378  
379  
380 =head2 Syntax => Str
381  
382 Produces a bitstream compliant with SMPTE RP-2027.
383  
384  
385 =head2 TemporalAq => Str
386  
387 Temporal makes adjustments within each frame based on temporal
388 variation of content complexity. The value to enter in this field
389 depends on the value in the Adaptive quantization field: If you have
390 set the Adaptive quantization field to Auto, MediaLive ignores any
391 value in this field. MediaLive will determine if temporal AQ is
392 appropriate and will apply the appropriate strength. If you have set
393 the Adaptive quantization field to a strength, you can set this field
394 to Enabled or Disabled. Enabled: MediaLive will apply temporal AQ using
395 the specified strength. Disabled: MediaLive won't apply temporal AQ. If
396 you have set the Adaptive quantization to Disabled, MediaLive ignores
397 any value in this field and doesn't apply temporal AQ.
398  
399  
400 =head2 TimecodeInsertion => Str
401  
402 Determines how timecodes should be inserted into the video elementary
403 stream. - 'disabled': Do not include timecodes - 'picTimingSei': Pass
404 through picture timing SEI messages from the source specified in
405 Timecode Config
406  
407  
408  
409 =head1 SEE ALSO
410  
411 This class forms part of L<Paws>, describing an object used in L<Paws::MediaLive>
412  
413 =head1 BUGS and CONTRIBUTIONS
414  
415 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
416  
417 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
418  
419 =cut
420