@imferno/schema 3.0.2-beta.af1c617 → 3.0.2-beta.b011ba1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/index.d.ts +6 -0
- package/index.js +4 -0
- package/package.json +1 -1
- package/schemas/asset-map.json +21 -0
- package/schemas/composition-playlist.json +168 -1
- package/schemas/imf-report.json +268 -8
- package/schemas/imferno-package.json +3545 -0
- package/schemas/rules-config.json +1 -1
- package/schemas/validation-report.json +182 -8
- package/schemas/validation-result.json +4256 -0
package/README.md
CHANGED
|
@@ -29,6 +29,8 @@ if (validate(data)) {
|
|
|
29
29
|
|
|
30
30
|
| Export | Description |
|
|
31
31
|
|--------|-------------|
|
|
32
|
+
| `validationResult` | `{ package, validation }` as returned by `validate()` in `@imferno/node` |
|
|
33
|
+
| `imfernoPackage` | Full parsed package as returned by `parsePackage()` in `@imferno/node` |
|
|
32
34
|
| `imfReport` | Full IMF package report (metadata + validation + CPL analysis) |
|
|
33
35
|
| `validationReport` | Validation issues and diagnostics |
|
|
34
36
|
| `compositionPlaylist` | SMPTE ST 2067-3 Composition Playlist |
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/** A JSON Schema object (Draft 7). */
|
|
2
2
|
type JsonSchema = Record<string, unknown>;
|
|
3
3
|
|
|
4
|
+
/** `{ package, validation }` as returned by `validate()` in @imferno/node. */
|
|
5
|
+
export declare const validationResult: JsonSchema;
|
|
6
|
+
/** The full parsed package (`Imferno`) as returned by `parsePackage()` in @imferno/node. */
|
|
7
|
+
export declare const imfernoPackage: JsonSchema;
|
|
4
8
|
export declare const imfReport: JsonSchema;
|
|
5
9
|
export declare const validationReport: JsonSchema;
|
|
6
10
|
export declare const compositionPlaylist: JsonSchema;
|
|
@@ -10,6 +14,8 @@ export declare const volumeIndex: JsonSchema;
|
|
|
10
14
|
export declare const rulesConfig: JsonSchema;
|
|
11
15
|
|
|
12
16
|
export declare const schemas: {
|
|
17
|
+
validationResult: JsonSchema;
|
|
18
|
+
imfernoPackage: JsonSchema;
|
|
13
19
|
imfReport: JsonSchema;
|
|
14
20
|
validationReport: JsonSchema;
|
|
15
21
|
compositionPlaylist: JsonSchema;
|
package/index.js
CHANGED
|
@@ -9,6 +9,8 @@ function loadSchema(name) {
|
|
|
9
9
|
return JSON.parse(readFileSync(join(schemasDir, `${name}.json`), "utf-8"));
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
export const validationResult = loadSchema("validation-result");
|
|
13
|
+
export const imfernoPackage = loadSchema("imferno-package");
|
|
12
14
|
export const imfReport = loadSchema("imf-report");
|
|
13
15
|
export const validationReport = loadSchema("validation-report");
|
|
14
16
|
export const compositionPlaylist = loadSchema("composition-playlist");
|
|
@@ -18,6 +20,8 @@ export const volumeIndex = loadSchema("volume-index");
|
|
|
18
20
|
export const rulesConfig = loadSchema("rules-config");
|
|
19
21
|
|
|
20
22
|
export const schemas = {
|
|
23
|
+
validationResult,
|
|
24
|
+
imfernoPackage,
|
|
21
25
|
imfReport,
|
|
22
26
|
validationReport,
|
|
23
27
|
compositionPlaylist,
|
package/package.json
CHANGED
package/schemas/asset-map.json
CHANGED
|
@@ -101,11 +101,32 @@
|
|
|
101
101
|
"volumeIndex"
|
|
102
102
|
],
|
|
103
103
|
"properties": {
|
|
104
|
+
"length": {
|
|
105
|
+
"description": "`<Length>` in bytes, when present.",
|
|
106
|
+
"default": null,
|
|
107
|
+
"type": [
|
|
108
|
+
"integer",
|
|
109
|
+
"null"
|
|
110
|
+
],
|
|
111
|
+
"format": "uint64",
|
|
112
|
+
"minimum": 0.0
|
|
113
|
+
},
|
|
114
|
+
"offset": {
|
|
115
|
+
"description": "`<Offset>` in bytes, when present.",
|
|
116
|
+
"default": null,
|
|
117
|
+
"type": [
|
|
118
|
+
"integer",
|
|
119
|
+
"null"
|
|
120
|
+
],
|
|
121
|
+
"format": "uint64",
|
|
122
|
+
"minimum": 0.0
|
|
123
|
+
},
|
|
104
124
|
"path": {
|
|
105
125
|
"description": "File path relative to the IMP root directory.",
|
|
106
126
|
"type": "string"
|
|
107
127
|
},
|
|
108
128
|
"volumeIndex": {
|
|
129
|
+
"description": "`<VolumeIndex>`; 1 when absent.",
|
|
109
130
|
"type": "integer",
|
|
110
131
|
"format": "uint32",
|
|
111
132
|
"minimum": 0.0
|
|
@@ -975,6 +975,37 @@
|
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
977
|
},
|
|
978
|
+
"ExtensionSequence": {
|
|
979
|
+
"description": "A Sequence of a kind imferno does not model (ST 2067-3 §6.9.3 Extension Sequence). Every Sequence derives from SequenceType, so its Id, TrackId and Resources are kept; the element is named by `name` (local name) and `namespace` (namespace URI; null when the element has no namespace).",
|
|
980
|
+
"type": "object",
|
|
981
|
+
"required": [
|
|
982
|
+
"Id",
|
|
983
|
+
"ResourceList",
|
|
984
|
+
"TrackId"
|
|
985
|
+
],
|
|
986
|
+
"properties": {
|
|
987
|
+
"Id": {
|
|
988
|
+
"$ref": "#/definitions/ImfUuid"
|
|
989
|
+
},
|
|
990
|
+
"Name": {
|
|
991
|
+
"default": "",
|
|
992
|
+
"type": "string"
|
|
993
|
+
},
|
|
994
|
+
"Namespace": {
|
|
995
|
+
"default": null,
|
|
996
|
+
"type": [
|
|
997
|
+
"string",
|
|
998
|
+
"null"
|
|
999
|
+
]
|
|
1000
|
+
},
|
|
1001
|
+
"ResourceList": {
|
|
1002
|
+
"$ref": "#/definitions/ResourceList"
|
|
1003
|
+
},
|
|
1004
|
+
"TrackId": {
|
|
1005
|
+
"$ref": "#/definitions/ImfUuid"
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
978
1009
|
"ForcedNarrativeSequence": {
|
|
979
1010
|
"type": "object",
|
|
980
1011
|
"required": [
|
|
@@ -1014,7 +1045,7 @@
|
|
|
1014
1045
|
}
|
|
1015
1046
|
},
|
|
1016
1047
|
"IABChannelSubDescriptor": {
|
|
1017
|
-
"description": "Presence-only stub for ST 2067-201:2026 Annex E `IABChannelSubDescriptor`.\n\nThe 2026 spec defines the full item set in Table E.1 (`IABBedMetaID`, `IABChannelID`, `IABAudioDescription`, `IABAudioDescriptionText`); imferno's CPL parser only needs to count occurrences to fire the `IabChannelSubDescriptorRecommended`
|
|
1048
|
+
"description": "Presence-only stub for ST 2067-201:2026 Annex E `IABChannelSubDescriptor`.\n\nThe 2026 spec defines the full item set in Table E.1 (`IABBedMetaID`, `IABChannelID`, `IABAudioDescription`, `IABAudioDescriptionText`); imferno's CPL parser only needs to count occurrences to fire the `IabChannelSubDescriptorRecommended` notice, so the inner shape is intentionally permissive — any nested content deserialises into the catch-all map without affecting presence.",
|
|
1018
1049
|
"type": "object",
|
|
1019
1050
|
"properties": {
|
|
1020
1051
|
"IABBedMetaID": {
|
|
@@ -1244,6 +1275,14 @@
|
|
|
1244
1275
|
"description": "ISXD (Immersive Sound XML Data) essence descriptor — Dolby Atmos sidecar format",
|
|
1245
1276
|
"type": "object",
|
|
1246
1277
|
"properties": {
|
|
1278
|
+
"ContainerFormat": {
|
|
1279
|
+
"description": "ST 2067-202 §9.1: the Essence Container UL shall be the Frame Wrapped ISXD Container UL (Table 3).",
|
|
1280
|
+
"default": null,
|
|
1281
|
+
"type": [
|
|
1282
|
+
"string",
|
|
1283
|
+
"null"
|
|
1284
|
+
]
|
|
1285
|
+
},
|
|
1247
1286
|
"DataEssenceCoding": {
|
|
1248
1287
|
"default": null,
|
|
1249
1288
|
"type": [
|
|
@@ -1353,6 +1392,21 @@
|
|
|
1353
1392
|
}
|
|
1354
1393
|
}
|
|
1355
1394
|
},
|
|
1395
|
+
"J2KCcapi": {
|
|
1396
|
+
"description": "`Ccapi` array of `J2KExtendedCapabilities`.",
|
|
1397
|
+
"type": "object",
|
|
1398
|
+
"properties": {
|
|
1399
|
+
"UInt16": {
|
|
1400
|
+
"default": [],
|
|
1401
|
+
"type": "array",
|
|
1402
|
+
"items": {
|
|
1403
|
+
"type": "integer",
|
|
1404
|
+
"format": "uint16",
|
|
1405
|
+
"minimum": 0.0
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1356
1410
|
"J2KComponentSizing": {
|
|
1357
1411
|
"description": "Individual J2K component sizing",
|
|
1358
1412
|
"type": "object",
|
|
@@ -1393,6 +1447,18 @@
|
|
|
1393
1447
|
"description": "J2K Extended Capabilities (ISO/IEC 15444-15)",
|
|
1394
1448
|
"type": "object",
|
|
1395
1449
|
"properties": {
|
|
1450
|
+
"Ccapi": {
|
|
1451
|
+
"description": "Codestream capabilities (Ccap^i), one UInt16 per Pcap bit set, in increasing order of i (ISO/IEC 15444-1 CAP marker).",
|
|
1452
|
+
"default": null,
|
|
1453
|
+
"anyOf": [
|
|
1454
|
+
{
|
|
1455
|
+
"$ref": "#/definitions/J2KCcapi"
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
"type": "null"
|
|
1459
|
+
}
|
|
1460
|
+
]
|
|
1461
|
+
},
|
|
1396
1462
|
"Pcap": {
|
|
1397
1463
|
"description": "Profile capabilities (Pcap)",
|
|
1398
1464
|
"default": null,
|
|
@@ -2298,6 +2364,17 @@
|
|
|
2298
2364
|
}
|
|
2299
2365
|
]
|
|
2300
2366
|
},
|
|
2367
|
+
"LeftEye": {
|
|
2368
|
+
"description": "`LeftEye` of a `cc:StereoImageTrackFileResourceType` resource (ST 2067-2:2013, :2016 and :2020). A stereo resource carries its SourceEncoding and TrackFileId per eye, not on the resource itself.",
|
|
2369
|
+
"anyOf": [
|
|
2370
|
+
{
|
|
2371
|
+
"$ref": "#/definitions/StereoEye"
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
"type": "null"
|
|
2375
|
+
}
|
|
2376
|
+
]
|
|
2377
|
+
},
|
|
2301
2378
|
"Marker": {
|
|
2302
2379
|
"default": [],
|
|
2303
2380
|
"type": "array",
|
|
@@ -2314,6 +2391,17 @@
|
|
|
2314
2391
|
"format": "uint64",
|
|
2315
2392
|
"minimum": 0.0
|
|
2316
2393
|
},
|
|
2394
|
+
"RightEye": {
|
|
2395
|
+
"description": "`RightEye` of a `cc:StereoImageTrackFileResourceType` resource.",
|
|
2396
|
+
"anyOf": [
|
|
2397
|
+
{
|
|
2398
|
+
"$ref": "#/definitions/StereoEye"
|
|
2399
|
+
},
|
|
2400
|
+
{
|
|
2401
|
+
"type": "null"
|
|
2402
|
+
}
|
|
2403
|
+
]
|
|
2404
|
+
},
|
|
2317
2405
|
"SourceDuration": {
|
|
2318
2406
|
"default": null,
|
|
2319
2407
|
"type": [
|
|
@@ -2389,6 +2477,14 @@
|
|
|
2389
2477
|
"SequenceList": {
|
|
2390
2478
|
"type": "object",
|
|
2391
2479
|
"properties": {
|
|
2480
|
+
"ExtensionSequence": {
|
|
2481
|
+
"description": "Sequences whose element imferno does not model (ST 2067-3 §6.9.3 Extension Sequences, e.g. ST 2067-203 `MGASADMSignalSequence` or ST 2067-2 `CommentarySequence`), in document order. Filled by [`parse_cpl`] from the source XML so their EssenceDescriptor and Track File references resolve; no other rules are applied to them.",
|
|
2482
|
+
"default": [],
|
|
2483
|
+
"type": "array",
|
|
2484
|
+
"items": {
|
|
2485
|
+
"$ref": "#/definitions/ExtensionSequence"
|
|
2486
|
+
}
|
|
2487
|
+
},
|
|
2392
2488
|
"ForcedNarrativeSequence": {
|
|
2393
2489
|
"default": [],
|
|
2394
2490
|
"type": "array",
|
|
@@ -2490,6 +2586,63 @@
|
|
|
2490
2586
|
}
|
|
2491
2587
|
}
|
|
2492
2588
|
},
|
|
2589
|
+
"StereoEye": {
|
|
2590
|
+
"description": "One eye of a stereo resource: a `cpl:TrackFileResourceType` (ST 2067-2). Only the track file reference fields are kept; the eye's timing fields are checked by the XSD layer.",
|
|
2591
|
+
"type": "object",
|
|
2592
|
+
"properties": {
|
|
2593
|
+
"Hash": {
|
|
2594
|
+
"default": null,
|
|
2595
|
+
"type": [
|
|
2596
|
+
"string",
|
|
2597
|
+
"null"
|
|
2598
|
+
]
|
|
2599
|
+
},
|
|
2600
|
+
"Id": {
|
|
2601
|
+
"default": null,
|
|
2602
|
+
"anyOf": [
|
|
2603
|
+
{
|
|
2604
|
+
"$ref": "#/definitions/ImfUuid"
|
|
2605
|
+
},
|
|
2606
|
+
{
|
|
2607
|
+
"type": "null"
|
|
2608
|
+
}
|
|
2609
|
+
]
|
|
2610
|
+
},
|
|
2611
|
+
"KeyId": {
|
|
2612
|
+
"default": null,
|
|
2613
|
+
"anyOf": [
|
|
2614
|
+
{
|
|
2615
|
+
"$ref": "#/definitions/ImfUuid"
|
|
2616
|
+
},
|
|
2617
|
+
{
|
|
2618
|
+
"type": "null"
|
|
2619
|
+
}
|
|
2620
|
+
]
|
|
2621
|
+
},
|
|
2622
|
+
"SourceEncoding": {
|
|
2623
|
+
"default": null,
|
|
2624
|
+
"anyOf": [
|
|
2625
|
+
{
|
|
2626
|
+
"$ref": "#/definitions/ImfUuid"
|
|
2627
|
+
},
|
|
2628
|
+
{
|
|
2629
|
+
"type": "null"
|
|
2630
|
+
}
|
|
2631
|
+
]
|
|
2632
|
+
},
|
|
2633
|
+
"TrackFileId": {
|
|
2634
|
+
"default": null,
|
|
2635
|
+
"anyOf": [
|
|
2636
|
+
{
|
|
2637
|
+
"$ref": "#/definitions/ImfUuid"
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
"type": "null"
|
|
2641
|
+
}
|
|
2642
|
+
]
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
},
|
|
2493
2646
|
"SubtitlesSequence": {
|
|
2494
2647
|
"type": "object",
|
|
2495
2648
|
"required": [
|
|
@@ -2600,6 +2753,13 @@
|
|
|
2600
2753
|
"Jpeg2000Imf4k"
|
|
2601
2754
|
]
|
|
2602
2755
|
},
|
|
2756
|
+
{
|
|
2757
|
+
"description": "JPEG 2000 — IMF 8K profiles (byte [14]=0x04 Single Tile Lossy, 0x07 Single/Multi-Tile Reversible), at the Mainlevel/Sublevel combinations ST 2067-21:2026 §6.5.2 Table 5 lists. Only the 2026 edition of ST 2067-21 permits them.",
|
|
2758
|
+
"type": "string",
|
|
2759
|
+
"enum": [
|
|
2760
|
+
"Jpeg2000Imf8k"
|
|
2761
|
+
]
|
|
2762
|
+
},
|
|
2603
2763
|
{
|
|
2604
2764
|
"description": "JPEG 2000 — Broadcast Contribution profile (ST 422 §A.1, byte [14]=0x01, sub-levels 0x11–0x17). Supports stored widths ≤ 3840 per ST 2067-21.",
|
|
2605
2765
|
"type": "string",
|
|
@@ -2614,6 +2774,13 @@
|
|
|
2614
2774
|
"Jpeg2000Ht"
|
|
2615
2775
|
]
|
|
2616
2776
|
},
|
|
2777
|
+
{
|
|
2778
|
+
"description": "The HT-J2K Picture Coding Scheme node label (03010800, a NODE in the SMPTE Labels register). ST 2067-21:2023/2026 §6.2.5 require the leaf label 03010801 ([`VideoCodec::Jpeg2000Ht`]) instead.",
|
|
2779
|
+
"type": "string",
|
|
2780
|
+
"enum": [
|
|
2781
|
+
"Jpeg2000HtNode"
|
|
2782
|
+
]
|
|
2783
|
+
},
|
|
2617
2784
|
{
|
|
2618
2785
|
"description": "VC-5 (SMPTE ST 2117)",
|
|
2619
2786
|
"type": "string",
|