Skip to content

Commit d49135a

Browse files
author
awstools
committed
feat(client-mediaconvert): AWS Elemental MediaConvert SDK has added support for the pass-through of WebVTT styling to WebVTT outputs, pass-through of KLV metadata to supported formats, and improved filter support for processing 444/RGB content.
1 parent f38e98f commit d49135a

File tree

7 files changed

+176
-65
lines changed

7 files changed

+176
-65
lines changed

clients/client-mediaconvert/src/commands/ListTagsForResourceCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import {
1212
} from "@aws-sdk/types";
1313

1414
import { MediaConvertClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaConvertClient";
15-
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_1";
15+
import { ListTagsForResourceRequest } from "../models/models_1";
16+
import { ListTagsForResourceResponse } from "../models/models_2";
1617
import {
1718
deserializeAws_restJson1ListTagsForResourceCommand,
1819
serializeAws_restJson1ListTagsForResourceCommand,

clients/client-mediaconvert/src/commands/PutPolicyCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
} from "@aws-sdk/types";
1313

1414
import { MediaConvertClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaConvertClient";
15-
import { PutPolicyRequest, PutPolicyResponse } from "../models/models_1";
15+
import { PutPolicyRequest, PutPolicyResponse } from "../models/models_2";
1616
import {
1717
deserializeAws_restJson1PutPolicyCommand,
1818
serializeAws_restJson1PutPolicyCommand,

clients/client-mediaconvert/src/models/models_0.ts

+22-11
Original file line numberDiff line numberDiff line change
@@ -1918,6 +1918,7 @@ export enum WebvttAccessibilitySubs {
19181918
export enum WebvttStylePassthrough {
19191919
DISABLED = "DISABLED",
19201920
ENABLED = "ENABLED",
1921+
STRICT = "STRICT",
19211922
}
19221923

19231924
/**
@@ -1930,7 +1931,7 @@ export interface WebvttDestinationSettings {
19301931
Accessibility?: WebvttAccessibilitySubs | string;
19311932

19321933
/**
1933-
* Set Style passthrough (StylePassthrough) to ENABLED to use the available style, color, and position information from your input captions. MediaConvert uses default settings for any missing style and position information in your input captions. Set Style passthrough to DISABLED, or leave blank, to ignore the style and position information from your input captions and use simplified output captions.
1934+
* To use the available style, color, and position information from your input captions: Set Style passthrough (stylePassthrough) to Enabled (ENABLED). MediaConvert uses default settings when style and position information is missing from your input captions. To recreate the input captions exactly: Set Style passthrough to Strict (STRICT). MediaConvert automatically applies timing adjustments, including adjustments for frame rate conversion, ad avails, and input clipping. Your input captions format must be WebVTT. To ignore the style and position information from your input captions and use simplified output captions: Set Style passthrough to Disabled (DISABLED), or leave blank.
19341935
*/
19351936
StylePassthrough?: WebvttStylePassthrough | string;
19361937
}
@@ -5298,6 +5299,11 @@ export enum CmfcIFrameOnlyManifest {
52985299
INCLUDE = "INCLUDE",
52995300
}
53005301

5302+
export enum CmfcKlvMetadata {
5303+
NONE = "NONE",
5304+
PASSTHROUGH = "PASSTHROUGH",
5305+
}
5306+
53015307
export enum CmfcScte35Esam {
53025308
INSERT = "INSERT",
53035309
NONE = "NONE",
@@ -5347,6 +5353,11 @@ export interface CmfcSettings {
53475353
*/
53485354
IFrameOnlyManifest?: CmfcIFrameOnlyManifest | string;
53495355

5356+
/**
5357+
* Applies to CMAF outputs. Use this setting to specify whether the service inserts the KLV metadata from the input in this output.
5358+
*/
5359+
KlvMetadata?: CmfcKlvMetadata | string;
5360+
53505361
/**
53515362
* Use this setting only when you specify SCTE-35 markers from ESAM. Choose INSERT to put SCTE-35 markers in this output at the insertion points that you specify in an ESAM XML document. Provide the document in the setting SCC XML (sccXml).
53525363
*/
@@ -5539,6 +5550,11 @@ export enum M2tsForceTsVideoEbpOrder {
55395550
FORCE = "FORCE",
55405551
}
55415552

5553+
export enum M2tsKlvMetadata {
5554+
NONE = "NONE",
5555+
PASSTHROUGH = "PASSTHROUGH",
5556+
}
5557+
55425558
export enum M2tsNielsenId3 {
55435559
INSERT = "INSERT",
55445560
NONE = "NONE",
@@ -5681,6 +5697,11 @@ export interface M2tsSettings {
56815697
*/
56825698
FragmentTime?: number;
56835699

5700+
/**
5701+
* Applies to MPEG-TS outputs. Use this setting to specify whether the service inserts the KLV metadata from the input in this output.
5702+
*/
5703+
KlvMetadata?: M2tsKlvMetadata | string;
5704+
56845705
/**
56855706
* Specify the maximum time, in milliseconds, between Program Clock References (PCRs) inserted into the transport stream.
56865707
*/
@@ -5800,13 +5821,3 @@ export enum M3u8AudioDuration {
58005821
DEFAULT_CODEC_DURATION = "DEFAULT_CODEC_DURATION",
58015822
MATCH_VIDEO_DURATION = "MATCH_VIDEO_DURATION",
58025823
}
5803-
5804-
export enum M3u8DataPtsControl {
5805-
ALIGN_TO_VIDEO = "ALIGN_TO_VIDEO",
5806-
AUTO = "AUTO",
5807-
}
5808-
5809-
export enum M3u8NielsenId3 {
5810-
INSERT = "INSERT",
5811-
NONE = "NONE",
5812-
}

clients/client-mediaconvert/src/models/models_1.ts

+20-50
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ import {
2929
KantarWatermarkSettings,
3030
M2tsSettings,
3131
M3u8AudioDuration,
32-
M3u8DataPtsControl,
33-
M3u8NielsenId3,
3432
MotionImageInserter,
3533
NielsenConfiguration,
3634
NielsenNonLinearWatermarkSettings,
@@ -40,6 +38,16 @@ import {
4038
Rectangle,
4139
} from "./models_0";
4240

41+
export enum M3u8DataPtsControl {
42+
ALIGN_TO_VIDEO = "ALIGN_TO_VIDEO",
43+
AUTO = "AUTO",
44+
}
45+
46+
export enum M3u8NielsenId3 {
47+
INSERT = "INSERT",
48+
NONE = "NONE",
49+
}
50+
4351
export enum M3u8PcrControl {
4452
CONFIGURED_PCR_PERIOD = "CONFIGURED_PCR_PERIOD",
4553
PCR_EVERY_PES_PACKET = "PCR_EVERY_PES_PACKET",
@@ -302,6 +310,11 @@ export enum MpdCaptionContainerType {
302310
RAW = "RAW",
303311
}
304312

313+
export enum MpdKlvMetadata {
314+
NONE = "NONE",
315+
PASSTHROUGH = "PASSTHROUGH",
316+
}
317+
305318
export enum MpdScte35Esam {
306319
INSERT = "INSERT",
307320
NONE = "NONE",
@@ -336,6 +349,11 @@ export interface MpdSettings {
336349
*/
337350
CaptionContainerType?: MpdCaptionContainerType | string;
338351

352+
/**
353+
* Applies to DASH ISO outputs. Use this setting to specify whether the service inserts the KLV metadata from the input in this output.
354+
*/
355+
KlvMetadata?: MpdKlvMetadata | string;
356+
339357
/**
340358
* Use this setting only when you specify SCTE-35 markers from ESAM. Choose INSERT to put SCTE-35 markers in this output at the insertion points that you specify in an ESAM XML document. Provide the document in the setting SCC XML (sccXml).
341359
*/
@@ -5443,51 +5461,3 @@ export namespace ResourceTags {
54435461
...obj,
54445462
});
54455463
}
5446-
5447-
export interface ListTagsForResourceResponse {
5448-
/**
5449-
* The Amazon Resource Name (ARN) and tags for an AWS Elemental MediaConvert resource.
5450-
*/
5451-
ResourceTags?: ResourceTags;
5452-
}
5453-
5454-
export namespace ListTagsForResourceResponse {
5455-
/**
5456-
* @internal
5457-
*/
5458-
export const filterSensitiveLog = (obj: ListTagsForResourceResponse): any => ({
5459-
...obj,
5460-
});
5461-
}
5462-
5463-
export interface PutPolicyRequest {
5464-
/**
5465-
* A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
5466-
*/
5467-
Policy: Policy | undefined;
5468-
}
5469-
5470-
export namespace PutPolicyRequest {
5471-
/**
5472-
* @internal
5473-
*/
5474-
export const filterSensitiveLog = (obj: PutPolicyRequest): any => ({
5475-
...obj,
5476-
});
5477-
}
5478-
5479-
export interface PutPolicyResponse {
5480-
/**
5481-
* A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
5482-
*/
5483-
Policy?: Policy;
5484-
}
5485-
5486-
export namespace PutPolicyResponse {
5487-
/**
5488-
* @internal
5489-
*/
5490-
export const filterSensitiveLog = (obj: PutPolicyResponse): any => ({
5491-
...obj,
5492-
});
5493-
}

clients/client-mediaconvert/src/models/models_2.ts

+50
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,64 @@ import { AccelerationSettings, HopDestination } from "./models_0";
22
import {
33
JobTemplate,
44
JobTemplateSettings,
5+
Policy,
56
Preset,
67
PresetSettings,
78
Queue,
89
QueueStatus,
910
ReservationPlanSettings,
11+
ResourceTags,
1012
StatusUpdateInterval,
1113
} from "./models_1";
1214

15+
export interface ListTagsForResourceResponse {
16+
/**
17+
* The Amazon Resource Name (ARN) and tags for an AWS Elemental MediaConvert resource.
18+
*/
19+
ResourceTags?: ResourceTags;
20+
}
21+
22+
export namespace ListTagsForResourceResponse {
23+
/**
24+
* @internal
25+
*/
26+
export const filterSensitiveLog = (obj: ListTagsForResourceResponse): any => ({
27+
...obj,
28+
});
29+
}
30+
31+
export interface PutPolicyRequest {
32+
/**
33+
* A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
34+
*/
35+
Policy: Policy | undefined;
36+
}
37+
38+
export namespace PutPolicyRequest {
39+
/**
40+
* @internal
41+
*/
42+
export const filterSensitiveLog = (obj: PutPolicyRequest): any => ({
43+
...obj,
44+
});
45+
}
46+
47+
export interface PutPolicyResponse {
48+
/**
49+
* A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
50+
*/
51+
Policy?: Policy;
52+
}
53+
54+
export namespace PutPolicyResponse {
55+
/**
56+
* @internal
57+
*/
58+
export const filterSensitiveLog = (obj: PutPolicyResponse): any => ({
59+
...obj,
60+
});
61+
}
62+
1363
export interface TagResourceRequest {
1464
/**
1565
* The Amazon Resource Name (ARN) of the resource that you want to tag. To get the ARN, send a GET request with the resource name.

clients/client-mediaconvert/src/protocols/Aws_restJson1.ts

+6
Original file line numberDiff line numberDiff line change
@@ -3850,6 +3850,7 @@ const serializeAws_restJson1CmfcSettings = (input: CmfcSettings, context: __Serd
38503850
input.DescriptiveVideoServiceFlag !== null && { descriptiveVideoServiceFlag: input.DescriptiveVideoServiceFlag }),
38513851
...(input.IFrameOnlyManifest !== undefined &&
38523852
input.IFrameOnlyManifest !== null && { iFrameOnlyManifest: input.IFrameOnlyManifest }),
3853+
...(input.KlvMetadata !== undefined && input.KlvMetadata !== null && { klvMetadata: input.KlvMetadata }),
38533854
...(input.Scte35Esam !== undefined && input.Scte35Esam !== null && { scte35Esam: input.Scte35Esam }),
38543855
...(input.Scte35Source !== undefined && input.Scte35Source !== null && { scte35Source: input.Scte35Source }),
38553856
...(input.TimedMetadata !== undefined && input.TimedMetadata !== null && { timedMetadata: input.TimedMetadata }),
@@ -5023,6 +5024,7 @@ const serializeAws_restJson1M2tsSettings = (input: M2tsSettings, context: __Serd
50235024
input.ForceTsVideoEbpOrder !== null && { forceTsVideoEbpOrder: input.ForceTsVideoEbpOrder }),
50245025
...(input.FragmentTime !== undefined &&
50255026
input.FragmentTime !== null && { fragmentTime: __serializeFloat(input.FragmentTime) }),
5027+
...(input.KlvMetadata !== undefined && input.KlvMetadata !== null && { klvMetadata: input.KlvMetadata }),
50265028
...(input.MaxPcrInterval !== undefined &&
50275029
input.MaxPcrInterval !== null && { maxPcrInterval: input.MaxPcrInterval }),
50285030
...(input.MinEbpInterval !== undefined &&
@@ -5176,6 +5178,7 @@ const serializeAws_restJson1MpdSettings = (input: MpdSettings, context: __SerdeC
51765178
...(input.AudioDuration !== undefined && input.AudioDuration !== null && { audioDuration: input.AudioDuration }),
51775179
...(input.CaptionContainerType !== undefined &&
51785180
input.CaptionContainerType !== null && { captionContainerType: input.CaptionContainerType }),
5181+
...(input.KlvMetadata !== undefined && input.KlvMetadata !== null && { klvMetadata: input.KlvMetadata }),
51795182
...(input.Scte35Esam !== undefined && input.Scte35Esam !== null && { scte35Esam: input.Scte35Esam }),
51805183
...(input.Scte35Source !== undefined && input.Scte35Source !== null && { scte35Source: input.Scte35Source }),
51815184
...(input.TimedMetadata !== undefined && input.TimedMetadata !== null && { timedMetadata: input.TimedMetadata }),
@@ -7192,6 +7195,7 @@ const deserializeAws_restJson1CmfcSettings = (output: any, context: __SerdeConte
71927195
AudioTrackType: __expectString(output.audioTrackType),
71937196
DescriptiveVideoServiceFlag: __expectString(output.descriptiveVideoServiceFlag),
71947197
IFrameOnlyManifest: __expectString(output.iFrameOnlyManifest),
7198+
KlvMetadata: __expectString(output.klvMetadata),
71957199
Scte35Esam: __expectString(output.scte35Esam),
71967200
Scte35Source: __expectString(output.scte35Source),
71977201
TimedMetadata: __expectString(output.timedMetadata),
@@ -8287,6 +8291,7 @@ const deserializeAws_restJson1M2tsSettings = (output: any, context: __SerdeConte
82878291
EsRateInPes: __expectString(output.esRateInPes),
82888292
ForceTsVideoEbpOrder: __expectString(output.forceTsVideoEbpOrder),
82898293
FragmentTime: __limitedParseDouble(output.fragmentTime),
8294+
KlvMetadata: __expectString(output.klvMetadata),
82908295
MaxPcrInterval: __expectInt32(output.maxPcrInterval),
82918296
MinEbpInterval: __expectInt32(output.minEbpInterval),
82928297
NielsenId3: __expectString(output.nielsenId3),
@@ -8422,6 +8427,7 @@ const deserializeAws_restJson1MpdSettings = (output: any, context: __SerdeContex
84228427
AccessibilityCaptionHints: __expectString(output.accessibilityCaptionHints),
84238428
AudioDuration: __expectString(output.audioDuration),
84248429
CaptionContainerType: __expectString(output.captionContainerType),
8430+
KlvMetadata: __expectString(output.klvMetadata),
84258431
Scte35Esam: __expectString(output.scte35Esam),
84268432
Scte35Source: __expectString(output.scte35Source),
84278433
TimedMetadata: __expectString(output.timedMetadata),

0 commit comments

Comments
 (0)