doc/filters: apply various general fixes to vidstabdetect docs
[ffmpeg.git] / doc / ffprobe.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4     targetNamespace="http://www.ffmpeg.org/schema/ffprobe"
5     xmlns:ffprobe="http://www.ffmpeg.org/schema/ffprobe">
6
7     <xsd:element name="ffprobe" type="ffprobe:ffprobeType"/>
8
9     <xsd:complexType name="ffprobeType">
10         <xsd:sequence>
11             <xsd:element name="packets"  type="ffprobe:packetsType" minOccurs="0" maxOccurs="1" />
12             <xsd:element name="frames"   type="ffprobe:framesType"  minOccurs="0" maxOccurs="1" />
13             <xsd:element name="streams"  type="ffprobe:streamsType" minOccurs="0" maxOccurs="1" />
14             <xsd:element name="format"   type="ffprobe:formatType"  minOccurs="0" maxOccurs="1" />
15             <xsd:element name="error"    type="ffprobe:errorType"   minOccurs="0" maxOccurs="1" />
16             <xsd:element name="program_version"  type="ffprobe:programVersionType"  minOccurs="0" maxOccurs="1" />
17             <xsd:element name="library_versions" type="ffprobe:libraryVersionsType" minOccurs="0" maxOccurs="1" />
18         </xsd:sequence>
19     </xsd:complexType>
20
21     <xsd:complexType name="packetsType">
22         <xsd:sequence>
23             <xsd:element name="packet" type="ffprobe:packetType" minOccurs="0" maxOccurs="unbounded"/>
24         </xsd:sequence>
25     </xsd:complexType>
26
27     <xsd:complexType name="framesType">
28         <xsd:sequence>
29             <xsd:element name="frame" type="ffprobe:frameType" minOccurs="0" maxOccurs="unbounded"/>
30         </xsd:sequence>
31     </xsd:complexType>
32
33     <xsd:complexType name="packetType">
34       <xsd:attribute name="codec_type"    type="xsd:string" use="required" />
35       <xsd:attribute name="stream_index"  type="xsd:int" use="required" />
36       <xsd:attribute name="pts"           type="xsd:long"  />
37       <xsd:attribute name="pts_time"      type="xsd:float" />
38       <xsd:attribute name="dts"           type="xsd:long"  />
39       <xsd:attribute name="dts_time"      type="xsd:float" />
40       <xsd:attribute name="duration"      type="xsd:long"  />
41       <xsd:attribute name="duration_time" type="xsd:float" />
42       <xsd:attribute name="convergence_duration"      type="xsd:long"  />
43       <xsd:attribute name="convergence_duration_time" type="xsd:float" />
44       <xsd:attribute name="size"          type="xsd:long" use="required" />
45       <xsd:attribute name="pos"           type="xsd:long"  />
46       <xsd:attribute name="flags"         type="xsd:string" use="required" />
47       <xsd:attribute name="data"          type="xsd:string" />
48     </xsd:complexType>
49
50     <xsd:complexType name="frameType">
51       <xsd:attribute name="media_type"    type="xsd:string" use="required"/>
52       <xsd:attribute name="key_frame"     type="xsd:int"    use="required"/>
53       <xsd:attribute name="pts"           type="xsd:long" />
54       <xsd:attribute name="pts_time"      type="xsd:float"/>
55       <xsd:attribute name="pkt_pts"       type="xsd:long" />
56       <xsd:attribute name="pkt_pts_time"  type="xsd:float"/>
57       <xsd:attribute name="pkt_dts"       type="xsd:long" />
58       <xsd:attribute name="pkt_dts_time"  type="xsd:float"/>
59       <xsd:attribute name="pkt_duration"  type="xsd:long" />
60       <xsd:attribute name="pkt_duration_time" type="xsd:float"/>
61       <xsd:attribute name="pkt_pos"       type="xsd:long" />
62       <xsd:attribute name="pkt_size"      type="xsd:int" />
63
64       <!-- audio attributes -->
65       <xsd:attribute name="sample_fmt"             type="xsd:string"/>
66       <xsd:attribute name="nb_samples"             type="xsd:long"  />
67       <xsd:attribute name="channels"               type="xsd:int"   />
68       <xsd:attribute name="channel_layout"         type="xsd:string"/>
69
70       <!-- video attributes -->
71       <xsd:attribute name="width"                  type="xsd:long"  />
72       <xsd:attribute name="height"                 type="xsd:long"  />
73       <xsd:attribute name="pix_fmt"                type="xsd:string"/>
74       <xsd:attribute name="sample_aspect_ratio"    type="xsd:string"/>
75       <xsd:attribute name="pict_type"              type="xsd:string"/>
76       <xsd:attribute name="coded_picture_number"   type="xsd:long"  />
77       <xsd:attribute name="display_picture_number" type="xsd:long"  />
78       <xsd:attribute name="interlaced_frame"       type="xsd:int"   />
79       <xsd:attribute name="top_field_first"        type="xsd:int"   />
80       <xsd:attribute name="repeat_pict"            type="xsd:int"   />
81     </xsd:complexType>
82
83     <xsd:complexType name="streamsType">
84         <xsd:sequence>
85             <xsd:element name="stream" type="ffprobe:streamType" minOccurs="0" maxOccurs="unbounded"/>
86         </xsd:sequence>
87     </xsd:complexType>
88
89     <xsd:complexType name="streamDispositionType">
90       <xsd:attribute name="default"          type="xsd:int" use="required" />
91       <xsd:attribute name="dub"              type="xsd:int" use="required" />
92       <xsd:attribute name="original"         type="xsd:int" use="required" />
93       <xsd:attribute name="comment"          type="xsd:int" use="required" />
94       <xsd:attribute name="lyrics"           type="xsd:int" use="required" />
95       <xsd:attribute name="karaoke"          type="xsd:int" use="required" />
96       <xsd:attribute name="forced"           type="xsd:int" use="required" />
97       <xsd:attribute name="hearing_impaired" type="xsd:int" use="required" />
98       <xsd:attribute name="visual_impaired"  type="xsd:int" use="required" />
99       <xsd:attribute name="clean_effects"    type="xsd:int" use="required" />
100       <xsd:attribute name="attached_pic"     type="xsd:int" use="required" />
101     </xsd:complexType>
102
103     <xsd:complexType name="streamType">
104       <xsd:sequence>
105         <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
106         <xsd:element name="disposition" type="ffprobe:streamDispositionType" minOccurs="0" maxOccurs="1"/>
107       </xsd:sequence>
108
109       <xsd:attribute name="index"            type="xsd:int" use="required"/>
110       <xsd:attribute name="codec_name"       type="xsd:string" />
111       <xsd:attribute name="codec_long_name"  type="xsd:string" />
112       <xsd:attribute name="profile"          type="xsd:string" />
113       <xsd:attribute name="codec_type"       type="xsd:string" />
114       <xsd:attribute name="codec_time_base"  type="xsd:string" use="required"/>
115       <xsd:attribute name="codec_tag"        type="xsd:string" use="required"/>
116       <xsd:attribute name="codec_tag_string" type="xsd:string" use="required"/>
117       <xsd:attribute name="extradata"        type="xsd:string" />
118
119       <!-- video attributes -->
120       <xsd:attribute name="width"                type="xsd:int"/>
121       <xsd:attribute name="height"               type="xsd:int"/>
122       <xsd:attribute name="has_b_frames"         type="xsd:int"/>
123       <xsd:attribute name="sample_aspect_ratio"  type="xsd:string"/>
124       <xsd:attribute name="display_aspect_ratio" type="xsd:string"/>
125       <xsd:attribute name="pix_fmt"              type="xsd:string"/>
126       <xsd:attribute name="level"                type="xsd:int"/>
127       <xsd:attribute name="timecode"             type="xsd:string"/>
128
129       <!-- audio attributes -->
130       <xsd:attribute name="sample_fmt"       type="xsd:string"/>
131       <xsd:attribute name="sample_rate"      type="xsd:int"/>
132       <xsd:attribute name="channels"         type="xsd:int"/>
133       <xsd:attribute name="bits_per_sample"  type="xsd:int"/>
134
135       <xsd:attribute name="id"               type="xsd:string"/>
136       <xsd:attribute name="r_frame_rate"     type="xsd:string" use="required"/>
137       <xsd:attribute name="avg_frame_rate"   type="xsd:string" use="required"/>
138       <xsd:attribute name="time_base"        type="xsd:string" use="required"/>
139       <xsd:attribute name="start_pts"        type="xsd:long"/>
140       <xsd:attribute name="start_time"       type="xsd:float"/>
141       <xsd:attribute name="duration_ts"      type="xsd:long"/>
142       <xsd:attribute name="duration"         type="xsd:float"/>
143       <xsd:attribute name="bit_rate"         type="xsd:int"/>
144       <xsd:attribute name="nb_frames"        type="xsd:int"/>
145       <xsd:attribute name="nb_read_frames"   type="xsd:int"/>
146       <xsd:attribute name="nb_read_packets"  type="xsd:int"/>
147     </xsd:complexType>
148
149     <xsd:complexType name="formatType">
150       <xsd:sequence>
151         <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
152       </xsd:sequence>
153
154       <xsd:attribute name="filename"         type="xsd:string" use="required"/>
155       <xsd:attribute name="nb_streams"       type="xsd:int"    use="required"/>
156       <xsd:attribute name="format_name"      type="xsd:string" use="required"/>
157       <xsd:attribute name="format_long_name" type="xsd:string"/>
158       <xsd:attribute name="start_time"       type="xsd:float"/>
159       <xsd:attribute name="duration"         type="xsd:float"/>
160       <xsd:attribute name="size"             type="xsd:long"/>
161       <xsd:attribute name="bit_rate"         type="xsd:long"/>
162     </xsd:complexType>
163
164     <xsd:complexType name="tagType">
165       <xsd:attribute name="key"   type="xsd:string" use="required"/>
166       <xsd:attribute name="value" type="xsd:string" use="required"/>
167     </xsd:complexType>
168
169     <xsd:complexType name="errorType">
170       <xsd:attribute name="code"   type="xsd:int"    use="required"/>
171       <xsd:attribute name="string" type="xsd:string" use="required"/>
172     </xsd:complexType>
173
174     <xsd:complexType name="programVersionType">
175       <xsd:attribute name="version"          type="xsd:string" use="required"/>
176       <xsd:attribute name="copyright"        type="xsd:string" use="required"/>
177       <xsd:attribute name="build_date"       type="xsd:string" use="required"/>
178       <xsd:attribute name="build_time"       type="xsd:string" use="required"/>
179       <xsd:attribute name="compiler_type"    type="xsd:string" use="required"/>
180       <xsd:attribute name="compiler_version" type="xsd:string" use="required"/>
181       <xsd:attribute name="configuration"    type="xsd:string" use="required"/>
182     </xsd:complexType>
183
184     <xsd:complexType name="libraryVersionType">
185       <xsd:attribute name="name"        type="xsd:string" use="required"/>
186       <xsd:attribute name="major"       type="xsd:int"    use="required"/>
187       <xsd:attribute name="minor"       type="xsd:int"    use="required"/>
188       <xsd:attribute name="micro"       type="xsd:int"    use="required"/>
189       <xsd:attribute name="version"     type="xsd:int"    use="required"/>
190       <xsd:attribute name="ident"       type="xsd:string" use="required"/>
191     </xsd:complexType>
192
193     <xsd:complexType name="libraryVersionsType">
194         <xsd:sequence>
195           <xsd:element name="library_version" type="ffprobe:libraryVersionType" minOccurs="0" maxOccurs="unbounded"/>
196         </xsd:sequence>
197     </xsd:complexType>
198 </xsd:schema>