]> git.sesse.net Git - ffmpeg/blob - doc/ffprobe.xsd
doc/filters: move drawgraph to video filters chapter
[ffmpeg] / 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="program_version"  type="ffprobe:programVersionType"  minOccurs="0" maxOccurs="1" />
12             <xsd:element name="library_versions" type="ffprobe:libraryVersionsType" minOccurs="0" maxOccurs="1" />
13             <xsd:element name="pixel_formats"    type="ffprobe:pixelFormatsType"    minOccurs="0" maxOccurs="1" />
14             <xsd:element name="packets"  type="ffprobe:packetsType" minOccurs="0" maxOccurs="1" />
15             <xsd:element name="frames"   type="ffprobe:framesType"  minOccurs="0" maxOccurs="1" />
16             <xsd:element name="packets_and_frames" type="ffprobe:packetsAndFramesType" minOccurs="0" maxOccurs="1" />
17             <xsd:element name="programs" type="ffprobe:programsType" minOccurs="0" maxOccurs="1" />
18             <xsd:element name="streams"  type="ffprobe:streamsType" minOccurs="0" maxOccurs="1" />
19             <xsd:element name="chapters" type="ffprobe:chaptersType" minOccurs="0" maxOccurs="1" />
20             <xsd:element name="format"   type="ffprobe:formatType"  minOccurs="0" maxOccurs="1" />
21             <xsd:element name="error"    type="ffprobe:errorType"   minOccurs="0" maxOccurs="1" />
22         </xsd:sequence>
23     </xsd:complexType>
24
25     <xsd:complexType name="packetsType">
26         <xsd:sequence>
27             <xsd:element name="packet" type="ffprobe:packetType" minOccurs="0" maxOccurs="unbounded"/>
28         </xsd:sequence>
29     </xsd:complexType>
30
31     <xsd:complexType name="framesType">
32         <xsd:sequence>
33             <xsd:choice minOccurs="0" maxOccurs="unbounded">
34                 <xsd:element name="frame" type="ffprobe:frameType" minOccurs="0" maxOccurs="unbounded"/>
35                 <xsd:element name="subtitle" type="ffprobe:subtitleType" minOccurs="0" maxOccurs="unbounded"/>
36             </xsd:choice>
37         </xsd:sequence>
38     </xsd:complexType>
39
40     <xsd:complexType name="packetsAndFramesType">
41         <xsd:sequence>
42             <xsd:choice minOccurs="0" maxOccurs="unbounded">
43                 <xsd:element name="packet" type="ffprobe:packetType" minOccurs="0" maxOccurs="unbounded"/>
44                 <xsd:element name="frame" type="ffprobe:frameType" minOccurs="0" maxOccurs="unbounded"/>
45                 <xsd:element name="subtitle" type="ffprobe:subtitleType" minOccurs="0" maxOccurs="unbounded"/>
46             </xsd:choice>
47         </xsd:sequence>
48     </xsd:complexType>
49
50     <xsd:complexType name="packetType">
51       <xsd:sequence>
52         <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
53         <xsd:element name="side_data_list" type="ffprobe:packetSideDataListType"   minOccurs="0" maxOccurs="1" />
54       </xsd:sequence>
55
56       <xsd:attribute name="codec_type"    type="xsd:string" use="required" />
57       <xsd:attribute name="stream_index"  type="xsd:int" use="required" />
58       <xsd:attribute name="pts"           type="xsd:long"  />
59       <xsd:attribute name="pts_time"      type="xsd:float" />
60       <xsd:attribute name="dts"           type="xsd:long"  />
61       <xsd:attribute name="dts_time"      type="xsd:float" />
62       <xsd:attribute name="duration"      type="xsd:long"  />
63       <xsd:attribute name="duration_time" type="xsd:float" />
64       <xsd:attribute name="convergence_duration"      type="xsd:long"  />
65       <xsd:attribute name="convergence_duration_time" type="xsd:float" />
66       <xsd:attribute name="size"          type="xsd:long" use="required" />
67       <xsd:attribute name="pos"           type="xsd:long"  />
68       <xsd:attribute name="flags"         type="xsd:string" use="required" />
69       <xsd:attribute name="data"          type="xsd:string" />
70       <xsd:attribute name="data_hash"     type="xsd:string" />
71     </xsd:complexType>
72
73     <xsd:complexType name="packetSideDataListType">
74         <xsd:sequence>
75             <xsd:element name="side_data" type="ffprobe:packetSideDataType" minOccurs="1" maxOccurs="unbounded"/>
76         </xsd:sequence>
77     </xsd:complexType>
78     <xsd:complexType name="packetSideDataType">
79         <xsd:attribute name="side_data_type"              type="xsd:string"/>
80         <xsd:attribute name="side_data_size"              type="xsd:int"   />
81     </xsd:complexType>
82
83     <xsd:complexType name="frameType">
84       <xsd:sequence>
85             <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
86             <xsd:element name="logs" type="ffprobe:logsType" minOccurs="0" maxOccurs="1"/>
87             <xsd:element name="side_data_list" type="ffprobe:frameSideDataListType"   minOccurs="0" maxOccurs="1" />
88       </xsd:sequence>
89
90       <xsd:attribute name="media_type"    type="xsd:string" use="required"/>
91       <xsd:attribute name="stream_index"  type="xsd:int"  />
92       <xsd:attribute name="key_frame"     type="xsd:int"    use="required"/>
93       <xsd:attribute name="pts"           type="xsd:long" />
94       <xsd:attribute name="pts_time"      type="xsd:float"/>
95       <xsd:attribute name="pkt_pts"       type="xsd:long" />
96       <xsd:attribute name="pkt_pts_time"  type="xsd:float"/>
97       <xsd:attribute name="pkt_dts"       type="xsd:long" />
98       <xsd:attribute name="pkt_dts_time"  type="xsd:float"/>
99       <xsd:attribute name="best_effort_timestamp"      type="xsd:long" />
100       <xsd:attribute name="best_effort_timestamp_time" type="xsd:float" />
101       <xsd:attribute name="pkt_duration"  type="xsd:long" />
102       <xsd:attribute name="pkt_duration_time" type="xsd:float"/>
103       <xsd:attribute name="pkt_pos"       type="xsd:long" />
104       <xsd:attribute name="pkt_size"      type="xsd:int" />
105
106       <!-- audio attributes -->
107       <xsd:attribute name="sample_fmt"             type="xsd:string"/>
108       <xsd:attribute name="nb_samples"             type="xsd:long"  />
109       <xsd:attribute name="channels"               type="xsd:int"   />
110       <xsd:attribute name="channel_layout"         type="xsd:string"/>
111
112       <!-- video attributes -->
113       <xsd:attribute name="width"                  type="xsd:long"  />
114       <xsd:attribute name="height"                 type="xsd:long"  />
115       <xsd:attribute name="pix_fmt"                type="xsd:string"/>
116       <xsd:attribute name="sample_aspect_ratio"    type="xsd:string"/>
117       <xsd:attribute name="pict_type"              type="xsd:string"/>
118       <xsd:attribute name="coded_picture_number"   type="xsd:long"  />
119       <xsd:attribute name="display_picture_number" type="xsd:long"  />
120       <xsd:attribute name="interlaced_frame"       type="xsd:int"   />
121       <xsd:attribute name="top_field_first"        type="xsd:int"   />
122       <xsd:attribute name="repeat_pict"            type="xsd:int"   />
123       <xsd:attribute name="color_range"            type="xsd:string"/>
124       <xsd:attribute name="color_space"            type="xsd:string"/>
125       <xsd:attribute name="color_primaries"        type="xsd:string"/>
126       <xsd:attribute name="color_transfer"         type="xsd:string"/>
127       <xsd:attribute name="chroma_location"        type="xsd:string"/>
128     </xsd:complexType>
129
130     <xsd:complexType name="logsType">
131         <xsd:sequence>
132             <xsd:element name="log" type="ffprobe:logType" minOccurs="1" maxOccurs="unbounded"/>
133         </xsd:sequence>
134     </xsd:complexType>
135     <xsd:complexType name="logType">
136         <xsd:attribute name="context"                     type="xsd:string"/>
137         <xsd:attribute name="level"                       type="xsd:int"   />
138         <xsd:attribute name="category"                    type="xsd:int"   />
139         <xsd:attribute name="parent_context"              type="xsd:string"/>
140         <xsd:attribute name="parent_category"             type="xsd:int"   />
141         <xsd:attribute name="message"                     type="xsd:string"/>
142     </xsd:complexType>
143
144     <xsd:complexType name="frameSideDataListType">
145         <xsd:sequence>
146             <xsd:element name="side_data" type="ffprobe:frameSideDataType" minOccurs="1" maxOccurs="unbounded"/>
147         </xsd:sequence>
148     </xsd:complexType>
149     <xsd:complexType name="frameSideDataType">
150         <xsd:sequence>
151             <xsd:element name="timecodes" type="ffprobe:frameSideDataTimecodeList" minOccurs="0" maxOccurs="1"/>
152         </xsd:sequence>
153
154         <xsd:attribute name="side_data_type"              type="xsd:string"/>
155         <xsd:attribute name="side_data_size"              type="xsd:int"   />
156         <xsd:attribute name="timecode"                    type="xsd:string"/>
157     </xsd:complexType>
158
159     <xsd:complexType name="frameSideDataTimecodeList">
160         <xsd:sequence>
161             <xsd:element name="timecode" type="ffprobe:frameSideDataTimecodeType" minOccurs="0" maxOccurs="unbounded"/>
162         </xsd:sequence>
163     </xsd:complexType>
164
165     <xsd:complexType name="frameSideDataTimecodeType">
166         <xsd:attribute name="value"              type="xsd:string"/>
167     </xsd:complexType>
168
169     <xsd:complexType name="subtitleType">
170       <xsd:attribute name="media_type"         type="xsd:string" fixed="subtitle" use="required"/>
171       <xsd:attribute name="pts"                type="xsd:long" />
172       <xsd:attribute name="pts_time"           type="xsd:float"/>
173       <xsd:attribute name="format"             type="xsd:int"  />
174       <xsd:attribute name="start_display_time" type="xsd:int"  />
175       <xsd:attribute name="end_display_time"   type="xsd:int"  />
176       <xsd:attribute name="num_rects"          type="xsd:int"  />
177     </xsd:complexType>
178
179     <xsd:complexType name="streamsType">
180         <xsd:sequence>
181             <xsd:element name="stream" type="ffprobe:streamType" minOccurs="0" maxOccurs="unbounded"/>
182         </xsd:sequence>
183     </xsd:complexType>
184
185     <xsd:complexType name="programsType">
186         <xsd:sequence>
187             <xsd:element name="program" type="ffprobe:programType" minOccurs="0" maxOccurs="unbounded"/>
188         </xsd:sequence>
189     </xsd:complexType>
190
191     <xsd:complexType name="streamDispositionType">
192       <xsd:attribute name="default"          type="xsd:int" use="required" />
193       <xsd:attribute name="dub"              type="xsd:int" use="required" />
194       <xsd:attribute name="original"         type="xsd:int" use="required" />
195       <xsd:attribute name="comment"          type="xsd:int" use="required" />
196       <xsd:attribute name="lyrics"           type="xsd:int" use="required" />
197       <xsd:attribute name="karaoke"          type="xsd:int" use="required" />
198       <xsd:attribute name="forced"           type="xsd:int" use="required" />
199       <xsd:attribute name="hearing_impaired" type="xsd:int" use="required" />
200       <xsd:attribute name="visual_impaired"  type="xsd:int" use="required" />
201       <xsd:attribute name="clean_effects"    type="xsd:int" use="required" />
202       <xsd:attribute name="attached_pic"     type="xsd:int" use="required" />
203       <xsd:attribute name="timed_thumbnails" type="xsd:int" use="required" />
204     </xsd:complexType>
205
206     <xsd:complexType name="streamType">
207       <xsd:sequence>
208         <xsd:element name="disposition" type="ffprobe:streamDispositionType" minOccurs="0" maxOccurs="1"/>
209         <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
210         <xsd:element name="side_data_list" type="ffprobe:packetSideDataListType"   minOccurs="0" maxOccurs="1" />
211       </xsd:sequence>
212
213       <xsd:attribute name="index"            type="xsd:int" use="required"/>
214       <xsd:attribute name="codec_name"       type="xsd:string" />
215       <xsd:attribute name="codec_long_name"  type="xsd:string" />
216       <xsd:attribute name="profile"          type="xsd:string" />
217       <xsd:attribute name="codec_type"       type="xsd:string" />
218       <xsd:attribute name="codec_time_base"  type="xsd:string" use="required"/>
219       <xsd:attribute name="codec_tag"        type="xsd:string" use="required"/>
220       <xsd:attribute name="codec_tag_string" type="xsd:string" use="required"/>
221       <xsd:attribute name="extradata"        type="xsd:string" />
222       <xsd:attribute name="extradata_hash"   type="xsd:string" />
223
224       <!-- video attributes -->
225       <xsd:attribute name="width"                type="xsd:int"/>
226       <xsd:attribute name="height"               type="xsd:int"/>
227       <xsd:attribute name="coded_width"          type="xsd:int"/>
228       <xsd:attribute name="coded_height"         type="xsd:int"/>
229       <xsd:attribute name="has_b_frames"         type="xsd:int"/>
230       <xsd:attribute name="sample_aspect_ratio"  type="xsd:string"/>
231       <xsd:attribute name="display_aspect_ratio" type="xsd:string"/>
232       <xsd:attribute name="pix_fmt"              type="xsd:string"/>
233       <xsd:attribute name="level"                type="xsd:int"/>
234       <xsd:attribute name="color_range"          type="xsd:string"/>
235       <xsd:attribute name="color_space"          type="xsd:string"/>
236       <xsd:attribute name="color_transfer"       type="xsd:string"/>
237       <xsd:attribute name="color_primaries"      type="xsd:string"/>
238       <xsd:attribute name="chroma_location"      type="xsd:string"/>
239       <xsd:attribute name="field_order"          type="xsd:string"/>
240       <xsd:attribute name="timecode"             type="xsd:string"/>
241       <xsd:attribute name="refs"                 type="xsd:int"/>
242
243       <!-- audio attributes -->
244       <xsd:attribute name="sample_fmt"       type="xsd:string"/>
245       <xsd:attribute name="sample_rate"      type="xsd:int"/>
246       <xsd:attribute name="channels"         type="xsd:int"/>
247       <xsd:attribute name="channel_layout"   type="xsd:string"/>
248       <xsd:attribute name="bits_per_sample"  type="xsd:int"/>
249
250       <xsd:attribute name="id"               type="xsd:string"/>
251       <xsd:attribute name="r_frame_rate"     type="xsd:string" use="required"/>
252       <xsd:attribute name="avg_frame_rate"   type="xsd:string" use="required"/>
253       <xsd:attribute name="time_base"        type="xsd:string" use="required"/>
254       <xsd:attribute name="start_pts"        type="xsd:long"/>
255       <xsd:attribute name="start_time"       type="xsd:float"/>
256       <xsd:attribute name="duration_ts"      type="xsd:long"/>
257       <xsd:attribute name="duration"         type="xsd:float"/>
258       <xsd:attribute name="bit_rate"         type="xsd:int"/>
259       <xsd:attribute name="max_bit_rate"     type="xsd:int"/>
260       <xsd:attribute name="bits_per_raw_sample" type="xsd:int"/>
261       <xsd:attribute name="nb_frames"        type="xsd:int"/>
262       <xsd:attribute name="nb_read_frames"   type="xsd:int"/>
263       <xsd:attribute name="nb_read_packets"  type="xsd:int"/>
264     </xsd:complexType>
265
266     <xsd:complexType name="programType">
267       <xsd:sequence>
268         <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
269         <xsd:element name="streams" type="ffprobe:streamsType" minOccurs="0" maxOccurs="1"/>
270       </xsd:sequence>
271
272       <xsd:attribute name="program_id"           type="xsd:int"    use="required"/>
273       <xsd:attribute name="program_num"          type="xsd:int"    use="required"/>
274       <xsd:attribute name="nb_streams"           type="xsd:int"    use="required"/>
275       <xsd:attribute name="start_time"           type="xsd:float"/>
276       <xsd:attribute name="start_pts"            type="xsd:long"/>
277       <xsd:attribute name="end_time"             type="xsd:float"/>
278       <xsd:attribute name="end_pts"              type="xsd:long"/>
279       <xsd:attribute name="pmt_pid"              type="xsd:int"    use="required"/>
280       <xsd:attribute name="pcr_pid"              type="xsd:int"    use="required"/>
281     </xsd:complexType>
282
283     <xsd:complexType name="formatType">
284       <xsd:sequence>
285         <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
286       </xsd:sequence>
287
288       <xsd:attribute name="filename"         type="xsd:string" use="required"/>
289       <xsd:attribute name="nb_streams"       type="xsd:int"    use="required"/>
290       <xsd:attribute name="nb_programs"      type="xsd:int"    use="required"/>
291       <xsd:attribute name="format_name"      type="xsd:string" use="required"/>
292       <xsd:attribute name="format_long_name" type="xsd:string"/>
293       <xsd:attribute name="start_time"       type="xsd:float"/>
294       <xsd:attribute name="duration"         type="xsd:float"/>
295       <xsd:attribute name="size"             type="xsd:long"/>
296       <xsd:attribute name="bit_rate"         type="xsd:long"/>
297       <xsd:attribute name="probe_score"      type="xsd:int"/>
298     </xsd:complexType>
299
300     <xsd:complexType name="tagType">
301       <xsd:attribute name="key"   type="xsd:string" use="required"/>
302       <xsd:attribute name="value" type="xsd:string" use="required"/>
303     </xsd:complexType>
304
305     <xsd:complexType name="errorType">
306       <xsd:attribute name="code"   type="xsd:int"    use="required"/>
307       <xsd:attribute name="string" type="xsd:string" use="required"/>
308     </xsd:complexType>
309
310     <xsd:complexType name="programVersionType">
311       <xsd:attribute name="version"          type="xsd:string" use="required"/>
312       <xsd:attribute name="copyright"        type="xsd:string" use="required"/>
313       <xsd:attribute name="build_date"       type="xsd:string"/>
314       <xsd:attribute name="build_time"       type="xsd:string"/>
315       <xsd:attribute name="compiler_ident"   type="xsd:string" use="required"/>
316       <xsd:attribute name="configuration"    type="xsd:string" use="required"/>
317     </xsd:complexType>
318
319     <xsd:complexType name="chaptersType">
320       <xsd:sequence>
321         <xsd:element name="chapter" type="ffprobe:chapterType" minOccurs="0" maxOccurs="unbounded"/>
322       </xsd:sequence>
323     </xsd:complexType>
324
325     <xsd:complexType name="chapterType">
326       <xsd:sequence>
327         <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
328       </xsd:sequence>
329
330       <xsd:attribute name="id"         type="xsd:int" use="required"/>
331       <xsd:attribute name="time_base"  type="xsd:string" use="required"/>
332       <xsd:attribute name="start"      type="xsd:int" use="required"/>
333       <xsd:attribute name="start_time" type="xsd:float"/>
334       <xsd:attribute name="end"        type="xsd:int" use="required"/>
335       <xsd:attribute name="end_time"   type="xsd:float" use="required"/>
336     </xsd:complexType>
337
338     <xsd:complexType name="libraryVersionType">
339       <xsd:attribute name="name"        type="xsd:string" use="required"/>
340       <xsd:attribute name="major"       type="xsd:int"    use="required"/>
341       <xsd:attribute name="minor"       type="xsd:int"    use="required"/>
342       <xsd:attribute name="micro"       type="xsd:int"    use="required"/>
343       <xsd:attribute name="version"     type="xsd:int"    use="required"/>
344       <xsd:attribute name="ident"       type="xsd:string" use="required"/>
345     </xsd:complexType>
346
347     <xsd:complexType name="libraryVersionsType">
348         <xsd:sequence>
349           <xsd:element name="library_version" type="ffprobe:libraryVersionType" minOccurs="0" maxOccurs="unbounded"/>
350         </xsd:sequence>
351     </xsd:complexType>
352
353     <xsd:complexType name="pixelFormatFlagsType">
354       <xsd:attribute name="big_endian" type="xsd:int" use="required"/>
355       <xsd:attribute name="palette"    type="xsd:int" use="required"/>
356       <xsd:attribute name="bitstream"  type="xsd:int" use="required"/>
357       <xsd:attribute name="hwaccel"    type="xsd:int" use="required"/>
358       <xsd:attribute name="planar"     type="xsd:int" use="required"/>
359       <xsd:attribute name="rgb"        type="xsd:int" use="required"/>
360       <xsd:attribute name="pseudopal"  type="xsd:int" use="required"/>
361       <xsd:attribute name="alpha"      type="xsd:int" use="required"/>
362     </xsd:complexType>
363
364     <xsd:complexType name="pixelFormatComponentType">
365       <xsd:attribute name="index"      type="xsd:int" use="required"/>
366       <xsd:attribute name="bit_depth"  type="xsd:int" use="required"/>
367     </xsd:complexType>
368
369     <xsd:complexType name="pixelFormatComponentsType">
370       <xsd:sequence>
371         <xsd:element name="component" type="ffprobe:pixelFormatComponentType" minOccurs="0" maxOccurs="unbounded"/>
372       </xsd:sequence>
373     </xsd:complexType>
374
375     <xsd:complexType name="pixelFormatType">
376       <xsd:sequence>
377         <xsd:element name="flags" type="ffprobe:pixelFormatFlagsType" minOccurs="0" maxOccurs="1"/>
378         <xsd:element name="components" type="ffprobe:pixelFormatComponentsType" minOccurs="0" maxOccurs="1"/>
379       </xsd:sequence>
380
381       <xsd:attribute name="name"                type="xsd:string" use="required"/>
382       <xsd:attribute name="nb_components"       type="xsd:int"    use="required"/>
383       <xsd:attribute name="log2_chroma_w"       type="xsd:int"/>
384       <xsd:attribute name="log2_chroma_h"       type="xsd:int"/>
385       <xsd:attribute name="bits_per_pixel"      type="xsd:int"/>
386     </xsd:complexType>
387
388     <xsd:complexType name="pixelFormatsType">
389       <xsd:sequence>
390         <xsd:element name="pixel_format" type="ffprobe:pixelFormatType" minOccurs="0" maxOccurs="unbounded"/>
391       </xsd:sequence>
392     </xsd:complexType>
393 </xsd:schema>