Skip to content

Commit 50ea009

Browse files
This release adds support for AVC passthrough, the ability to specify PTS offset without padding, and an A/V segment matching feature.
1 parent 1b0c380 commit 50ea009

File tree

16 files changed

+218
-53
lines changed

16 files changed

+218
-53
lines changed

generator/ServiceModels/mediaconvert/mediaconvert-2017-08-29.api.json

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2910,7 +2910,8 @@
29102910
"type": "string",
29112911
"enum": [
29122912
"EXACT",
2913-
"GOP_MULTIPLE"
2913+
"GOP_MULTIPLE",
2914+
"MATCH"
29142915
]
29152916
},
29162917
"CmafStreamInfResolution": {
@@ -3786,7 +3787,8 @@
37863787
"type": "string",
37873788
"enum": [
37883789
"EXACT",
3789-
"GOP_MULTIPLE"
3790+
"GOP_MULTIPLE",
3791+
"MATCH"
37903792
]
37913793
},
37923794
"DashIsoVideoCompositionOffsets": {
@@ -6520,7 +6522,8 @@
65206522
"type": "string",
65216523
"enum": [
65226524
"EXACT",
6523-
"GOP_MULTIPLE"
6525+
"GOP_MULTIPLE",
6526+
"MATCH"
65246527
]
65256528
},
65266529
"HlsSettings": {
@@ -8023,6 +8026,10 @@
80238026
"shape": "__listOf__integerMin32Max8182",
80248027
"locationName": "audioPids"
80258028
},
8029+
"AudioPtsOffsetDelta": {
8030+
"shape": "__integerMinNegative10000Max10000",
8031+
"locationName": "audioPtsOffsetDelta"
8032+
},
80268033
"Bitrate": {
80278034
"shape": "__integerMin0Max2147483647",
80288035
"locationName": "bitrate"
@@ -8227,6 +8234,10 @@
82278234
"shape": "__listOf__integerMin32Max8182",
82288235
"locationName": "audioPids"
82298236
},
8237+
"AudioPtsOffsetDelta": {
8238+
"shape": "__integerMinNegative10000Max10000",
8239+
"locationName": "audioPtsOffsetDelta"
8240+
},
82308241
"DataPTSControl": {
82318242
"shape": "M3u8DataPtsControl",
82328243
"locationName": "dataPTSControl"
@@ -10658,7 +10669,8 @@
1065810669
"type": "string",
1065910670
"enum": [
1066010671
"AUTO",
10661-
"SECONDS"
10672+
"SECONDS",
10673+
"MILLISECONDS"
1066210674
]
1066310675
},
1066410676
"TtmlDestinationSettings": {
@@ -12566,6 +12578,11 @@
1256612578
"min": 96,
1256712579
"max": 600
1256812580
},
12581+
"__integerMinNegative10000Max10000": {
12582+
"type": "integer",
12583+
"min": -10000,
12584+
"max": 10000
12585+
},
1256912586
"__integerMinNegative1000Max1000": {
1257012587
"type": "integer",
1257112588
"min": -1000,

generator/ServiceModels/mediaconvert/mediaconvert-2017-08-29.docs.json

Lines changed: 18 additions & 11 deletions
Large diffs are not rendered by default.

generator/ServiceModels/mediaconvert/mediaconvert-2017-08-29.normal.json

Lines changed: 34 additions & 15 deletions
Large diffs are not rendered by default.

sdk/code-analysis/ServiceAnalysis/MediaConvert/Generated/PropertyValueRules.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,6 +1336,11 @@
13361336
<min>0</min>
13371337
<max>2147483647</max>
13381338
</property-value-rule>
1339+
<property-value-rule>
1340+
<property>Amazon.MediaConvert.Model.M2tsSettings.AudioPtsOffsetDelta</property>
1341+
<min>-10000</min>
1342+
<max>10000</max>
1343+
</property-value-rule>
13391344
<property-value-rule>
13401345
<property>Amazon.MediaConvert.Model.M2tsSettings.Bitrate</property>
13411346
<min>0</min>
@@ -1416,6 +1421,11 @@
14161421
<min>0</min>
14171422
<max>2147483647</max>
14181423
</property-value-rule>
1424+
<property-value-rule>
1425+
<property>Amazon.MediaConvert.Model.M3u8Settings.AudioPtsOffsetDelta</property>
1426+
<min>-10000</min>
1427+
<max>10000</max>
1428+
</property-value-rule>
14191429
<property-value-rule>
14201430
<property>Amazon.MediaConvert.Model.M3u8Settings.MaxPcrInterval</property>
14211431
<min>0</min>

sdk/src/Services/MediaConvert/Generated/Model/CmafGroupSettings.cs

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,21 @@ internal bool IsSetSegmentLength()
461461

462462
/// <summary>
463463
/// Gets and sets the property SegmentLengthControl. Specify how you want MediaConvert
464-
/// to determine the segment length. Choose Exact to have the encoder use the exact length
465-
/// that you specify with the setting Segment length. This might result in extra I-frames.
466-
/// Choose Multiple of GOP to have the encoder round up the segment lengths to match the
467-
/// next GOP boundary.
464+
/// to determine segment lengths in this output group. To use the exact value that you
465+
/// specify under Segment length: Choose Exact. Note that this might result in additional
466+
/// I-frames in the output GOP. To create segment lengths that are a multiple of the GOP:
467+
/// Choose Multiple of GOP. MediaConvert will round up the segment lengths to match the
468+
/// next GOP boundary. To have MediaConvert automatically determine a segment duration
469+
/// that is a multiple of both the audio packets and the frame rates: Choose Match. When
470+
/// you do, also specify a target segment duration under Segment length. This is useful
471+
/// for some ad-insertion or segment replacement workflows. Note that Match has the following
472+
/// requirements: - Output containers: Include at least one video output and at least
473+
/// one audio output. Audio-only outputs are not supported. - Output frame rate: Follow
474+
/// source is not supported. - Multiple output frame rates: When you specify multiple
475+
/// outputs, we recommend they share a similar frame rate (as in X/3, X/2, X, or 2X).
476+
/// For example: 5, 15, 30 and 60. Or: 25 and 50. (Outputs must share an integer multiple.)
477+
/// - Output audio codec: Specify Advanced Audio Coding (AAC). - Output sample rate: Choose
478+
/// 48kHz.
468479
/// </summary>
469480
public CmafSegmentLengthControl SegmentLengthControl
470481
{

sdk/src/Services/MediaConvert/Generated/Model/DashIsoGroupSettings.cs

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,21 @@ internal bool IsSetSegmentLength()
424424

425425
/// <summary>
426426
/// Gets and sets the property SegmentLengthControl. Specify how you want MediaConvert
427-
/// to determine the segment length. Choose Exact to have the encoder use the exact length
428-
/// that you specify with the setting Segment length. This might result in extra I-frames.
429-
/// Choose Multiple of GOP to have the encoder round up the segment lengths to match the
430-
/// next GOP boundary.
427+
/// to determine segment lengths in this output group. To use the exact value that you
428+
/// specify under Segment length: Choose Exact. Note that this might result in additional
429+
/// I-frames in the output GOP. To create segment lengths that are a multiple of the GOP:
430+
/// Choose Multiple of GOP. MediaConvert will round up the segment lengths to match the
431+
/// next GOP boundary. To have MediaConvert automatically determine a segment duration
432+
/// that is a multiple of both the audio packets and the frame rates: Choose Match. When
433+
/// you do, also specify a target segment duration under Segment length. This is useful
434+
/// for some ad-insertion or segment replacement workflows. Note that Match has the following
435+
/// requirements: - Output containers: Include at least one video output and at least
436+
/// one audio output. Audio-only outputs are not supported. - Output frame rate: Follow
437+
/// source is not supported. - Multiple output frame rates: When you specify multiple
438+
/// outputs, we recommend they share a similar frame rate (as in X/3, X/2, X, or 2X).
439+
/// For example: 5, 15, 30 and 60. Or: 25 and 50. (Outputs must share an integer multiple.)
440+
/// - Output audio codec: Specify Advanced Audio Coding (AAC). - Output sample rate: Choose
441+
/// 48kHz.
431442
/// </summary>
432443
public DashIsoSegmentLengthControl SegmentLengthControl
433444
{

sdk/src/Services/MediaConvert/Generated/Model/HlsGroupSettings.cs

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,21 @@ internal bool IsSetSegmentLength()
522522

523523
/// <summary>
524524
/// Gets and sets the property SegmentLengthControl. Specify how you want MediaConvert
525-
/// to determine the segment length. Choose Exact to have the encoder use the exact length
526-
/// that you specify with the setting Segment length. This might result in extra I-frames.
527-
/// Choose Multiple of GOP to have the encoder round up the segment lengths to match the
528-
/// next GOP boundary.
525+
/// to determine segment lengths in this output group. To use the exact value that you
526+
/// specify under Segment length: Choose Exact. Note that this might result in additional
527+
/// I-frames in the output GOP. To create segment lengths that are a multiple of the GOP:
528+
/// Choose Multiple of GOP. MediaConvert will round up the segment lengths to match the
529+
/// next GOP boundary. To have MediaConvert automatically determine a segment duration
530+
/// that is a multiple of both the audio packets and the frame rates: Choose Match. When
531+
/// you do, also specify a target segment duration under Segment length. This is useful
532+
/// for some ad-insertion or segment replacement workflows. Note that Match has the following
533+
/// requirements: - Output containers: Include at least one video output and at least
534+
/// one audio output. Audio-only outputs are not supported. - Output frame rate: Follow
535+
/// source is not supported. - Multiple output frame rates: When you specify multiple
536+
/// outputs, we recommend they share a similar frame rate (as in X/3, X/2, X, or 2X).
537+
/// For example: 5, 15, 30 and 60. Or: 25 and 50. (Outputs must share an integer multiple.)
538+
/// - Output audio codec: Specify Advanced Audio Coding (AAC). - Output sample rate: Choose
539+
/// 48kHz.
529540
/// </summary>
530541
public HlsSegmentLengthControl SegmentLengthControl
531542
{

sdk/src/Services/MediaConvert/Generated/Model/Internal/MarshallTransformations/M2tsSettingsMarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ public void Marshall(M2tsSettings requestObject, JsonMarshallerContext context)
7777
context.Writer.WriteArrayEnd();
7878
}
7979

80+
if(requestObject.IsSetAudioPtsOffsetDelta())
81+
{
82+
context.Writer.WritePropertyName("audioPtsOffsetDelta");
83+
context.Writer.Write(requestObject.AudioPtsOffsetDelta);
84+
}
85+
8086
if(requestObject.IsSetBitrate())
8187
{
8288
context.Writer.WritePropertyName("bitrate");

sdk/src/Services/MediaConvert/Generated/Model/Internal/MarshallTransformations/M2tsSettingsUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ public M2tsSettings Unmarshall(JsonUnmarshallerContext context)
9090
unmarshalledObject.AudioPids = unmarshaller.Unmarshall(context);
9191
continue;
9292
}
93+
if (context.TestExpression("audioPtsOffsetDelta", targetDepth))
94+
{
95+
var unmarshaller = IntUnmarshaller.Instance;
96+
unmarshalledObject.AudioPtsOffsetDelta = unmarshaller.Unmarshall(context);
97+
continue;
98+
}
9399
if (context.TestExpression("bitrate", targetDepth))
94100
{
95101
var unmarshaller = IntUnmarshaller.Instance;

sdk/src/Services/MediaConvert/Generated/Model/Internal/MarshallTransformations/M3u8SettingsMarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ public void Marshall(M3u8Settings requestObject, JsonMarshallerContext context)
7171
context.Writer.WriteArrayEnd();
7272
}
7373

74+
if(requestObject.IsSetAudioPtsOffsetDelta())
75+
{
76+
context.Writer.WritePropertyName("audioPtsOffsetDelta");
77+
context.Writer.Write(requestObject.AudioPtsOffsetDelta);
78+
}
79+
7480
if(requestObject.IsSetDataPTSControl())
7581
{
7682
context.Writer.WritePropertyName("dataPTSControl");

0 commit comments

Comments
 (0)