1 <?xml version="1.0" encoding="UTF-8"?>
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">
7 <xsd:element name="ffprobe" type="ffprobe:ffprobeType"/>
9 <xsd:complexType name="ffprobeType">
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" />
25 <xsd:complexType name="packetsType">
27 <xsd:element name="packet" type="ffprobe:packetType" minOccurs="0" maxOccurs="unbounded"/>
31 <xsd:complexType name="framesType">
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"/>
40 <xsd:complexType name="packetsAndFramesType">
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"/>
50 <xsd:complexType name="packetType">
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" />
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" />
73 <xsd:complexType name="packetSideDataListType">
75 <xsd:element name="side_data" type="ffprobe:packetSideDataType" minOccurs="1" maxOccurs="unbounded"/>
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" />
83 <xsd:complexType name="frameType">
85 <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
86 <xsd:element name="side_data_list" type="ffprobe:frameSideDataListType" minOccurs="0" maxOccurs="1" />
89 <xsd:attribute name="media_type" type="xsd:string" use="required"/>
90 <xsd:attribute name="stream_index" type="xsd:int" />
91 <xsd:attribute name="key_frame" type="xsd:int" use="required"/>
92 <xsd:attribute name="pts" type="xsd:long" />
93 <xsd:attribute name="pts_time" type="xsd:float"/>
94 <xsd:attribute name="pkt_pts" type="xsd:long" />
95 <xsd:attribute name="pkt_pts_time" type="xsd:float"/>
96 <xsd:attribute name="pkt_dts" type="xsd:long" />
97 <xsd:attribute name="pkt_dts_time" type="xsd:float"/>
98 <xsd:attribute name="best_effort_timestamp" type="xsd:long" />
99 <xsd:attribute name="best_effort_timestamp_time" type="xsd:float" />
100 <xsd:attribute name="pkt_duration" type="xsd:long" />
101 <xsd:attribute name="pkt_duration_time" type="xsd:float"/>
102 <xsd:attribute name="pkt_pos" type="xsd:long" />
103 <xsd:attribute name="pkt_size" type="xsd:int" />
105 <!-- audio attributes -->
106 <xsd:attribute name="sample_fmt" type="xsd:string"/>
107 <xsd:attribute name="nb_samples" type="xsd:long" />
108 <xsd:attribute name="channels" type="xsd:int" />
109 <xsd:attribute name="channel_layout" type="xsd:string"/>
111 <!-- video attributes -->
112 <xsd:attribute name="width" type="xsd:long" />
113 <xsd:attribute name="height" type="xsd:long" />
114 <xsd:attribute name="pix_fmt" type="xsd:string"/>
115 <xsd:attribute name="sample_aspect_ratio" type="xsd:string"/>
116 <xsd:attribute name="pict_type" type="xsd:string"/>
117 <xsd:attribute name="coded_picture_number" type="xsd:long" />
118 <xsd:attribute name="display_picture_number" type="xsd:long" />
119 <xsd:attribute name="interlaced_frame" type="xsd:int" />
120 <xsd:attribute name="top_field_first" type="xsd:int" />
121 <xsd:attribute name="repeat_pict" type="xsd:int" />
124 <xsd:complexType name="frameSideDataListType">
126 <xsd:element name="side_data" type="ffprobe:frameSideDataType" minOccurs="1" maxOccurs="unbounded"/>
129 <xsd:complexType name="frameSideDataType">
130 <xsd:attribute name="side_data_type" type="xsd:string"/>
131 <xsd:attribute name="side_data_size" type="xsd:int" />
132 <xsd:attribute name="timecode" type="xsd:string"/>
135 <xsd:complexType name="subtitleType">
136 <xsd:attribute name="media_type" type="xsd:string" fixed="subtitle" use="required"/>
137 <xsd:attribute name="pts" type="xsd:long" />
138 <xsd:attribute name="pts_time" type="xsd:float"/>
139 <xsd:attribute name="format" type="xsd:int" />
140 <xsd:attribute name="start_display_time" type="xsd:int" />
141 <xsd:attribute name="end_display_time" type="xsd:int" />
142 <xsd:attribute name="num_rects" type="xsd:int" />
145 <xsd:complexType name="streamsType">
147 <xsd:element name="stream" type="ffprobe:streamType" minOccurs="0" maxOccurs="unbounded"/>
151 <xsd:complexType name="programsType">
153 <xsd:element name="program" type="ffprobe:programType" minOccurs="0" maxOccurs="unbounded"/>
157 <xsd:complexType name="streamDispositionType">
158 <xsd:attribute name="default" type="xsd:int" use="required" />
159 <xsd:attribute name="dub" type="xsd:int" use="required" />
160 <xsd:attribute name="original" type="xsd:int" use="required" />
161 <xsd:attribute name="comment" type="xsd:int" use="required" />
162 <xsd:attribute name="lyrics" type="xsd:int" use="required" />
163 <xsd:attribute name="karaoke" type="xsd:int" use="required" />
164 <xsd:attribute name="forced" type="xsd:int" use="required" />
165 <xsd:attribute name="hearing_impaired" type="xsd:int" use="required" />
166 <xsd:attribute name="visual_impaired" type="xsd:int" use="required" />
167 <xsd:attribute name="clean_effects" type="xsd:int" use="required" />
168 <xsd:attribute name="attached_pic" type="xsd:int" use="required" />
169 <xsd:attribute name="timed_thumbnails" type="xsd:int" use="required" />
172 <xsd:complexType name="streamType">
174 <xsd:element name="disposition" type="ffprobe:streamDispositionType" minOccurs="0" maxOccurs="1"/>
175 <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
176 <xsd:element name="side_data_list" type="ffprobe:packetSideDataListType" minOccurs="0" maxOccurs="1" />
179 <xsd:attribute name="index" type="xsd:int" use="required"/>
180 <xsd:attribute name="codec_name" type="xsd:string" />
181 <xsd:attribute name="codec_long_name" type="xsd:string" />
182 <xsd:attribute name="profile" type="xsd:string" />
183 <xsd:attribute name="codec_type" type="xsd:string" />
184 <xsd:attribute name="codec_time_base" type="xsd:string" use="required"/>
185 <xsd:attribute name="codec_tag" type="xsd:string" use="required"/>
186 <xsd:attribute name="codec_tag_string" type="xsd:string" use="required"/>
187 <xsd:attribute name="extradata" type="xsd:string" />
188 <xsd:attribute name="extradata_hash" type="xsd:string" />
190 <!-- video attributes -->
191 <xsd:attribute name="width" type="xsd:int"/>
192 <xsd:attribute name="height" type="xsd:int"/>
193 <xsd:attribute name="coded_width" type="xsd:int"/>
194 <xsd:attribute name="coded_height" type="xsd:int"/>
195 <xsd:attribute name="has_b_frames" type="xsd:int"/>
196 <xsd:attribute name="sample_aspect_ratio" type="xsd:string"/>
197 <xsd:attribute name="display_aspect_ratio" type="xsd:string"/>
198 <xsd:attribute name="pix_fmt" type="xsd:string"/>
199 <xsd:attribute name="level" type="xsd:int"/>
200 <xsd:attribute name="color_range" type="xsd:string"/>
201 <xsd:attribute name="color_space" type="xsd:string"/>
202 <xsd:attribute name="color_transfer" type="xsd:string"/>
203 <xsd:attribute name="color_primaries" type="xsd:string"/>
204 <xsd:attribute name="chroma_location" type="xsd:string"/>
205 <xsd:attribute name="field_order" type="xsd:string"/>
206 <xsd:attribute name="timecode" type="xsd:string"/>
207 <xsd:attribute name="refs" type="xsd:int"/>
209 <!-- audio attributes -->
210 <xsd:attribute name="sample_fmt" type="xsd:string"/>
211 <xsd:attribute name="sample_rate" type="xsd:int"/>
212 <xsd:attribute name="channels" type="xsd:int"/>
213 <xsd:attribute name="channel_layout" type="xsd:string"/>
214 <xsd:attribute name="bits_per_sample" type="xsd:int"/>
216 <xsd:attribute name="id" type="xsd:string"/>
217 <xsd:attribute name="r_frame_rate" type="xsd:string" use="required"/>
218 <xsd:attribute name="avg_frame_rate" type="xsd:string" use="required"/>
219 <xsd:attribute name="time_base" type="xsd:string" use="required"/>
220 <xsd:attribute name="start_pts" type="xsd:long"/>
221 <xsd:attribute name="start_time" type="xsd:float"/>
222 <xsd:attribute name="duration_ts" type="xsd:long"/>
223 <xsd:attribute name="duration" type="xsd:float"/>
224 <xsd:attribute name="bit_rate" type="xsd:int"/>
225 <xsd:attribute name="max_bit_rate" type="xsd:int"/>
226 <xsd:attribute name="bits_per_raw_sample" type="xsd:int"/>
227 <xsd:attribute name="nb_frames" type="xsd:int"/>
228 <xsd:attribute name="nb_read_frames" type="xsd:int"/>
229 <xsd:attribute name="nb_read_packets" type="xsd:int"/>
232 <xsd:complexType name="programType">
234 <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
235 <xsd:element name="streams" type="ffprobe:streamsType" minOccurs="0" maxOccurs="1"/>
238 <xsd:attribute name="program_id" type="xsd:int" use="required"/>
239 <xsd:attribute name="program_num" type="xsd:int" use="required"/>
240 <xsd:attribute name="nb_streams" type="xsd:int" use="required"/>
241 <xsd:attribute name="start_time" type="xsd:float"/>
242 <xsd:attribute name="start_pts" type="xsd:long"/>
243 <xsd:attribute name="end_time" type="xsd:float"/>
244 <xsd:attribute name="end_pts" type="xsd:long"/>
245 <xsd:attribute name="pmt_pid" type="xsd:int" use="required"/>
246 <xsd:attribute name="pcr_pid" type="xsd:int" use="required"/>
249 <xsd:complexType name="formatType">
251 <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
254 <xsd:attribute name="filename" type="xsd:string" use="required"/>
255 <xsd:attribute name="nb_streams" type="xsd:int" use="required"/>
256 <xsd:attribute name="nb_programs" type="xsd:int" use="required"/>
257 <xsd:attribute name="format_name" type="xsd:string" use="required"/>
258 <xsd:attribute name="format_long_name" type="xsd:string"/>
259 <xsd:attribute name="start_time" type="xsd:float"/>
260 <xsd:attribute name="duration" type="xsd:float"/>
261 <xsd:attribute name="size" type="xsd:long"/>
262 <xsd:attribute name="bit_rate" type="xsd:long"/>
263 <xsd:attribute name="probe_score" type="xsd:int"/>
266 <xsd:complexType name="tagType">
267 <xsd:attribute name="key" type="xsd:string" use="required"/>
268 <xsd:attribute name="value" type="xsd:string" use="required"/>
271 <xsd:complexType name="errorType">
272 <xsd:attribute name="code" type="xsd:int" use="required"/>
273 <xsd:attribute name="string" type="xsd:string" use="required"/>
276 <xsd:complexType name="programVersionType">
277 <xsd:attribute name="version" type="xsd:string" use="required"/>
278 <xsd:attribute name="copyright" type="xsd:string" use="required"/>
279 <xsd:attribute name="build_date" type="xsd:string"/>
280 <xsd:attribute name="build_time" type="xsd:string"/>
281 <xsd:attribute name="compiler_ident" type="xsd:string" use="required"/>
282 <xsd:attribute name="configuration" type="xsd:string" use="required"/>
285 <xsd:complexType name="chaptersType">
287 <xsd:element name="chapter" type="ffprobe:chapterType" minOccurs="0" maxOccurs="unbounded"/>
291 <xsd:complexType name="chapterType">
293 <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
296 <xsd:attribute name="id" type="xsd:int" use="required"/>
297 <xsd:attribute name="time_base" type="xsd:string" use="required"/>
298 <xsd:attribute name="start" type="xsd:int" use="required"/>
299 <xsd:attribute name="start_time" type="xsd:float"/>
300 <xsd:attribute name="end" type="xsd:int" use="required"/>
301 <xsd:attribute name="end_time" type="xsd:float" use="required"/>
304 <xsd:complexType name="libraryVersionType">
305 <xsd:attribute name="name" type="xsd:string" use="required"/>
306 <xsd:attribute name="major" type="xsd:int" use="required"/>
307 <xsd:attribute name="minor" type="xsd:int" use="required"/>
308 <xsd:attribute name="micro" type="xsd:int" use="required"/>
309 <xsd:attribute name="version" type="xsd:int" use="required"/>
310 <xsd:attribute name="ident" type="xsd:string" use="required"/>
313 <xsd:complexType name="libraryVersionsType">
315 <xsd:element name="library_version" type="ffprobe:libraryVersionType" minOccurs="0" maxOccurs="unbounded"/>
319 <xsd:complexType name="pixelFormatFlagsType">
320 <xsd:attribute name="big_endian" type="xsd:int" use="required"/>
321 <xsd:attribute name="palette" type="xsd:int" use="required"/>
322 <xsd:attribute name="bitstream" type="xsd:int" use="required"/>
323 <xsd:attribute name="hwaccel" type="xsd:int" use="required"/>
324 <xsd:attribute name="planar" type="xsd:int" use="required"/>
325 <xsd:attribute name="rgb" type="xsd:int" use="required"/>
326 <xsd:attribute name="pseudopal" type="xsd:int" use="required"/>
327 <xsd:attribute name="alpha" type="xsd:int" use="required"/>
330 <xsd:complexType name="pixelFormatComponentType">
331 <xsd:attribute name="index" type="xsd:int" use="required"/>
332 <xsd:attribute name="bit_depth" type="xsd:int" use="required"/>
335 <xsd:complexType name="pixelFormatComponentsType">
337 <xsd:element name="component" type="ffprobe:pixelFormatComponentType" minOccurs="0" maxOccurs="unbounded"/>
341 <xsd:complexType name="pixelFormatType">
343 <xsd:element name="flags" type="ffprobe:pixelFormatFlagsType" minOccurs="0" maxOccurs="1"/>
344 <xsd:element name="components" type="ffprobe:pixelFormatComponentsType" minOccurs="0" maxOccurs="1"/>
347 <xsd:attribute name="name" type="xsd:string" use="required"/>
348 <xsd:attribute name="nb_components" type="xsd:int" use="required"/>
349 <xsd:attribute name="log2_chroma_w" type="xsd:int"/>
350 <xsd:attribute name="log2_chroma_h" type="xsd:int"/>
351 <xsd:attribute name="bits_per_pixel" type="xsd:int"/>
354 <xsd:complexType name="pixelFormatsType">
356 <xsd:element name="pixel_format" type="ffprobe:pixelFormatType" minOccurs="0" maxOccurs="unbounded"/>