@imferno/node 3.0.2-fix-review-extension-sequences.1e3de9e → 3.0.2-fix-review-cpl-parse-appid.e0ff9f4
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/codes.d.ts +14 -6
- package/codes.js +14 -6
- package/package.json +7 -7
- package/types.d.ts +14 -21
package/codes.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare const codes: {
|
|
|
19
19
|
readonly ST429_8: {
|
|
20
20
|
readonly SizeMismatch: "ST429-8/SizeMismatch";
|
|
21
21
|
readonly ChecksumMismatch: "ST429-8/ChecksumMismatch";
|
|
22
|
+
readonly MalformedXml: "ST429-8/MalformedXml";
|
|
22
23
|
};
|
|
23
24
|
readonly ST429_9: {
|
|
24
25
|
readonly AssetListEmpty: "ST429-9/AssetListEmpty";
|
|
@@ -33,10 +34,20 @@ export declare const codes: {
|
|
|
33
34
|
readonly AssetMapHasNoPackingList: "ST429-9/AssetMapHasNoPackingList";
|
|
34
35
|
readonly PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap";
|
|
35
36
|
readonly AssetMapMalformedXml: "ST429-9/AssetMapMalformedXml";
|
|
37
|
+
readonly PackingListFlagNotPkl: "ST429-9/PackingListFlagNotPkl";
|
|
38
|
+
readonly VolumeCountNotOne: "ST429-9/VolumeCountNotOne";
|
|
39
|
+
readonly ChunkCountNotOne: "ST429-9/ChunkCountNotOne";
|
|
40
|
+
readonly ChunkVolumeIndexNotOne: "ST429-9/ChunkVolumeIndexNotOne";
|
|
41
|
+
readonly ChunkOffsetNotZero: "ST429-9/ChunkOffsetNotZero";
|
|
42
|
+
readonly ChunkLengthMismatch: "ST429-9/ChunkLengthMismatch";
|
|
43
|
+
readonly SymbolicLink: "ST429-9/SymbolicLink";
|
|
36
44
|
};
|
|
37
45
|
readonly ST2067_2: {
|
|
38
46
|
readonly NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist";
|
|
47
|
+
readonly ApplicationIdentificationMissing: "ST2067-2/ApplicationIdentificationMissing";
|
|
48
|
+
readonly ApplicationIdentificationDuplicate: "ST2067-2/ApplicationIdentificationDuplicate";
|
|
39
49
|
readonly PklMalformedXml: "ST2067-2/PklMalformedXml";
|
|
50
|
+
readonly NoPackingList: "ST2067-2/NoPackingList";
|
|
40
51
|
readonly NoCpls: "ST2067-2/NoCpls";
|
|
41
52
|
readonly SizeMismatch: "ST2067-2/SizeMismatch";
|
|
42
53
|
readonly FileNotFound: "ST2067-2/FileNotFound";
|
|
@@ -88,6 +99,7 @@ export declare const codes: {
|
|
|
88
99
|
readonly TimedTextMappingKindNot0x13: "ST2067-2/TimedTextMappingKindNot0x13";
|
|
89
100
|
readonly MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount";
|
|
90
101
|
readonly AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing";
|
|
102
|
+
readonly TrackFileMediaType: "ST2067-2/TrackFileMediaType";
|
|
91
103
|
};
|
|
92
104
|
readonly ST2067_3: {
|
|
93
105
|
readonly ContentTitleEmpty: "ST2067-3/ContentTitleEmpty";
|
|
@@ -115,11 +127,8 @@ export declare const codes: {
|
|
|
115
127
|
readonly TrackFileId: "ST2067-3/TrackFileId";
|
|
116
128
|
readonly SourceEncodingMissing: "ST2067-3/SourceEncodingMissing";
|
|
117
129
|
readonly VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity";
|
|
118
|
-
readonly VirtualTrackSequenceKind: "ST2067-3/VirtualTrackSequenceKind";
|
|
119
|
-
readonly ExtensionSequenceNotSequenceType: "ST2067-3/ExtensionSequenceNotSequenceType";
|
|
120
|
-
readonly ResourceTypeMixed: "ST2067-3/ResourceTypeMixed";
|
|
121
|
-
readonly MarkerSequenceResourceType: "ST2067-3/MarkerSequenceResourceType";
|
|
122
130
|
readonly DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor";
|
|
131
|
+
readonly CplMediaType: "ST2067-3/CplMediaType";
|
|
123
132
|
readonly UniqueSequenceId: "ST2067-3/UniqueSequenceId";
|
|
124
133
|
readonly ContentMaturityRatingAgencyDuplicate: "ST2067-3/ContentMaturityRatingAgencyDuplicate";
|
|
125
134
|
readonly LocaleRegionInvalid: "ST2067-3/LocaleRegionInvalid";
|
|
@@ -261,8 +270,6 @@ export declare const codes: {
|
|
|
261
270
|
readonly NotValidated: "XSD/NotValidated";
|
|
262
271
|
};
|
|
263
272
|
readonly IMFERNO: {
|
|
264
|
-
readonly ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated";
|
|
265
|
-
readonly SequenceListUnreadable: "IMFERNO/SequenceListUnreadable";
|
|
266
273
|
readonly EditionAssumed: "IMFERNO/EditionAssumed";
|
|
267
274
|
readonly EditionConflict: "IMFERNO/EditionConflict";
|
|
268
275
|
readonly EditionPinned: "IMFERNO/EditionPinned";
|
|
@@ -280,6 +287,7 @@ export declare const codes: {
|
|
|
280
287
|
readonly ParseError: "IMFERNO/ParseError";
|
|
281
288
|
readonly PklParseError: "IMFERNO/PklParseError";
|
|
282
289
|
readonly XmlAssetParseError: "IMFERNO/XmlAssetParseError";
|
|
290
|
+
readonly CplUnparseable: "IMFERNO/CplUnparseable";
|
|
283
291
|
readonly XmlReadError: "IMFERNO/XmlReadError";
|
|
284
292
|
readonly ReadDirError: "IMFERNO/ReadDirError";
|
|
285
293
|
readonly DirEntryError: "IMFERNO/DirEntryError";
|
package/codes.js
CHANGED
|
@@ -19,6 +19,7 @@ const codes = {
|
|
|
19
19
|
ST429_8: {
|
|
20
20
|
SizeMismatch: "ST429-8/SizeMismatch",
|
|
21
21
|
ChecksumMismatch: "ST429-8/ChecksumMismatch",
|
|
22
|
+
MalformedXml: "ST429-8/MalformedXml",
|
|
22
23
|
},
|
|
23
24
|
ST429_9: {
|
|
24
25
|
AssetListEmpty: "ST429-9/AssetListEmpty",
|
|
@@ -33,10 +34,20 @@ const codes = {
|
|
|
33
34
|
AssetMapHasNoPackingList: "ST429-9/AssetMapHasNoPackingList",
|
|
34
35
|
PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap",
|
|
35
36
|
AssetMapMalformedXml: "ST429-9/AssetMapMalformedXml",
|
|
37
|
+
PackingListFlagNotPkl: "ST429-9/PackingListFlagNotPkl",
|
|
38
|
+
VolumeCountNotOne: "ST429-9/VolumeCountNotOne",
|
|
39
|
+
ChunkCountNotOne: "ST429-9/ChunkCountNotOne",
|
|
40
|
+
ChunkVolumeIndexNotOne: "ST429-9/ChunkVolumeIndexNotOne",
|
|
41
|
+
ChunkOffsetNotZero: "ST429-9/ChunkOffsetNotZero",
|
|
42
|
+
ChunkLengthMismatch: "ST429-9/ChunkLengthMismatch",
|
|
43
|
+
SymbolicLink: "ST429-9/SymbolicLink",
|
|
36
44
|
},
|
|
37
45
|
ST2067_2: {
|
|
38
46
|
NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist",
|
|
47
|
+
ApplicationIdentificationMissing: "ST2067-2/ApplicationIdentificationMissing",
|
|
48
|
+
ApplicationIdentificationDuplicate: "ST2067-2/ApplicationIdentificationDuplicate",
|
|
39
49
|
PklMalformedXml: "ST2067-2/PklMalformedXml",
|
|
50
|
+
NoPackingList: "ST2067-2/NoPackingList",
|
|
40
51
|
NoCpls: "ST2067-2/NoCpls",
|
|
41
52
|
SizeMismatch: "ST2067-2/SizeMismatch",
|
|
42
53
|
FileNotFound: "ST2067-2/FileNotFound",
|
|
@@ -88,6 +99,7 @@ const codes = {
|
|
|
88
99
|
TimedTextMappingKindNot0x13: "ST2067-2/TimedTextMappingKindNot0x13",
|
|
89
100
|
MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount",
|
|
90
101
|
AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing",
|
|
102
|
+
TrackFileMediaType: "ST2067-2/TrackFileMediaType",
|
|
91
103
|
},
|
|
92
104
|
ST2067_3: {
|
|
93
105
|
ContentTitleEmpty: "ST2067-3/ContentTitleEmpty",
|
|
@@ -115,11 +127,8 @@ const codes = {
|
|
|
115
127
|
TrackFileId: "ST2067-3/TrackFileId",
|
|
116
128
|
SourceEncodingMissing: "ST2067-3/SourceEncodingMissing",
|
|
117
129
|
VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity",
|
|
118
|
-
VirtualTrackSequenceKind: "ST2067-3/VirtualTrackSequenceKind",
|
|
119
|
-
ExtensionSequenceNotSequenceType: "ST2067-3/ExtensionSequenceNotSequenceType",
|
|
120
|
-
ResourceTypeMixed: "ST2067-3/ResourceTypeMixed",
|
|
121
|
-
MarkerSequenceResourceType: "ST2067-3/MarkerSequenceResourceType",
|
|
122
130
|
DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor",
|
|
131
|
+
CplMediaType: "ST2067-3/CplMediaType",
|
|
123
132
|
UniqueSequenceId: "ST2067-3/UniqueSequenceId",
|
|
124
133
|
ContentMaturityRatingAgencyDuplicate: "ST2067-3/ContentMaturityRatingAgencyDuplicate",
|
|
125
134
|
LocaleRegionInvalid: "ST2067-3/LocaleRegionInvalid",
|
|
@@ -261,8 +270,6 @@ const codes = {
|
|
|
261
270
|
NotValidated: "XSD/NotValidated",
|
|
262
271
|
},
|
|
263
272
|
IMFERNO: {
|
|
264
|
-
ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated",
|
|
265
|
-
SequenceListUnreadable: "IMFERNO/SequenceListUnreadable",
|
|
266
273
|
EditionAssumed: "IMFERNO/EditionAssumed",
|
|
267
274
|
EditionConflict: "IMFERNO/EditionConflict",
|
|
268
275
|
EditionPinned: "IMFERNO/EditionPinned",
|
|
@@ -280,6 +287,7 @@ const codes = {
|
|
|
280
287
|
ParseError: "IMFERNO/ParseError",
|
|
281
288
|
PklParseError: "IMFERNO/PklParseError",
|
|
282
289
|
XmlAssetParseError: "IMFERNO/XmlAssetParseError",
|
|
290
|
+
CplUnparseable: "IMFERNO/CplUnparseable",
|
|
283
291
|
XmlReadError: "IMFERNO/XmlReadError",
|
|
284
292
|
ReadDirError: "IMFERNO/ReadDirError",
|
|
285
293
|
DirEntryError: "IMFERNO/DirEntryError",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imferno/node",
|
|
3
|
-
"version": "3.0.2-fix-review-
|
|
3
|
+
"version": "3.0.2-fix-review-cpl-parse-appid.e0ff9f4",
|
|
4
4
|
"description": "Native Node.js bindings for the imferno SMPTE ST 2067 IMF validator",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"test": "vitest run"
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
|
-
"@imferno/node-darwin-arm64": "3.0.2-fix-review-
|
|
49
|
-
"@imferno/node-darwin-x64": "3.0.2-fix-review-
|
|
50
|
-
"@imferno/node-linux-x64-gnu": "3.0.2-fix-review-
|
|
51
|
-
"@imferno/node-linux-arm64-gnu": "3.0.2-fix-review-
|
|
52
|
-
"@imferno/node-win32-x64-msvc": "3.0.2-fix-review-
|
|
53
|
-
"@imferno/node-win32-arm64-msvc": "3.0.2-fix-review-
|
|
48
|
+
"@imferno/node-darwin-arm64": "3.0.2-fix-review-cpl-parse-appid.e0ff9f4",
|
|
49
|
+
"@imferno/node-darwin-x64": "3.0.2-fix-review-cpl-parse-appid.e0ff9f4",
|
|
50
|
+
"@imferno/node-linux-x64-gnu": "3.0.2-fix-review-cpl-parse-appid.e0ff9f4",
|
|
51
|
+
"@imferno/node-linux-arm64-gnu": "3.0.2-fix-review-cpl-parse-appid.e0ff9f4",
|
|
52
|
+
"@imferno/node-win32-x64-msvc": "3.0.2-fix-review-cpl-parse-appid.e0ff9f4",
|
|
53
|
+
"@imferno/node-win32-arm64-msvc": "3.0.2-fix-review-cpl-parse-appid.e0ff9f4"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
package/types.d.ts
CHANGED
|
@@ -355,10 +355,6 @@ export interface ValidationReport {
|
|
|
355
355
|
* Whether the package is compliant with base SMPTE standards
|
|
356
356
|
*/
|
|
357
357
|
is_compliant: boolean;
|
|
358
|
-
/**
|
|
359
|
-
* Whether everything in the package was validated. False when a finding says part of it was not (e.g. `IMFERNO:Cpl/ExtensionSequenceNotValidated` for S-ADM audio): then `is_compliant` only covers what was checked. A rule override that switches such a finding `off` moves it to `suppressed` but keeps this false.
|
|
360
|
-
*/
|
|
361
|
-
is_fully_validated: boolean;
|
|
362
358
|
/**
|
|
363
359
|
* Whether the package is playable despite issues
|
|
364
360
|
*/
|
|
@@ -560,10 +556,21 @@ export interface ChunkList {
|
|
|
560
556
|
* A single file path entry in a ChunkList.
|
|
561
557
|
*/
|
|
562
558
|
export interface Chunk {
|
|
559
|
+
/**
|
|
560
|
+
* `<Length>` in bytes, when present.
|
|
561
|
+
*/
|
|
562
|
+
length?: number | null;
|
|
563
|
+
/**
|
|
564
|
+
* `<Offset>` in bytes, when present.
|
|
565
|
+
*/
|
|
566
|
+
offset?: number | null;
|
|
563
567
|
/**
|
|
564
568
|
* File path relative to the IMP root directory.
|
|
565
569
|
*/
|
|
566
570
|
path: string;
|
|
571
|
+
/**
|
|
572
|
+
* `<VolumeIndex>`; 1 when absent.
|
|
573
|
+
*/
|
|
567
574
|
volumeIndex: number;
|
|
568
575
|
}
|
|
569
576
|
/**
|
|
@@ -909,9 +916,9 @@ export interface IABEssenceDescriptor {
|
|
|
909
916
|
*/
|
|
910
917
|
ContainerFormat?: string | null;
|
|
911
918
|
/**
|
|
912
|
-
* ST 2067-201 §5.9: ElectrospatialFormulation shall
|
|
919
|
+
* ST 2067-201 §5.9: if present, ElectrospatialFormulation shall be 15 (multi-channel mode default). Kept as written: RegXML writes the enumeration as its register symbol (`ElectroSpatialFormulation_MultiChannelMode`), some writers as the number. See `IABEssenceDescriptor::electrospatial_formulation_value`.
|
|
913
920
|
*/
|
|
914
|
-
ElectrospatialFormulation?:
|
|
921
|
+
ElectrospatialFormulation?: string | null;
|
|
915
922
|
InstanceID?: string | null;
|
|
916
923
|
LinkedTrackID?: number | null;
|
|
917
924
|
/**
|
|
@@ -1158,10 +1165,6 @@ export interface Segment {
|
|
|
1158
1165
|
SequenceList: SequenceList;
|
|
1159
1166
|
}
|
|
1160
1167
|
export interface SequenceList {
|
|
1161
|
-
/**
|
|
1162
|
-
* 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.
|
|
1163
|
-
*/
|
|
1164
|
-
ExtensionSequence?: ExtensionSequence[];
|
|
1165
1168
|
ForcedNarrativeSequence?: ForcedNarrativeSequence[];
|
|
1166
1169
|
HearingImpairedCaptionsSequence?: HearingImpairedCaptionsSequence[];
|
|
1167
1170
|
IABSequence?: IABSequence[];
|
|
@@ -1171,13 +1174,8 @@ export interface SequenceList {
|
|
|
1171
1174
|
MarkerSequence?: MarkerSequence[];
|
|
1172
1175
|
SubtitlesSequence?: SubtitlesSequence[];
|
|
1173
1176
|
}
|
|
1174
|
-
|
|
1175
|
-
* 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).
|
|
1176
|
-
*/
|
|
1177
|
-
export interface ExtensionSequence {
|
|
1177
|
+
export interface ForcedNarrativeSequence {
|
|
1178
1178
|
Id: ImfUuid;
|
|
1179
|
-
Name?: string;
|
|
1180
|
-
Namespace?: string | null;
|
|
1181
1179
|
ResourceList: ResourceList;
|
|
1182
1180
|
TrackId: ImfUuid;
|
|
1183
1181
|
}
|
|
@@ -1221,11 +1219,6 @@ export interface MarkerInfo {
|
|
|
1221
1219
|
Label: MarkerLabelElement;
|
|
1222
1220
|
Offset: number;
|
|
1223
1221
|
}
|
|
1224
|
-
export interface ForcedNarrativeSequence {
|
|
1225
|
-
Id: ImfUuid;
|
|
1226
|
-
ResourceList: ResourceList;
|
|
1227
|
-
TrackId: ImfUuid;
|
|
1228
|
-
}
|
|
1229
1222
|
export interface HearingImpairedCaptionsSequence {
|
|
1230
1223
|
Id: ImfUuid;
|
|
1231
1224
|
ResourceList: ResourceList;
|