ffprobe: add support to video frame information printing
[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:sequence>
17     </xsd:complexType>
18
19     <xsd:complexType name="packetsType">
20         <xsd:sequence>
21             <xsd:element name="packet" type="ffprobe:packetType" minOccurs="0" maxOccurs="unbounded"/>
22         </xsd:sequence>
23     </xsd:complexType>
24
25     <xsd:complexType name="framesType">
26         <xsd:sequence>
27             <xsd:element name="frame" type="ffprobe:frameType" minOccurs="0" maxOccurs="unbounded"/>
28         </xsd:sequence>
29     </xsd:complexType>
30
31     <xsd:complexType name="packetType">
32       <xsd:attribute name="codec_type"    type="xsd:string" use="required" />
33       <xsd:attribute name="stream_index"  type="xsd:int" use="required" />
34       <xsd:attribute name="pts"           type="xsd:long"  />
35       <xsd:attribute name="pts_time"      type="xsd:float" />
36       <xsd:attribute name="dts"           type="xsd:long"  />
37       <xsd:attribute name="dts_time"      type="xsd:float" />
38       <xsd:attribute name="duration"      type="xsd:long"  />
39       <xsd:attribute name="duration_time" type="xsd:float" />
40       <xsd:attribute name="size"          type="xsd:long" use="required" />
41       <xsd:attribute name="pos"           type="xsd:long"  />
42       <xsd:attribute name="flags"         type="xsd:string" use="required" />
43     </xsd:complexType>
44
45     <xsd:complexType name="frameType">
46       <xsd:attribute name="media_type"    type="xsd:string" use="required"/>
47       <xsd:attribute name="key_frame"     type="xsd:int"    use="required"/>
48       <xsd:attribute name="pts"           type="xsd:long" />
49       <xsd:attribute name="pts_time"      type="xsd:float"/>
50       <xsd:attribute name="pkt_pts"       type="xsd:long" />
51       <xsd:attribute name="pkt_pts_time"  type="xsd:float"/>
52       <xsd:attribute name="pkt_dts"       type="xsd:long" />
53       <xsd:attribute name="pkt_dts_time"  type="xsd:float"/>
54       <xsd:attribute name="pkt_pos"       type="xsd:long" />
55
56       <!-- video attributes -->
57       <xsd:attribute name="width"                  type="xsd:long"  />
58       <xsd:attribute name="height"                 type="xsd:long"  />
59       <xsd:attribute name="pix_fmt"                type="xsd:string"/>
60       <xsd:attribute name="sample_aspect_ratio"    type="xsd:string"/>
61       <xsd:attribute name="pict_type"              type="xsd:string"/>
62       <xsd:attribute name="coded_picture_number"   type="xsd:long"  />
63       <xsd:attribute name="display_picture_number" type="xsd:long"  />
64       <xsd:attribute name="interlaced_frame"       type="xsd:int"   />
65       <xsd:attribute name="top_field_first"        type="xsd:int"   />
66       <xsd:attribute name="repeat_pict"            type="xsd:int"   />
67       <xsd:attribute name="reference"              type="xsd:int"   />
68     </xsd:complexType>
69
70     <xsd:complexType name="streamsType">
71         <xsd:sequence>
72             <xsd:element name="stream" type="ffprobe:streamType" minOccurs="0" maxOccurs="unbounded"/>
73         </xsd:sequence>
74     </xsd:complexType>
75
76     <xsd:complexType name="streamType">
77       <xsd:attribute name="index"            type="xsd:int" use="required"/>
78       <xsd:attribute name="codec_name"       type="xsd:string" />
79       <xsd:attribute name="codec_long_name"  type="xsd:string" />
80       <xsd:attribute name="codec_type"       type="xsd:string" />
81       <xsd:attribute name="codec_time_base"  type="xsd:string" use="required"/>
82       <xsd:attribute name="codec_tag"        type="xsd:string" use="required"/>
83       <xsd:attribute name="codec_tag_string" type="xsd:string" use="required"/>
84
85       <!-- video attributes -->
86       <xsd:attribute name="width"                type="xsd:int"/>
87       <xsd:attribute name="height"               type="xsd:int"/>
88       <xsd:attribute name="has_b_frames"         type="xsd:int"/>
89       <xsd:attribute name="sample_aspect_ratio"  type="xsd:string"/>
90       <xsd:attribute name="display_aspect_ratio" type="xsd:string"/>
91       <xsd:attribute name="pix_fmt"              type="xsd:string"/>
92       <xsd:attribute name="level"                type="xsd:int"/>
93       <xsd:attribute name="timecode"             type="xsd:string"/>
94
95       <!-- audio attributes -->
96       <xsd:attribute name="sample_fmt"       type="xsd:string"/>
97       <xsd:attribute name="sample_rate"      type="xsd:int"/>
98       <xsd:attribute name="channels"         type="xsd:int"/>
99       <xsd:attribute name="bits_per_sample"  type="xsd:int"/>
100
101       <xsd:attribute name="id"               type="xsd:string"/>
102       <xsd:attribute name="r_frame_rate"     type="xsd:string" use="required"/>
103       <xsd:attribute name="avg_frame_rate"   type="xsd:string" use="required"/>
104       <xsd:attribute name="time_base"        type="xsd:string" use="required"/>
105       <xsd:attribute name="start_time"       type="xsd:float"/>
106       <xsd:attribute name="duration"         type="xsd:float"/>
107       <xsd:attribute name="nb_frames"        type="xsd:int"/>
108     </xsd:complexType>
109
110     <xsd:complexType name="formatType">
111       <xsd:sequence>
112         <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
113       </xsd:sequence>
114
115       <xsd:attribute name="filename"         type="xsd:string" use="required"/>
116       <xsd:attribute name="nb_streams"       type="xsd:int"    use="required"/>
117       <xsd:attribute name="format_name"      type="xsd:string" use="required"/>
118       <xsd:attribute name="format_long_name" type="xsd:string" use="required"/>
119       <xsd:attribute name="start_time"       type="xsd:float"/>
120       <xsd:attribute name="duration"         type="xsd:float"/>
121       <xsd:attribute name="size"             type="xsd:long"/>
122       <xsd:attribute name="bit_rate"         type="xsd:long"/>
123     </xsd:complexType>
124
125     <xsd:complexType name="tagType">
126       <xsd:attribute name="key"   type="xsd:string" use="required"/>
127       <xsd:attribute name="value" type="xsd:string" use="required"/>
128     </xsd:complexType>
129
130     <xsd:complexType name="errorType">
131       <xsd:attribute name="code"   type="xsd:int"    use="required"/>
132       <xsd:attribute name="string" type="xsd:string" use="required"/>
133     </xsd:complexType>
134 </xsd:schema>