File Coverage

blib/lib/Paws/ElasticTranscoder/JobOutput.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::ElasticTranscoder::JobOutput;
2 1     1   717 use Moose;
  1         5  
  1         10  
3             has AlbumArt => (is => 'ro', isa => 'Paws::ElasticTranscoder::JobAlbumArt');
4             has AppliedColorSpaceConversion => (is => 'ro', isa => 'Str');
5             has Captions => (is => 'ro', isa => 'Paws::ElasticTranscoder::Captions');
6             has Composition => (is => 'ro', isa => 'ArrayRef[Paws::ElasticTranscoder::Clip]');
7             has Duration => (is => 'ro', isa => 'Int');
8             has DurationMillis => (is => 'ro', isa => 'Int');
9             has Encryption => (is => 'ro', isa => 'Paws::ElasticTranscoder::Encryption');
10             has FileSize => (is => 'ro', isa => 'Int');
11             has FrameRate => (is => 'ro', isa => 'Str');
12             has Height => (is => 'ro', isa => 'Int');
13             has Id => (is => 'ro', isa => 'Str');
14             has Key => (is => 'ro', isa => 'Str');
15             has PresetId => (is => 'ro', isa => 'Str');
16             has Rotate => (is => 'ro', isa => 'Str');
17             has SegmentDuration => (is => 'ro', isa => 'Str');
18             has Status => (is => 'ro', isa => 'Str');
19             has StatusDetail => (is => 'ro', isa => 'Str');
20             has ThumbnailEncryption => (is => 'ro', isa => 'Paws::ElasticTranscoder::Encryption');
21             has ThumbnailPattern => (is => 'ro', isa => 'Str');
22             has Watermarks => (is => 'ro', isa => 'ArrayRef[Paws::ElasticTranscoder::JobWatermark]');
23             has Width => (is => 'ro', isa => 'Int');
24             1;
25              
26             ### main pod documentation begin ###
27              
28             =head1 NAME
29              
30             Paws::ElasticTranscoder::JobOutput
31              
32             =head1 USAGE
33              
34             This class represents one of two things:
35              
36             =head3 Arguments in a call to a service
37              
38             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
39             Each attribute should be used as a named argument in the calls that expect this type of object.
40              
41             As an example, if Att1 is expected to be a Paws::ElasticTranscoder::JobOutput object:
42              
43             $service_obj->Method(Att1 => { AlbumArt => $value, ..., Width => $value });
44              
45             =head3 Results returned from an API call
46              
47             Use accessors for each attribute. If Att1 is expected to be an Paws::ElasticTranscoder::JobOutput object:
48              
49             $result = $service_obj->Method(...);
50             $result->Att1->AlbumArt
51              
52             =head1 DESCRIPTION
53              
54             Outputs recommended instead.
55              
56             If you specified one output for a job, information about that output.
57             If you specified multiple outputs for a job, the C<Output> object lists
58             information about the first output. This duplicates the information
59             that is listed for the first output in the C<Outputs> object.
60              
61             =head1 ATTRIBUTES
62              
63              
64             =head2 AlbumArt => L<Paws::ElasticTranscoder::JobAlbumArt>
65              
66             The album art to be associated with the output file, if any.
67              
68              
69             =head2 AppliedColorSpaceConversion => Str
70              
71             If Elastic Transcoder used a preset with a C<ColorSpaceConversionMode>
72             to transcode the output file, the C<AppliedColorSpaceConversion>
73             parameter shows the conversion used. If no C<ColorSpaceConversionMode>
74             was defined in the preset, this parameter is not be included in the job
75             response.
76              
77              
78             =head2 Captions => L<Paws::ElasticTranscoder::Captions>
79              
80             You can configure Elastic Transcoder to transcode captions, or
81             subtitles, from one format to another. All captions must be in UTF-8.
82             Elastic Transcoder supports two types of captions:
83              
84             =over
85              
86             =item *
87              
88             B<Embedded:> Embedded captions are included in the same file as the
89             audio and video. Elastic Transcoder supports only one embedded caption
90             per language, to a maximum of 300 embedded captions per file.
91              
92             Valid input values include: C<CEA-608 (EIA-608>, first non-empty
93             channel only), C<CEA-708 (EIA-708>, first non-empty channel only), and
94             C<mov-text>
95              
96             Valid outputs include: C<mov-text>
97              
98             Elastic Transcoder supports a maximum of one embedded format per
99             output.
100              
101             =item *
102              
103             B<Sidecar:> Sidecar captions are kept in a separate metadata file from
104             the audio and video data. Sidecar captions require a player that is
105             capable of understanding the relationship between the video file and
106             the sidecar file. Elastic Transcoder supports only one sidecar caption
107             per language, to a maximum of 20 sidecar captions per file.
108              
109             Valid input values include: C<dfxp> (first div element only),
110             C<ebu-tt>, C<scc>, C<smpt>, C<srt>, C<ttml> (first div element only),
111             and C<webvtt>
112              
113             Valid outputs include: C<dfxp> (first div element only), C<scc>,
114             C<srt>, and C<webvtt>.
115              
116             =back
117              
118             If you want ttml or smpte-tt compatible captions, specify dfxp as your
119             output format.
120              
121             Elastic Transcoder does not support OCR (Optical Character
122             Recognition), does not accept pictures as a valid input for captions,
123             and is not available for audio-only transcoding. Elastic Transcoder
124             does not preserve text formatting (for example, italics) during the
125             transcoding process.
126              
127             To remove captions or leave the captions empty, set C<Captions> to
128             null. To pass through existing captions unchanged, set the
129             C<MergePolicy> to C<MergeRetain>, and pass in a null C<CaptionSources>
130             array.
131              
132             For more information on embedded files, see the Subtitles Wikipedia
133             page.
134              
135             For more information on sidecar files, see the Extensible Metadata
136             Platform and Sidecar file Wikipedia pages.
137              
138              
139             =head2 Composition => ArrayRef[L<Paws::ElasticTranscoder::Clip>]
140              
141             You can create an output file that contains an excerpt from the input
142             file. This excerpt, called a clip, can come from the beginning, middle,
143             or end of the file. The Composition object contains settings for the
144             clips that make up an output file. For the current release, you can
145             only specify settings for a single clip per output file. The
146             Composition object cannot be null.
147              
148              
149             =head2 Duration => Int
150              
151             Duration of the output file, in seconds.
152              
153              
154             =head2 DurationMillis => Int
155              
156             Duration of the output file, in milliseconds.
157              
158              
159             =head2 Encryption => L<Paws::ElasticTranscoder::Encryption>
160              
161             The encryption settings, if any, that you want Elastic Transcoder to
162             apply to your output files. If you choose to use encryption, you must
163             specify a mode to use. If you choose not to use encryption, Elastic
164             Transcoder writes an unencrypted file to your Amazon S3 bucket.
165              
166              
167             =head2 FileSize => Int
168              
169             File size of the output file, in bytes.
170              
171              
172             =head2 FrameRate => Str
173              
174             Frame rate of the output file, in frames per second.
175              
176              
177             =head2 Height => Int
178              
179             Height of the output file, in pixels.
180              
181              
182             =head2 Id => Str
183              
184             A sequential counter, starting with 1, that identifies an output among
185             the outputs from the current job. In the Output syntax, this value is
186             always 1.
187              
188              
189             =head2 Key => Str
190              
191             The name to assign to the transcoded file. Elastic Transcoder saves the
192             file in the Amazon S3 bucket specified by the C<OutputBucket> object in
193             the pipeline that is specified by the pipeline ID.
194              
195              
196             =head2 PresetId => Str
197              
198             The value of the C<Id> object for the preset that you want to use for
199             this job. The preset determines the audio, video, and thumbnail
200             settings that Elastic Transcoder uses for transcoding. To use a preset
201             that you created, specify the preset ID that Elastic Transcoder
202             returned in the response when you created the preset. You can also use
203             the Elastic Transcoder system presets, which you can get with
204             C<ListPresets>.
205              
206              
207             =head2 Rotate => Str
208              
209             The number of degrees clockwise by which you want Elastic Transcoder to
210             rotate the output relative to the input. Enter one of the following
211             values:
212              
213             C<auto>, C<0>, C<90>, C<180>, C<270>
214              
215             The value C<auto> generally works only if the file that you're
216             transcoding contains rotation metadata.
217              
218              
219             =head2 SegmentDuration => Str
220              
221             (Outputs in Fragmented MP4 or MPEG-TS format only.
222              
223             If you specify a preset in C<PresetId> for which the value of
224             C<Container> is C<fmp4> (Fragmented MP4) or C<ts> (MPEG-TS),
225             C<SegmentDuration> is the target maximum duration of each segment in
226             seconds. For C<HLSv3> format playlists, each media segment is stored in
227             a separate C<.ts> file. For C<HLSv4>, C<MPEG-DASH>, and C<Smooth>
228             playlists, all media segments for an output are stored in a single
229             file. Each segment is approximately the length of the
230             C<SegmentDuration>, though individual segments might be shorter or
231             longer.
232              
233             The range of valid values is 1 to 60 seconds. If the duration of the
234             video is not evenly divisible by C<SegmentDuration>, the duration of
235             the last segment is the remainder of total length/SegmentDuration.
236              
237             Elastic Transcoder creates an output-specific playlist for each output
238             C<HLS> output that you specify in OutputKeys. To add an output to the
239             master playlist for this job, include it in the C<OutputKeys> of the
240             associated playlist.
241              
242              
243             =head2 Status => Str
244              
245             The status of one output in a job. If you specified only one output for
246             the job, C<Outputs:Status> is always the same as C<Job:Status>. If you
247             specified more than one output:
248              
249             =over
250              
251             =item *
252              
253             C<Job:Status> and C<Outputs:Status> for all of the outputs is Submitted
254             until Elastic Transcoder starts to process the first output.
255              
256             =item *
257              
258             When Elastic Transcoder starts to process the first output,
259             C<Outputs:Status> for that output and C<Job:Status> both change to
260             Progressing. For each output, the value of C<Outputs:Status> remains
261             Submitted until Elastic Transcoder starts to process the output.
262              
263             =item *
264              
265             Job:Status remains Progressing until all of the outputs reach a
266             terminal status, either Complete or Error.
267              
268             =item *
269              
270             When all of the outputs reach a terminal status, C<Job:Status> changes
271             to Complete only if C<Outputs:Status> for all of the outputs is
272             C<Complete>. If C<Outputs:Status> for one or more outputs is C<Error>,
273             the terminal status for C<Job:Status> is also C<Error>.
274              
275             =back
276              
277             The value of C<Status> is one of the following: C<Submitted>,
278             C<Progressing>, C<Complete>, C<Canceled>, or C<Error>.
279              
280              
281             =head2 StatusDetail => Str
282              
283             Information that further explains C<Status>.
284              
285              
286             =head2 ThumbnailEncryption => L<Paws::ElasticTranscoder::Encryption>
287              
288             The encryption settings, if any, that you want Elastic Transcoder to
289             apply to your thumbnail.
290              
291              
292             =head2 ThumbnailPattern => Str
293              
294             Whether you want Elastic Transcoder to create thumbnails for your
295             videos and, if so, how you want Elastic Transcoder to name the files.
296              
297             If you don't want Elastic Transcoder to create thumbnails, specify "".
298              
299             If you do want Elastic Transcoder to create thumbnails, specify the
300             information that you want to include in the file name for each
301             thumbnail. You can specify the following values in any sequence:
302              
303             =over
304              
305             =item *
306              
307             B<C<{count}> (Required)>: If you want to create thumbnails, you must
308             include C<{count}> in the C<ThumbnailPattern> object. Wherever you
309             specify C<{count}>, Elastic Transcoder adds a five-digit sequence
310             number (beginning with B<00001>) to thumbnail file names. The number
311             indicates where a given thumbnail appears in the sequence of thumbnails
312             for a transcoded file.
313              
314             If you specify a literal value and/or C<{resolution}> but you omit
315             C<{count}>, Elastic Transcoder returns a validation error and does not
316             create the job.
317              
318             =item *
319              
320             B<Literal values (Optional)>: You can specify literal values anywhere
321             in the C<ThumbnailPattern> object. For example, you can include them as
322             a file name prefix or as a delimiter between C<{resolution}> and
323             C<{count}>.
324              
325             =item *
326              
327             B<C<{resolution}> (Optional)>: If you want Elastic Transcoder to
328             include the resolution in the file name, include C<{resolution}> in the
329             C<ThumbnailPattern> object.
330              
331             =back
332              
333             When creating thumbnails, Elastic Transcoder automatically saves the
334             files in the format (.jpg or .png) that appears in the preset that you
335             specified in the C<PresetID> value of C<CreateJobOutput>. Elastic
336             Transcoder also appends the applicable file name extension.
337              
338              
339             =head2 Watermarks => ArrayRef[L<Paws::ElasticTranscoder::JobWatermark>]
340              
341             Information about the watermarks that you want Elastic Transcoder to
342             add to the video during transcoding. You can specify up to four
343             watermarks for each output. Settings for each watermark must be defined
344             in the preset that you specify in C<Preset> for the current output.
345              
346             Watermarks are added to the output video in the sequence in which you
347             list them in the job outputE<mdash>the first watermark in the list is
348             added to the output video first, the second watermark in the list is
349             added next, and so on. As a result, if the settings in a preset cause
350             Elastic Transcoder to place all watermarks in the same location, the
351             second watermark that you add covers the first one, the third one
352             covers the second, and the fourth one covers the third.
353              
354              
355             =head2 Width => Int
356              
357             Specifies the width of the output file in pixels.
358              
359              
360              
361             =head1 SEE ALSO
362              
363             This class forms part of L<Paws>, describing an object used in L<Paws::ElasticTranscoder>
364              
365             =head1 BUGS and CONTRIBUTIONS
366              
367             The source code is located here: https://github.com/pplu/aws-sdk-perl
368              
369             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
370              
371             =cut
372