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