ffprobe: add support to option -show_error
[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="streams"  type="ffprobe:streamsType" minOccurs="0" maxOccurs="1" />
13             <xsd:element name="format"   type="ffprobe:formatType"  minOccurs="0" maxOccurs="1" />
14             <xsd:element name="error"    type="ffprobe:errorType"   minOccurs="0" maxOccurs="1" />
15         </xsd:sequence>
16     </xsd:complexType>
17
18     <xsd:complexType name="packetsType">
19         <xsd:sequence>
20             <xsd:element name="packet" type="ffprobe:packetType" minOccurs="0" maxOccurs="unbounded"/>
21         </xsd:sequence>
22     </xsd:complexType>
23
24     <xsd:complexType name="packetType">
25       <xsd:attribute name="codec_type"    type="xsd:string" use="required" />
26       <xsd:attribute name="stream_index"  type="xsd:int" use="required" />
27       <xsd:attribute name="pts"           type="xsd:long"  />
28       <xsd:attribute name="pts_time"      type="xsd:float" />
29       <xsd:attribute name="dts"           type="xsd:long"  />
30       <xsd:attribute name="dts_time"      type="xsd:float" />
31       <xsd:attribute name="duration"      type="xsd:long"  />
32       <xsd:attribute name="duration_time" type="xsd:float" />
33       <xsd:attribute name="size"          type="xsd:long" use="required" />
34       <xsd:attribute name="pos"           type="xsd:long"  />
35       <xsd:attribute name="flags"         type="xsd:string" use="required" />
36     </xsd:complexType>
37
38     <xsd:complexType name="streamsType">
39         <xsd:sequence>
40             <xsd:element name="stream" type="ffprobe:streamType" minOccurs="0" maxOccurs="unbounded"/>
41         </xsd:sequence>
42     </xsd:complexType>
43
44     <xsd:complexType name="streamType">
45       <xsd:attribute name="index"            type="xsd:int" use="required"/>
46       <xsd:attribute name="codec_name"       type="xsd:string" />
47       <xsd:attribute name="codec_long_name"  type="xsd:string" />
48       <xsd:attribute name="codec_type"       type="xsd:string" />
49       <xsd:attribute name="codec_time_base"  type="xsd:string" use="required"/>
50       <xsd:attribute name="codec_tag"        type="xsd:string" use="required"/>
51       <xsd:attribute name="codec_tag_string" type="xsd:string" use="required"/>
52
53       <!-- video attributes -->
54       <xsd:attribute name="width"                type="xsd:int"/>
55       <xsd:attribute name="height"               type="xsd:int"/>
56       <xsd:attribute name="has_b_frames"         type="xsd:int"/>
57       <xsd:attribute name="sample_aspect_ratio"  type="xsd:string"/>
58       <xsd:attribute name="display_aspect_ratio" type="xsd:string"/>
59       <xsd:attribute name="pix_fmt"              type="xsd:string"/>
60       <xsd:attribute name="level"                type="xsd:int"/>
61       <xsd:attribute name="timecode"             type="xsd:string"/>
62
63       <!-- audio attributes -->
64       <xsd:attribute name="sample_fmt"       type="xsd:string"/>
65       <xsd:attribute name="sample_rate"      type="xsd:int"/>
66       <xsd:attribute name="channels"         type="xsd:int"/>
67       <xsd:attribute name="bits_per_sample"  type="xsd:int"/>
68
69       <xsd:attribute name="id"               type="xsd:string"/>
70       <xsd:attribute name="r_frame_rate"     type="xsd:string" use="required"/>
71       <xsd:attribute name="avg_frame_rate"   type="xsd:string" use="required"/>
72       <xsd:attribute name="time_base"        type="xsd:string" use="required"/>
73       <xsd:attribute name="start_time"       type="xsd:float"/>
74       <xsd:attribute name="duration"         type="xsd:float"/>
75       <xsd:attribute name="nb_frames"        type="xsd:int"/>
76     </xsd:complexType>
77
78     <xsd:complexType name="formatType">
79       <xsd:sequence>
80         <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
81       </xsd:sequence>
82
83       <xsd:attribute name="filename"         type="xsd:string" use="required"/>
84       <xsd:attribute name="nb_streams"       type="xsd:int"    use="required"/>
85       <xsd:attribute name="format_name"      type="xsd:string" use="required"/>
86       <xsd:attribute name="format_long_name" type="xsd:string" use="required"/>
87       <xsd:attribute name="start_time"       type="xsd:float"/>
88       <xsd:attribute name="duration"         type="xsd:float"/>
89       <xsd:attribute name="size"             type="xsd:long"/>
90       <xsd:attribute name="bit_rate"         type="xsd:long"/>
91     </xsd:complexType>
92
93     <xsd:complexType name="tagType">
94       <xsd:attribute name="key"   type="xsd:string" use="required"/>
95       <xsd:attribute name="value" type="xsd:string" use="required"/>
96     </xsd:complexType>
97
98     <xsd:complexType name="errorType">
99       <xsd:attribute name="code"   type="xsd:int"    use="required"/>
100       <xsd:attribute name="string" type="xsd:string" use="required"/>
101     </xsd:complexType>
102 </xsd:schema>