Skip to content

Commit dfabbf7

Browse files
This release adds support for DVB-DASH, EBU-TT-D subtitle format, and non-compacted manifests for DASH in MediaPackage v2 Origin Endpoints.
1 parent 6c867e7 commit dfabbf7

32 files changed

+3262
-10
lines changed

docgenerator/AWSSDKDocSamples/MediaPackageV2/MediaPackageV2.GeneratedSamples.cs

Lines changed: 74 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,20 +252,78 @@ public void MediaPackageV2CreateOriginEndpoint()
252252
ContainerType = "CMAF",
253253
DashManifests = new List<CreateDashManifestConfiguration> {
254254
new CreateDashManifestConfiguration {
255+
BaseUrls = new List<DashBaseUrl> {
256+
new DashBaseUrl {
257+
DvbPriority = 1,
258+
DvbWeight = 3,
259+
ServiceLocation = "A",
260+
Url = "http://example.com/"
261+
}
262+
},
263+
Compactness = "STANDARD",
255264
DrmSignaling = "INDIVIDUAL",
265+
DvbSettings = new DashDvbSettings {
266+
ErrorMetrics = new List<DashDvbMetricsReporting> {
267+
new DashDvbMetricsReporting {
268+
Probability = 500,
269+
ReportingUrl = "https://example.com/dvb-errors/errors"
270+
}
271+
},
272+
FontDownload = new DashDvbFontDownload {
273+
FontFamily = "SubtitleDisplay",
274+
MimeType = "application/font",
275+
Url = "https://example.com/fonts/SubtitleDisplay.woff"
276+
}
277+
},
256278
ManifestName = "exampleDashManifest1",
257279
ManifestWindowSeconds = 300,
258280
MinBufferTimeSeconds = 30,
259281
MinUpdatePeriodSeconds = 5,
260282
PeriodTriggers = new List<string> {
261283
"AVAILS"
262284
},
285+
Profiles = new List<string> {
286+
"DVB_DASH"
287+
},
288+
ProgramInformation = new DashProgramInformation {
289+
Copyright = "(c) Example. All rights reserved",
290+
LanguageCode = "en",
291+
MoreInformationUrl = "https://example.com/more-information",
292+
Source = "exampleSource",
293+
Title = "exampleTitle"
294+
},
263295
ScteDash = new ScteDash { AdMarkerDash = "XML" },
264296
SegmentTemplateFormat = "NUMBER_WITH_TIMELINE",
265-
SuggestedPresentationDelaySeconds = 2
297+
SuggestedPresentationDelaySeconds = 2,
298+
UtcTiming = new DashUtcTiming {
299+
TimingMode = "HTTP_HEAD",
300+
TimingSource = "example"
301+
}
266302
},
267303
new CreateDashManifestConfiguration {
304+
BaseUrls = new List<DashBaseUrl> {
305+
new DashBaseUrl {
306+
DvbPriority = 2,
307+
DvbWeight = 2,
308+
ServiceLocation = "B",
309+
Url = "http://example2.com/"
310+
}
311+
},
312+
Compactness = "STANDARD",
268313
DrmSignaling = "INDIVIDUAL",
314+
DvbSettings = new DashDvbSettings {
315+
ErrorMetrics = new List<DashDvbMetricsReporting> {
316+
new DashDvbMetricsReporting {
317+
Probability = 600,
318+
ReportingUrl = "https://example2.com/dvb-errors/errors"
319+
}
320+
},
321+
FontDownload = new DashDvbFontDownload {
322+
FontFamily = "SubtitleDisplay",
323+
MimeType = "application/font",
324+
Url = "https://example.com/fonts/SubtitleDisplay.woff"
325+
}
326+
},
269327
ManifestName = "exampleDashManifest2",
270328
ManifestWindowSeconds = 60,
271329
MinBufferTimeSeconds = 9,
@@ -276,9 +334,23 @@ public void MediaPackageV2CreateOriginEndpoint()
276334
"SOURCE_CHANGES",
277335
"SOURCE_DISRUPTIONS"
278336
},
337+
Profiles = new List<string> {
338+
"DVB_DASH"
339+
},
340+
ProgramInformation = new DashProgramInformation {
341+
Copyright = "(c) Example. All rights reserved",
342+
LanguageCode = "en",
343+
MoreInformationUrl = "https://example2.com/more-information",
344+
Source = "exampleSource2",
345+
Title = "exampleTitle2"
346+
},
279347
ScteDash = new ScteDash { AdMarkerDash = "XML" },
280348
SegmentTemplateFormat = "NUMBER_WITH_TIMELINE",
281-
SuggestedPresentationDelaySeconds = 12
349+
SuggestedPresentationDelaySeconds = 12,
350+
UtcTiming = new DashUtcTiming {
351+
TimingMode = "HTTP_HEAD",
352+
TimingSource = "example"
353+
}
282354
}
283355
},
284356
ForceEndpointErrorConfiguration = new ForceEndpointErrorConfiguration { EndpointErrorConditions = new List<string> {

generator/ServiceModels/mediapackagev2/mediapackagev2-2022-12-25.api.json

Lines changed: 186 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,13 @@
795795
"PeriodTriggers":{"shape":"DashPeriodTriggers"},
796796
"ScteDash":{"shape":"ScteDash"},
797797
"DrmSignaling":{"shape":"DashDrmSignaling"},
798-
"UtcTiming":{"shape":"DashUtcTiming"}
798+
"UtcTiming":{"shape":"DashUtcTiming"},
799+
"Profiles":{"shape":"DashProfiles"},
800+
"BaseUrls":{"shape":"DashBaseUrls"},
801+
"ProgramInformation":{"shape":"DashProgramInformation"},
802+
"DvbSettings":{"shape":"DashDvbSettings"},
803+
"Compactness":{"shape":"DashCompactness"},
804+
"SubtitleConfiguration":{"shape":"DashSubtitleConfiguration"}
799805
}
800806
},
801807
"CreateDashManifestConfigurationManifestWindowSecondsInteger":{
@@ -1030,13 +1036,114 @@
10301036
"Tags":{"shape":"TagMap"}
10311037
}
10321038
},
1039+
"DashBaseUrl":{
1040+
"type":"structure",
1041+
"required":["Url"],
1042+
"members":{
1043+
"Url":{"shape":"DashBaseUrlUrlString"},
1044+
"ServiceLocation":{"shape":"DashBaseUrlServiceLocationString"},
1045+
"DvbPriority":{"shape":"DashBaseUrlDvbPriorityInteger"},
1046+
"DvbWeight":{"shape":"DashBaseUrlDvbWeightInteger"}
1047+
}
1048+
},
1049+
"DashBaseUrlDvbPriorityInteger":{
1050+
"type":"integer",
1051+
"box":true,
1052+
"max":15000,
1053+
"min":1
1054+
},
1055+
"DashBaseUrlDvbWeightInteger":{
1056+
"type":"integer",
1057+
"box":true,
1058+
"max":15000,
1059+
"min":1
1060+
},
1061+
"DashBaseUrlServiceLocationString":{
1062+
"type":"string",
1063+
"max":2048,
1064+
"min":1
1065+
},
1066+
"DashBaseUrlUrlString":{
1067+
"type":"string",
1068+
"max":2048,
1069+
"min":1
1070+
},
1071+
"DashBaseUrls":{
1072+
"type":"list",
1073+
"member":{"shape":"DashBaseUrl"},
1074+
"max":20,
1075+
"min":0
1076+
},
1077+
"DashCompactness":{
1078+
"type":"string",
1079+
"enum":[
1080+
"STANDARD",
1081+
"NONE"
1082+
]
1083+
},
10331084
"DashDrmSignaling":{
10341085
"type":"string",
10351086
"enum":[
10361087
"INDIVIDUAL",
10371088
"REFERENCED"
10381089
]
10391090
},
1091+
"DashDvbErrorMetrics":{
1092+
"type":"list",
1093+
"member":{"shape":"DashDvbMetricsReporting"},
1094+
"max":20,
1095+
"min":0
1096+
},
1097+
"DashDvbFontDownload":{
1098+
"type":"structure",
1099+
"members":{
1100+
"Url":{"shape":"DashDvbFontDownloadUrlString"},
1101+
"MimeType":{"shape":"DashDvbFontDownloadMimeTypeString"},
1102+
"FontFamily":{"shape":"DashDvbFontDownloadFontFamilyString"}
1103+
}
1104+
},
1105+
"DashDvbFontDownloadFontFamilyString":{
1106+
"type":"string",
1107+
"max":256,
1108+
"min":1
1109+
},
1110+
"DashDvbFontDownloadMimeTypeString":{
1111+
"type":"string",
1112+
"max":256,
1113+
"min":1,
1114+
"pattern":"[a-zA-Z0-9][a-zA-Z0-9_/-]*[a-zA-Z0-9]"
1115+
},
1116+
"DashDvbFontDownloadUrlString":{
1117+
"type":"string",
1118+
"max":2048,
1119+
"min":1
1120+
},
1121+
"DashDvbMetricsReporting":{
1122+
"type":"structure",
1123+
"required":["ReportingUrl"],
1124+
"members":{
1125+
"ReportingUrl":{"shape":"DashDvbMetricsReportingReportingUrlString"},
1126+
"Probability":{"shape":"DashDvbMetricsReportingProbabilityInteger"}
1127+
}
1128+
},
1129+
"DashDvbMetricsReportingProbabilityInteger":{
1130+
"type":"integer",
1131+
"box":true,
1132+
"max":1000,
1133+
"min":1
1134+
},
1135+
"DashDvbMetricsReportingReportingUrlString":{
1136+
"type":"string",
1137+
"max":2048,
1138+
"min":1
1139+
},
1140+
"DashDvbSettings":{
1141+
"type":"structure",
1142+
"members":{
1143+
"FontDownload":{"shape":"DashDvbFontDownload"},
1144+
"ErrorMetrics":{"shape":"DashDvbErrorMetrics"}
1145+
}
1146+
},
10401147
"DashPeriodTrigger":{
10411148
"type":"string",
10421149
"enum":[
@@ -1053,10 +1160,76 @@
10531160
"max":100,
10541161
"min":0
10551162
},
1163+
"DashProfile":{
1164+
"type":"string",
1165+
"enum":["DVB_DASH"]
1166+
},
1167+
"DashProfiles":{
1168+
"type":"list",
1169+
"member":{"shape":"DashProfile"},
1170+
"max":5,
1171+
"min":0
1172+
},
1173+
"DashProgramInformation":{
1174+
"type":"structure",
1175+
"members":{
1176+
"Title":{"shape":"DashProgramInformationTitleString"},
1177+
"Source":{"shape":"DashProgramInformationSourceString"},
1178+
"Copyright":{"shape":"DashProgramInformationCopyrightString"},
1179+
"LanguageCode":{"shape":"DashProgramInformationLanguageCodeString"},
1180+
"MoreInformationUrl":{"shape":"DashProgramInformationMoreInformationUrlString"}
1181+
}
1182+
},
1183+
"DashProgramInformationCopyrightString":{
1184+
"type":"string",
1185+
"max":2048,
1186+
"min":1
1187+
},
1188+
"DashProgramInformationLanguageCodeString":{
1189+
"type":"string",
1190+
"max":5,
1191+
"min":2,
1192+
"pattern":"[a-zA-Z0-9][a-zA-Z0-9_-]*[a-zA-Z0-9]"
1193+
},
1194+
"DashProgramInformationMoreInformationUrlString":{
1195+
"type":"string",
1196+
"max":2048,
1197+
"min":1
1198+
},
1199+
"DashProgramInformationSourceString":{
1200+
"type":"string",
1201+
"max":2048,
1202+
"min":1
1203+
},
1204+
"DashProgramInformationTitleString":{
1205+
"type":"string",
1206+
"max":2048,
1207+
"min":1
1208+
},
10561209
"DashSegmentTemplateFormat":{
10571210
"type":"string",
10581211
"enum":["NUMBER_WITH_TIMELINE"]
10591212
},
1213+
"DashSubtitleConfiguration":{
1214+
"type":"structure",
1215+
"members":{
1216+
"TtmlConfiguration":{"shape":"DashTtmlConfiguration"}
1217+
}
1218+
},
1219+
"DashTtmlConfiguration":{
1220+
"type":"structure",
1221+
"required":["TtmlProfile"],
1222+
"members":{
1223+
"TtmlProfile":{"shape":"DashTtmlProfile"}
1224+
}
1225+
},
1226+
"DashTtmlProfile":{
1227+
"type":"string",
1228+
"enum":[
1229+
"IMSC_1",
1230+
"EBU_TT_D_101"
1231+
]
1232+
},
10601233
"DashUtcTiming":{
10611234
"type":"structure",
10621235
"members":{
@@ -1440,7 +1613,13 @@
14401613
"PeriodTriggers":{"shape":"DashPeriodTriggers"},
14411614
"ScteDash":{"shape":"ScteDash"},
14421615
"DrmSignaling":{"shape":"DashDrmSignaling"},
1443-
"UtcTiming":{"shape":"DashUtcTiming"}
1616+
"UtcTiming":{"shape":"DashUtcTiming"},
1617+
"Profiles":{"shape":"DashProfiles"},
1618+
"BaseUrls":{"shape":"DashBaseUrls"},
1619+
"ProgramInformation":{"shape":"DashProgramInformation"},
1620+
"DvbSettings":{"shape":"DashDvbSettings"},
1621+
"Compactness":{"shape":"DashCompactness"},
1622+
"SubtitleConfiguration":{"shape":"DashSubtitleConfiguration"}
14441623
}
14451624
},
14461625
"GetDashManifests":{
@@ -2693,7 +2872,11 @@
26932872
"CLIP_START_TIME_WITH_START_OR_END",
26942873
"START_TAG_TIME_OFFSET_INVALID",
26952874
"ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING",
2696-
"ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION"
2875+
"ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION",
2876+
"INCOMPATIBLE_DASH_PROFILE_DVB_DASH_CONFIGURATION",
2877+
"DASH_DVB_ATTRIBUTES_WITHOUT_DVB_DASH_PROFILE",
2878+
"INCOMPATIBLE_DASH_COMPACTNESS_CONFIGURATION",
2879+
"INCOMPATIBLE_XML_ENCODING"
26972880
]
26982881
}
26992882
}

0 commit comments

Comments
 (0)