forked from ebu/ebu-tt-d-xsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathebutt_metadata.xsd
166 lines (166 loc) · 10 KB
/
ebutt_metadata.xsd
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:ebu:tt:metadata" xmlns:ebuttm="urn:ebu:tt:metadata" xmlns:ebuttdt="urn:ebu:tt:datatypes" targetNamespace="urn:ebu:tt:metadata" elementFormDefault="qualified">
<xs:import namespace="urn:ebu:tt:datatypes" schemaLocation="ebutt_datatypes.xsd"/>
<xs:element name="documentMetadata">
<xs:annotation>
<xs:documentation>EBU-TT-D specific metadata that applies to the whole EBU-TT-D document.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="conformsToStandard" type="xs:anyURI" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Indicates the conformance with a specific standard that is derived from TTML. For EBU-TT-D the following URI shall be used: “urn:ebu:tt:distribution:2014-01”</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="authoredFrameRate" type="xs:positiveInteger" minOccurs="0">
<xs:annotation>
<xs:documentation>The ebuttm:authoredFrameRate element is used to specify the frame rate that was assumed (or measured) by the author of the document for the related media object when the EBU-TT-D document was created.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="authoredFrameRateMultiplier" type="ebuttdt:framerateMultiplierType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The ebuttm:authoredFrameRate element is used to specify the frame rate that was assumed (or measured) by the author of the document for the related media object when the EBU-TT-D document was created.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="documentEbuttVersion" minOccurs="0">
<xs:annotation>
<xs:documentation>The version of the EBU-TT-D standard used by the document instance.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="v1.0"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="documentIdentifier" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Identifier for an EBU-TT-D document that may be used as external reference to an EBU-TT-D document.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="documentOriginatingSystem" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Software and version used to create the EBU-TT-D document.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="documentTargetAspectRatio" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>The aspect ratio of the video the EBU-TT-D document was authored for, in width by height.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="documentTargetActiveFormatDescriptor" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>The code for the Active Format Descriptor (AFD) that specifies the active image in the active video (see “Definitions of terms”). The code shall be one of the AFD codes specified in SMPTE ST 2016 1:2009 “Format for Active Format Description and Bar Data” Table 1.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="documentIntendedTargetBarData" minOccurs="0">
<xs:annotation>
<xs:documentation>When an ebuttm:documentTargetActiveFormatDescriptor element is used in an EBU-TT-D document, an ebuttm:documentIntendedTargetBarData element may be used whenever the AFD alone is insufficient to describe the extent of the image (i.e. AFD values 0000 and 0100). The Bar Data shall be specified in accordance with SMPTE ST 2016 1:2009 “Format for Active Format Description and Bar Data” Table 3.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="position" use="required">
<xs:annotation>
<xs:documentation>Bar Data is defined in pairs, either top and bottom bars or left and right bars, but not both pairs at once. Bars may be unequal in size. One bar of a pair may be zero width or height.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="topBottom"/>
<xs:enumeration value="leftRight"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="lineNumberEndOfTopBar" type="xs:nonNegativeInteger">
<xs:annotation>
<xs:documentation>Last line of a horizontal letter box bar area at the top of the reconstructed frame. Designation of line numbers shall be based on the video standards and information specified in accordance with SMPTE ST 2016 1:2009. All Bar Data values shall be stated in values appropriate to a progressive frame system.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="lineNumberStartOfBottomBar" type="xs:nonNegativeInteger">
<xs:annotation>
<xs:documentation>First line of a horizontal letter box bar area at the bottom of the reconstructed frame. Designation of line numbers shall be based on the video standards and information specified in accordance with SMPTE ST 2016 1:2009. All Bar Data values shall be stated in values appropriate to a progressive frame system.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="pixelNumberEndOfLeftBar" type="xs:nonNegativeInteger">
<xs:annotation>
<xs:documentation>Last horizontal luminance sample of a vertical pillar box bar area at the left side of the reconstructed frame. Pixels shall be numbered from zero, starting with the leftmost pixel, based on the video standards and information specified in accordance with SMPTE ST 2016 1:2009.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="pixelNumberStartOfRightBar" type="xs:nonNegativeInteger">
<xs:annotation>
<xs:documentation>First horizontal luminance sample of a vertical pillar box bar area at the right side of the reconstructed frame. Pixels shall be numbered from zero, starting with the leftmost pixel, based on the video standards and information specified in accordance with SMPTE ST 2016 1:2009.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="documentIntendedTargetFormat" minOccurs="0">
<xs:annotation>
<xs:documentation>Indicates the subtitle format an author had in mind when authoring an EBU-TT-D document or transforming another format to an EBU-TT-D document.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="link" type="xs:anyURI">
<xs:annotation>
<xs:documentation>Reference to a term in a classification scheme.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="documentTranslatorsName" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Name of the translator. STL mapping: Translator's Name (TN). </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="documentTranslatorsContactDetails" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>The translator's contact details. STL mapping: Translator's Contact Details (TCD).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="documentCreationDate" type="xs:date" minOccurs="0">
<xs:annotation>
<xs:documentation>The date of creation of the EBU-TT-D document. STL mapping: Creation Date (CD). </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="documentRevisionDate" type="xs:date" minOccurs="0">
<xs:annotation>
<xs:documentation>The date of the most-recent modifications to the EBU-TT-D document. STL mapping: Revision Date (RD). </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="documentRevisionNumber" type="xs:nonNegativeInteger" minOccurs="0">
<xs:annotation>
<xs:documentation>The revision number of the EBU-TT-D document may be used to specify a particular version of the subtitle list. STL mapping: Revision Number (RN).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="documentCountryOfOrigin" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>The country of origin of the subtitle list. STL mapping: Country of Origin (CO). </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="documentPublisher" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Name of the publisher of the subtitle list. STL mapping: Publisher (PUB).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="documentEditorsName" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Name of the editor of the subtitle list. STL mapping: Editor's Name (EN).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="documentEditorsContactDetails" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Information about the editor named in the metadata element documentEditorsName. STL mapping: Editor's Contact Details (ECD). </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="documentUserDefinedArea" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>This field may be used to carry information about the programme or subtitle list, or other relevant details. STL mapping: User-Defined Area (UDA).</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>