-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgpac.schema.json
108 lines (108 loc) · 2.6 KB
/
gpac.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "GPAC MP4Box declaration schema",
"$defs": {
"mp4ra_boxes": {},
"box_descendant": {
"if": {
"type": "object",
"properties": {
"@Type": {
"type": "string"
}
},
"required": ["@Type"]
},
"then": {
"$ref": "#/$defs/box"
}
},
"box": {
"type": "object",
"if": {
"properties": {
"@Type": {
"type": "string",
"$ref": "#/$defs/mp4ra_boxes"
}
},
"required": ["@Type"]
},
"then": {
"properties": {
"@Size": {
"anyOf": [
{ "type": "integer" },
{ "type": "string", "pattern": "^[0-9]+$" }
]
},
"@Type": {
"type": "string",
"description": "fourcc of the box",
"pattern": "^[^\\x00-\\x1F\\x7F]{4}$"
},
"@Version": {
"anyOf": [
{ "type": "integer" },
{ "type": "string", "pattern": "^[0-9]+$" }
]
},
"@Flags": {
"anyOf": [
{ "type": "integer" },
{ "type": "string", "pattern": "^[0-9]+$" }
],
"description": "Combined flags in base 10"
},
"@Specification": { "type": "string" },
"@Container": { "type": "string" }
},
"patternProperties": {
"^(?![@#]).+": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/box_descendant"
}
},
{ "$ref": "#/$defs/box_descendant" }
]
}
},
"additionalProperties": true,
"required": ["@Type"]
}
}
},
"type": "object",
"properties": {
"IsoMediaFile": {
"type": "object",
"description": "Root box of the file",
"patternProperties": {
"^(?![@#]).+": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/box"
}
},
{ "$ref": "#/$defs/box" }
]
}
},
"additionalProperties": true
},
"manualDump": {
"type": "boolean",
"description": "If true, the conformance file was manually dumped"
},
"mp4boxVersion": {
"type": "string",
"description": "First line of 'MP4Box -version'"
}
},
"required": ["IsoMediaFile", "mp4boxVersion"]
}