Skip to content

Commit 9c9825e

Browse files
author
awstools
committed
feat(client-mediaconvert): AWS Elemental MediaConvert SDK has added support for rules that constrain Automatic-ABR rendition selection when generating ABR package ladders.
1 parent 3f98cfc commit 9c9825e

File tree

6 files changed

+79
-32
lines changed

6 files changed

+79
-32
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import {
1313
} from "@aws-sdk/types";
1414

1515
import { MediaConvertClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaConvertClient";
16-
import { ListJobsRequest, ListJobsResponse } from "../models/models_1";
16+
import { ListJobsRequest } from "../models/models_1";
17+
import { ListJobsResponse } from "../models/models_2";
1718
import {
1819
deserializeAws_restJson1ListJobsCommand,
1920
serializeAws_restJson1ListJobsCommand,

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

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,6 +2437,13 @@ export namespace AudioSelectorGroup {
24372437
});
24382438
}
24392439

2440+
export enum AudioDurationCorrection {
2441+
AUTO = "AUTO",
2442+
DISABLED = "DISABLED",
2443+
FRAME = "FRAME",
2444+
TRACK = "TRACK",
2445+
}
2446+
24402447
export enum AudioDefaultSelection {
24412448
DEFAULT = "DEFAULT",
24422449
NOT_DEFAULT = "NOT_DEFAULT",
@@ -2482,6 +2489,11 @@ export enum AudioSelectorType {
24822489
* Use Audio selectors (AudioSelectors) to specify a track or set of tracks from the input that you will use in your outputs. You can use multiple Audio selectors per input.
24832490
*/
24842491
export interface AudioSelector {
2492+
/**
2493+
* Apply audio timing corrections to help synchronize audio and video in your output. To apply timing corrections, your input must meet the following requirements: * Container: MP4, or MOV, with an accurate time-to-sample (STTS) table. * Audio track: AAC. Choose from the following audio timing correction settings: * Disabled (Default): Apply no correction. * Auto: Recommended for most inputs. MediaConvert analyzes the audio timing in your input and determines which correction setting to use, if needed. * Track: Adjust the duration of each audio frame by a constant amount to align the audio track length with STTS duration. Track-level correction does not affect pitch, and is recommended for tonal audio content such as music. * Frame: Adjust the duration of each audio frame by a variable amount to align audio frames with STTS timestamps. No corrections are made to already-aligned frames. Frame-level correction may affect the pitch of corrected frames, and is recommended for atonal audio content such as speech or percussion.
2494+
*/
2495+
AudioDurationCorrection?: AudioDurationCorrection | string;
2496+
24852497
/**
24862498
* Selects a specific language code from within an audio source, using the ISO 639-2 or ISO 639-3 three-letter language code
24872499
*/
@@ -3108,7 +3120,7 @@ export enum InputTimecodeSource {
31083120
}
31093121

31103122
/**
3111-
* Use this setting if you do not have a video input or if you want to add black video frames before, or after, other inputs. When you include Video generator, MediaConvert creates a video input with black frames and without an audio track. You can specify a value for Video generator, or you can specify an Input file, but you cannot specify both.
3123+
* When you include Video generator, MediaConvert creates a video input with black frames. Use this setting if you do not have a video input or if you want to add black video frames before, or after, other inputs. You can specify Video generator, or you can specify an Input file, but you cannot specify both. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/video-generator.html
31123124
*/
31133125
export interface InputVideoGenerator {
31143126
/**
@@ -3411,7 +3423,7 @@ export interface Input {
34113423
TimecodeStart?: string;
34123424

34133425
/**
3414-
* Use this setting if you do not have a video input or if you want to add black video frames before, or after, other inputs. When you include Video generator, MediaConvert creates a video input with black frames and without an audio track. You can specify a value for Video generator, or you can specify an Input file, but you cannot specify both.
3426+
* When you include Video generator, MediaConvert creates a video input with black frames. Use this setting if you do not have a video input or if you want to add black video frames before, or after, other inputs. You can specify Video generator, or you can specify an Input file, but you cannot specify both. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/video-generator.html
34153427
*/
34163428
VideoGenerator?: InputVideoGenerator;
34173429

@@ -5741,8 +5753,3 @@ export enum M2tsForceTsVideoEbpOrder {
57415753
DEFAULT = "DEFAULT",
57425754
FORCE = "FORCE",
57435755
}
5744-
5745-
export enum M2tsKlvMetadata {
5746-
NONE = "NONE",
5747-
PASSTHROUGH = "PASSTHROUGH",
5748-
}

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

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import {
3838
M2tsEbpPlacement,
3939
M2tsEsRateInPes,
4040
M2tsForceTsVideoEbpOrder,
41-
M2tsKlvMetadata,
4241
MotionImageInserter,
4342
NielsenConfiguration,
4443
NielsenNonLinearWatermarkSettings,
@@ -48,6 +47,11 @@ import {
4847
Rectangle,
4948
} from "./models_0";
5049

50+
export enum M2tsKlvMetadata {
51+
NONE = "NONE",
52+
PASSTHROUGH = "PASSTHROUGH",
53+
}
54+
5155
export enum M2tsNielsenId3 {
5256
INSERT = "INSERT",
5357
NONE = "NONE",
@@ -5511,24 +5515,3 @@ export namespace ListJobsRequest {
55115515
...obj,
55125516
});
55135517
}
5514-
5515-
export interface ListJobsResponse {
5516-
/**
5517-
* List of jobs
5518-
*/
5519-
Jobs?: Job[];
5520-
5521-
/**
5522-
* Use this string to request the next batch of jobs.
5523-
*/
5524-
NextToken?: string;
5525-
}
5526-
5527-
export namespace ListJobsResponse {
5528-
/**
5529-
* @internal
5530-
*/
5531-
export const filterSensitiveLog = (obj: ListJobsResponse): any => ({
5532-
...obj,
5533-
});
5534-
}

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// smithy-typescript generated code
22
import { AccelerationSettings, HopDestination } from "./models_0";
33
import {
4+
Job,
45
JobTemplate,
56
JobTemplateListBy,
67
JobTemplateSettings,
@@ -14,6 +15,27 @@ import {
1415
StatusUpdateInterval,
1516
} from "./models_1";
1617

18+
export interface ListJobsResponse {
19+
/**
20+
* List of jobs
21+
*/
22+
Jobs?: Job[];
23+
24+
/**
25+
* Use this string to request the next batch of jobs.
26+
*/
27+
NextToken?: string;
28+
}
29+
30+
export namespace ListJobsResponse {
31+
/**
32+
* @internal
33+
*/
34+
export const filterSensitiveLog = (obj: ListJobsResponse): any => ({
35+
...obj,
36+
});
37+
}
38+
1739
export interface ListJobTemplatesRequest {
1840
/**
1941
* Optionally, specify a job template category to limit responses to only job templates from that category.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3441,6 +3441,8 @@ const serializeAws_restJson1AudioNormalizationSettings = (
34413441

34423442
const serializeAws_restJson1AudioSelector = (input: AudioSelector, context: __SerdeContext): any => {
34433443
return {
3444+
...(input.AudioDurationCorrection !== undefined &&
3445+
input.AudioDurationCorrection !== null && { audioDurationCorrection: input.AudioDurationCorrection }),
34443446
...(input.CustomLanguageCode !== undefined &&
34453447
input.CustomLanguageCode !== null && { customLanguageCode: input.CustomLanguageCode }),
34463448
...(input.DefaultSelection !== undefined &&
@@ -6987,6 +6989,7 @@ const deserializeAws_restJson1AudioNormalizationSettings = (
69876989

69886990
const deserializeAws_restJson1AudioSelector = (output: any, context: __SerdeContext): AudioSelector => {
69896991
return {
6992+
AudioDurationCorrection: __expectString(output.audioDurationCorrection),
69906993
CustomLanguageCode: __expectString(output.customLanguageCode),
69916994
DefaultSelection: __expectString(output.defaultSelection),
69926995
ExternalAudioFileInput: __expectString(output.externalAudioFileInput),

codegen/sdk-codegen/aws-models/mediaconvert.json

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,30 @@
10961096
"smithy.api#documentation": "Settings related to one audio tab on the MediaConvert console. In your job JSON, an instance of AudioDescription is equivalent to one audio tab in the console. Usually, one audio tab corresponds to one output audio track. Depending on how you set up your input audio selectors and whether you use audio selector groups, one audio tab can correspond to a group of output audio tracks."
10971097
}
10981098
},
1099+
"com.amazonaws.mediaconvert#AudioDurationCorrection": {
1100+
"type": "string",
1101+
"traits": {
1102+
"smithy.api#documentation": "Apply audio timing corrections to help synchronize audio and video in your output. To apply timing corrections, your input must meet the following requirements: * Container: MP4, or MOV, with an accurate time-to-sample (STTS) table. * Audio track: AAC. Choose from the following audio timing correction settings: * Disabled (Default): Apply no correction. * Auto: Recommended for most inputs. MediaConvert analyzes the audio timing in your input and determines which correction setting to use, if needed. * Track: Adjust the duration of each audio frame by a constant amount to align the audio track length with STTS duration. Track-level correction does not affect pitch, and is recommended for tonal audio content such as music. * Frame: Adjust the duration of each audio frame by a variable amount to align audio frames with STTS timestamps. No corrections are made to already-aligned frames. Frame-level correction may affect the pitch of corrected frames, and is recommended for atonal audio content such as speech or percussion.",
1103+
"smithy.api#enum": [
1104+
{
1105+
"value": "DISABLED",
1106+
"name": "DISABLED"
1107+
},
1108+
{
1109+
"value": "AUTO",
1110+
"name": "AUTO"
1111+
},
1112+
{
1113+
"value": "TRACK",
1114+
"name": "TRACK"
1115+
},
1116+
{
1117+
"value": "FRAME",
1118+
"name": "FRAME"
1119+
}
1120+
]
1121+
}
1122+
},
10991123
"com.amazonaws.mediaconvert#AudioLanguageCodeControl": {
11001124
"type": "string",
11011125
"traits": {
@@ -1237,6 +1261,13 @@
12371261
"com.amazonaws.mediaconvert#AudioSelector": {
12381262
"type": "structure",
12391263
"members": {
1264+
"AudioDurationCorrection": {
1265+
"target": "com.amazonaws.mediaconvert#AudioDurationCorrection",
1266+
"traits": {
1267+
"smithy.api#documentation": "Apply audio timing corrections to help synchronize audio and video in your output. To apply timing corrections, your input must meet the following requirements: * Container: MP4, or MOV, with an accurate time-to-sample (STTS) table. * Audio track: AAC. Choose from the following audio timing correction settings: * Disabled (Default): Apply no correction. * Auto: Recommended for most inputs. MediaConvert analyzes the audio timing in your input and determines which correction setting to use, if needed. * Track: Adjust the duration of each audio frame by a constant amount to align the audio track length with STTS duration. Track-level correction does not affect pitch, and is recommended for tonal audio content such as music. * Frame: Adjust the duration of each audio frame by a variable amount to align audio frames with STTS timestamps. No corrections are made to already-aligned frames. Frame-level correction may affect the pitch of corrected frames, and is recommended for atonal audio content such as speech or percussion.",
1268+
"smithy.api#jsonName": "audioDurationCorrection"
1269+
}
1270+
},
12401271
"CustomLanguageCode": {
12411272
"target": "com.amazonaws.mediaconvert#__stringMin3Max3PatternAZaZ3",
12421273
"traits": {
@@ -10481,7 +10512,7 @@
1048110512
"VideoGenerator": {
1048210513
"target": "com.amazonaws.mediaconvert#InputVideoGenerator",
1048310514
"traits": {
10484-
"smithy.api#documentation": "Use this setting if you do not have a video input or if you want to add black video frames before, or after, other inputs. When you include Video generator, MediaConvert creates a video input with black frames and without an audio track. You can specify a value for Video generator, or you can specify an Input file, but you cannot specify both.",
10515+
"smithy.api#documentation": "When you include Video generator, MediaConvert creates a video input with black frames. Use this setting if you do not have a video input or if you want to add black video frames before, or after, other inputs. You can specify Video generator, or you can specify an Input file, but you cannot specify both. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/video-generator.html",
1048510516
"smithy.api#jsonName": "videoGenerator"
1048610517
}
1048710518
},
@@ -10869,7 +10900,7 @@
1086910900
}
1087010901
},
1087110902
"traits": {
10872-
"smithy.api#documentation": "Use this setting if you do not have a video input or if you want to add black video frames before, or after, other inputs. When you include Video generator, MediaConvert creates a video input with black frames and without an audio track. You can specify a value for Video generator, or you can specify an Input file, but you cannot specify both."
10903+
"smithy.api#documentation": "When you include Video generator, MediaConvert creates a video input with black frames. Use this setting if you do not have a video input or if you want to add black video frames before, or after, other inputs. You can specify Video generator, or you can specify an Input file, but you cannot specify both. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/video-generator.html"
1087310904
}
1087410905
},
1087510906
"com.amazonaws.mediaconvert#InsertableImage": {

0 commit comments

Comments
 (0)