ffprobe.xsd 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  3. targetNamespace="http://www.ffmpeg.org/schema/ffprobe"
  4. xmlns:ffprobe="http://www.ffmpeg.org/schema/ffprobe">
  5. <xsd:element name="ffprobe" type="ffprobe:ffprobeType"/>
  6. <xsd:complexType name="ffprobeType">
  7. <xsd:sequence>
  8. <xsd:element name="program_version" type="ffprobe:programVersionType" minOccurs="0" maxOccurs="1" />
  9. <xsd:element name="library_versions" type="ffprobe:libraryVersionsType" minOccurs="0" maxOccurs="1" />
  10. <xsd:element name="pixel_formats" type="ffprobe:pixelFormatsType" minOccurs="0" maxOccurs="1" />
  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="packets_and_frames" type="ffprobe:packetsAndFramesType" minOccurs="0" maxOccurs="1" />
  14. <xsd:element name="programs" type="ffprobe:programsType" minOccurs="0" maxOccurs="1" />
  15. <xsd:element name="stream_groups" type="ffprobe:StreamGroupsType" minOccurs="0" maxOccurs="1" />
  16. <xsd:element name="streams" type="ffprobe:streamsType" minOccurs="0" maxOccurs="1" />
  17. <xsd:element name="chapters" type="ffprobe:chaptersType" minOccurs="0" maxOccurs="1" />
  18. <xsd:element name="format" type="ffprobe:formatType" minOccurs="0" maxOccurs="1" />
  19. <xsd:element name="error" type="ffprobe:errorType" minOccurs="0" maxOccurs="1" />
  20. </xsd:sequence>
  21. </xsd:complexType>
  22. <xsd:complexType name="packetsType">
  23. <xsd:sequence>
  24. <xsd:element name="packet" type="ffprobe:packetType" minOccurs="0" maxOccurs="unbounded"/>
  25. </xsd:sequence>
  26. </xsd:complexType>
  27. <xsd:complexType name="framesType">
  28. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  29. <xsd:element name="frame" type="ffprobe:frameType"/>
  30. <xsd:element name="subtitle" type="ffprobe:subtitleType"/>
  31. </xsd:choice>
  32. </xsd:complexType>
  33. <xsd:complexType name="packetsAndFramesType">
  34. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  35. <xsd:element name="packet" type="ffprobe:packetType"/>
  36. <xsd:element name="frame" type="ffprobe:frameType"/>
  37. <xsd:element name="subtitle" type="ffprobe:subtitleType"/>
  38. </xsd:choice>
  39. </xsd:complexType>
  40. <xsd:complexType name="tagsType">
  41. <xsd:sequence>
  42. <xsd:element name="tag" type="ffprobe:tagType" minOccurs="0" maxOccurs="unbounded"/>
  43. </xsd:sequence>
  44. </xsd:complexType>
  45. <xsd:complexType name="packetType">
  46. <xsd:sequence>
  47. <xsd:element name="tags" type="ffprobe:tagsType" minOccurs="0" maxOccurs="1"/>
  48. <xsd:element name="side_data_list" type="ffprobe:packetSideDataListType" minOccurs="0" maxOccurs="1" />
  49. </xsd:sequence>
  50. <xsd:attribute name="codec_type" type="xsd:string" use="required" />
  51. <xsd:attribute name="stream_index" type="xsd:int" use="required" />
  52. <xsd:attribute name="pts" type="xsd:long" />
  53. <xsd:attribute name="pts_time" type="xsd:float" />
  54. <xsd:attribute name="dts" type="xsd:long" />
  55. <xsd:attribute name="dts_time" type="xsd:float" />
  56. <xsd:attribute name="duration" type="xsd:long" />
  57. <xsd:attribute name="duration_time" type="xsd:float" />
  58. <xsd:attribute name="size" type="xsd:long" use="required" />
  59. <xsd:attribute name="pos" type="xsd:long" />
  60. <xsd:attribute name="flags" type="xsd:string" use="required" />
  61. <xsd:attribute name="data" type="xsd:string" />
  62. <xsd:attribute name="data_hash" type="xsd:string" />
  63. </xsd:complexType>
  64. <xsd:complexType name="packetSideDataListType">
  65. <xsd:sequence>
  66. <xsd:element name="side_data" type="ffprobe:packetSideDataType" minOccurs="1" maxOccurs="unbounded"/>
  67. </xsd:sequence>
  68. </xsd:complexType>
  69. <xsd:complexType name="packetSideDataType">
  70. <xsd:sequence>
  71. <xsd:element name="side_datum" type="ffprobe:packetSideDatumType" minOccurs="1" maxOccurs="unbounded"/>
  72. </xsd:sequence>
  73. <xsd:attribute name="type" type="xsd:string"/>
  74. </xsd:complexType>
  75. <xsd:complexType name="packetSideDatumType">
  76. <xsd:attribute name="key" type="xsd:string"/>
  77. <xsd:attribute name="value" type="xsd:string"/>
  78. </xsd:complexType>
  79. <xsd:complexType name="frameType">
  80. <xsd:sequence>
  81. <xsd:element name="tags" type="ffprobe:tagsType" minOccurs="0" maxOccurs="1"/>
  82. <xsd:element name="logs" type="ffprobe:logsType" minOccurs="0" maxOccurs="1"/>
  83. <xsd:element name="side_data_list" type="ffprobe:frameSideDataListType" minOccurs="0" maxOccurs="1" />
  84. </xsd:sequence>
  85. <xsd:attribute name="media_type" type="xsd:string" use="required"/>
  86. <xsd:attribute name="stream_index" type="xsd:int" />
  87. <xsd:attribute name="key_frame" type="xsd:int" use="required"/>
  88. <xsd:attribute name="pts" type="xsd:long" />
  89. <xsd:attribute name="pts_time" type="xsd:float"/>
  90. <xsd:attribute name="pkt_dts" type="xsd:long" />
  91. <xsd:attribute name="pkt_dts_time" type="xsd:float"/>
  92. <xsd:attribute name="best_effort_timestamp" type="xsd:long" />
  93. <xsd:attribute name="best_effort_timestamp_time" type="xsd:float" />
  94. <xsd:attribute name="duration" type="xsd:long" />
  95. <xsd:attribute name="duration_time" type="xsd:float"/>
  96. <xsd:attribute name="pkt_pos" type="xsd:long" />
  97. <xsd:attribute name="pkt_size" type="xsd:int" />
  98. <!-- audio attributes -->
  99. <xsd:attribute name="sample_fmt" type="xsd:string"/>
  100. <xsd:attribute name="nb_samples" type="xsd:long" />
  101. <xsd:attribute name="channels" type="xsd:int" />
  102. <xsd:attribute name="channel_layout" type="xsd:string"/>
  103. <!-- video attributes -->
  104. <xsd:attribute name="width" type="xsd:long" />
  105. <xsd:attribute name="height" type="xsd:long" />
  106. <xsd:attribute name="crop_top" type="xsd:long" />
  107. <xsd:attribute name="crop_bottom" type="xsd:long" />
  108. <xsd:attribute name="crop_left" type="xsd:long" />
  109. <xsd:attribute name="crop_right" type="xsd:long" />
  110. <xsd:attribute name="pix_fmt" type="xsd:string"/>
  111. <xsd:attribute name="sample_aspect_ratio" type="xsd:string"/>
  112. <xsd:attribute name="pict_type" type="xsd:string"/>
  113. <xsd:attribute name="interlaced_frame" type="xsd:int" />
  114. <xsd:attribute name="top_field_first" type="xsd:int" />
  115. <xsd:attribute name="repeat_pict" type="xsd:int" />
  116. <xsd:attribute name="color_range" type="xsd:string"/>
  117. <xsd:attribute name="color_space" type="xsd:string"/>
  118. <xsd:attribute name="color_primaries" type="xsd:string"/>
  119. <xsd:attribute name="color_transfer" type="xsd:string"/>
  120. <xsd:attribute name="chroma_location" type="xsd:string"/>
  121. </xsd:complexType>
  122. <xsd:complexType name="logsType">
  123. <xsd:sequence>
  124. <xsd:element name="log" type="ffprobe:logType" minOccurs="1" maxOccurs="unbounded"/>
  125. </xsd:sequence>
  126. </xsd:complexType>
  127. <xsd:complexType name="logType">
  128. <xsd:attribute name="context" type="xsd:string"/>
  129. <xsd:attribute name="level" type="xsd:int" />
  130. <xsd:attribute name="category" type="xsd:int" />
  131. <xsd:attribute name="parent_context" type="xsd:string"/>
  132. <xsd:attribute name="parent_category" type="xsd:int" />
  133. <xsd:attribute name="message" type="xsd:string"/>
  134. </xsd:complexType>
  135. <xsd:complexType name="frameSideDataListType">
  136. <xsd:sequence>
  137. <xsd:element name="side_data" type="ffprobe:frameSideDataType" minOccurs="1" maxOccurs="unbounded"/>
  138. </xsd:sequence>
  139. </xsd:complexType>
  140. <xsd:complexType name="frameSideDataType">
  141. <xsd:sequence>
  142. <xsd:element name="timecodes" type="ffprobe:frameSideDataTimecodeList" minOccurs="0" maxOccurs="1"/>
  143. <xsd:element name="components" type="ffprobe:frameSideDataComponentList" minOccurs="0" maxOccurs="1"/>
  144. <xsd:element name="side_datum" type="ffprobe:frameSideDatumType" minOccurs="0" maxOccurs="unbounded"/>
  145. </xsd:sequence>
  146. <xsd:attribute name="side_data_type" type="xsd:string"/>
  147. <xsd:attribute name="side_data_size" type="xsd:int" />
  148. <xsd:attribute name="timecode" type="xsd:string"/>
  149. </xsd:complexType>
  150. <xsd:complexType name="frameSideDatumType">
  151. <xsd:attribute name="key" type="xsd:string"/>
  152. <xsd:attribute name="value" type="xsd:string"/>
  153. </xsd:complexType>
  154. <xsd:complexType name="frameSideDataTimecodeList">
  155. <xsd:sequence>
  156. <xsd:element name="timecode" type="ffprobe:frameSideDataTimecodeType" minOccurs="0" maxOccurs="unbounded"/>
  157. </xsd:sequence>
  158. </xsd:complexType>
  159. <xsd:complexType name="frameSideDataTimecodeType">
  160. <xsd:attribute name="value" type="xsd:string"/>
  161. </xsd:complexType>
  162. <xsd:complexType name="frameSideDataComponentList">
  163. <xsd:sequence>
  164. <xsd:element name="component" type="ffprobe:frameSideDataComponentType" minOccurs="0" maxOccurs="unbounded"/>
  165. </xsd:sequence>
  166. </xsd:complexType>
  167. <xsd:complexType name="frameSideDataComponentType">
  168. <xsd:sequence>
  169. <xsd:element name="pieces" type="ffprobe:frameSideDataPieceList" minOccurs="0" maxOccurs="1"/>
  170. <xsd:element name="side_datum" type="ffprobe:frameSideDatumType" minOccurs="0" maxOccurs="unbounded"/>
  171. </xsd:sequence>
  172. </xsd:complexType>
  173. <xsd:complexType name="frameSideDataPieceList">
  174. <xsd:sequence>
  175. <xsd:element name="piece" type="ffprobe:frameSideDataPieceType" minOccurs="0" maxOccurs="unbounded"/>
  176. </xsd:sequence>
  177. </xsd:complexType>
  178. <xsd:complexType name="frameSideDataPieceType">
  179. <xsd:sequence>
  180. <xsd:element name="side_datum" type="ffprobe:frameSideDatumType" minOccurs="0" maxOccurs="unbounded"/>
  181. </xsd:sequence>
  182. </xsd:complexType>
  183. <xsd:complexType name="subtitleType">
  184. <xsd:attribute name="media_type" type="xsd:string" fixed="subtitle" use="required"/>
  185. <xsd:attribute name="pts" type="xsd:long" />
  186. <xsd:attribute name="pts_time" type="xsd:float"/>
  187. <xsd:attribute name="format" type="xsd:int" />
  188. <xsd:attribute name="start_display_time" type="xsd:int" />
  189. <xsd:attribute name="end_display_time" type="xsd:int" />
  190. <xsd:attribute name="num_rects" type="xsd:int" />
  191. </xsd:complexType>
  192. <xsd:complexType name="streamsType">
  193. <xsd:sequence>
  194. <xsd:element name="stream" type="ffprobe:streamType" minOccurs="0" maxOccurs="unbounded"/>
  195. </xsd:sequence>
  196. </xsd:complexType>
  197. <xsd:complexType name="programsType">
  198. <xsd:sequence>
  199. <xsd:element name="program" type="ffprobe:programType" minOccurs="0" maxOccurs="unbounded"/>
  200. </xsd:sequence>
  201. </xsd:complexType>
  202. <xsd:complexType name="StreamGroupsType">
  203. <xsd:sequence>
  204. <xsd:element name="stream_group" type="ffprobe:streamGroupType" minOccurs="0" maxOccurs="unbounded"/>
  205. </xsd:sequence>
  206. </xsd:complexType>
  207. <xsd:complexType name="streamDispositionType">
  208. <xsd:attribute name="default" type="xsd:int" use="required" />
  209. <xsd:attribute name="dub" type="xsd:int" use="required" />
  210. <xsd:attribute name="original" type="xsd:int" use="required" />
  211. <xsd:attribute name="comment" type="xsd:int" use="required" />
  212. <xsd:attribute name="lyrics" type="xsd:int" use="required" />
  213. <xsd:attribute name="karaoke" type="xsd:int" use="required" />
  214. <xsd:attribute name="forced" type="xsd:int" use="required" />
  215. <xsd:attribute name="hearing_impaired" type="xsd:int" use="required" />
  216. <xsd:attribute name="visual_impaired" type="xsd:int" use="required" />
  217. <xsd:attribute name="clean_effects" type="xsd:int" use="required" />
  218. <xsd:attribute name="attached_pic" type="xsd:int" use="required" />
  219. <xsd:attribute name="timed_thumbnails" type="xsd:int" use="required" />
  220. <xsd:attribute name="non_diegetic" type="xsd:int" use="required" />
  221. <xsd:attribute name="captions" type="xsd:int" use="required" />
  222. <xsd:attribute name="descriptions" type="xsd:int" use="required" />
  223. <xsd:attribute name="metadata" type="xsd:int" use="required" />
  224. <xsd:attribute name="dependent" type="xsd:int" use="required" />
  225. <xsd:attribute name="still_image" type="xsd:int" use="required" />
  226. <xsd:attribute name="multilayer" type="xsd:int" use="required" />
  227. </xsd:complexType>
  228. <xsd:complexType name="streamType">
  229. <xsd:sequence>
  230. <xsd:element name="disposition" type="ffprobe:streamDispositionType" minOccurs="0" maxOccurs="1"/>
  231. <xsd:element name="tags" type="ffprobe:tagsType" minOccurs="0" maxOccurs="1"/>
  232. <xsd:element name="side_data_list" type="ffprobe:packetSideDataListType" minOccurs="0" maxOccurs="1" />
  233. </xsd:sequence>
  234. <xsd:attribute name="index" type="xsd:int" use="required"/>
  235. <xsd:attribute name="codec_name" type="xsd:string" />
  236. <xsd:attribute name="codec_long_name" type="xsd:string" />
  237. <xsd:attribute name="profile" type="xsd:string" />
  238. <xsd:attribute name="codec_type" type="xsd:string" />
  239. <xsd:attribute name="codec_tag" type="xsd:string" use="required"/>
  240. <xsd:attribute name="codec_tag_string" type="xsd:string" use="required"/>
  241. <xsd:attribute name="extradata" type="xsd:string" />
  242. <xsd:attribute name="extradata_size" type="xsd:int" />
  243. <xsd:attribute name="extradata_hash" type="xsd:string" />
  244. <!-- video attributes -->
  245. <xsd:attribute name="width" type="xsd:int"/>
  246. <xsd:attribute name="height" type="xsd:int"/>
  247. <xsd:attribute name="coded_width" type="xsd:int"/>
  248. <xsd:attribute name="coded_height" type="xsd:int"/>
  249. <xsd:attribute name="closed_captions" type="xsd:boolean"/>
  250. <xsd:attribute name="film_grain" type="xsd:boolean"/>
  251. <xsd:attribute name="has_b_frames" type="xsd:int"/>
  252. <xsd:attribute name="sample_aspect_ratio" type="xsd:string"/>
  253. <xsd:attribute name="display_aspect_ratio" type="xsd:string"/>
  254. <xsd:attribute name="pix_fmt" type="xsd:string"/>
  255. <xsd:attribute name="level" type="xsd:int"/>
  256. <xsd:attribute name="color_range" type="xsd:string"/>
  257. <xsd:attribute name="color_space" type="xsd:string"/>
  258. <xsd:attribute name="color_transfer" type="xsd:string"/>
  259. <xsd:attribute name="color_primaries" type="xsd:string"/>
  260. <xsd:attribute name="chroma_location" type="xsd:string"/>
  261. <xsd:attribute name="field_order" type="xsd:string"/>
  262. <xsd:attribute name="refs" type="xsd:int"/>
  263. <!-- audio attributes -->
  264. <xsd:attribute name="sample_fmt" type="xsd:string"/>
  265. <xsd:attribute name="sample_rate" type="xsd:int"/>
  266. <xsd:attribute name="channels" type="xsd:int"/>
  267. <xsd:attribute name="channel_layout" type="xsd:string"/>
  268. <xsd:attribute name="bits_per_sample" type="xsd:int"/>
  269. <xsd:attribute name="initial_padding" type="xsd:int"/>
  270. <xsd:attribute name="id" type="xsd:string"/>
  271. <xsd:attribute name="r_frame_rate" type="xsd:string" use="required"/>
  272. <xsd:attribute name="avg_frame_rate" type="xsd:string" use="required"/>
  273. <xsd:attribute name="time_base" type="xsd:string" use="required"/>
  274. <xsd:attribute name="start_pts" type="xsd:long"/>
  275. <xsd:attribute name="start_time" type="xsd:float"/>
  276. <xsd:attribute name="duration_ts" type="xsd:long"/>
  277. <xsd:attribute name="duration" type="xsd:float"/>
  278. <xsd:attribute name="bit_rate" type="xsd:int"/>
  279. <xsd:attribute name="max_bit_rate" type="xsd:int"/>
  280. <xsd:attribute name="bits_per_raw_sample" type="xsd:int"/>
  281. <xsd:attribute name="nb_frames" type="xsd:int"/>
  282. <xsd:attribute name="nb_read_frames" type="xsd:int"/>
  283. <xsd:attribute name="nb_read_packets" type="xsd:int"/>
  284. </xsd:complexType>
  285. <xsd:complexType name="programType">
  286. <xsd:sequence>
  287. <xsd:element name="tags" type="ffprobe:tagsType" minOccurs="0" maxOccurs="1"/>
  288. <xsd:element name="streams" type="ffprobe:streamsType" minOccurs="0" maxOccurs="1"/>
  289. </xsd:sequence>
  290. <xsd:attribute name="program_id" type="xsd:int" use="required"/>
  291. <xsd:attribute name="program_num" type="xsd:int" use="required"/>
  292. <xsd:attribute name="nb_streams" type="xsd:int" use="required"/>
  293. <xsd:attribute name="pmt_pid" type="xsd:int" use="required"/>
  294. <xsd:attribute name="pcr_pid" type="xsd:int" use="required"/>
  295. </xsd:complexType>
  296. <xsd:complexType name="streamGroupType">
  297. <xsd:sequence>
  298. <xsd:element name="disposition" type="ffprobe:streamDispositionType" minOccurs="0" maxOccurs="1"/>
  299. <xsd:element name="tags" type="ffprobe:tagsType" minOccurs="0" maxOccurs="1"/>
  300. <xsd:element name="streams" type="ffprobe:streamsType" minOccurs="0" maxOccurs="1"/>
  301. <xsd:element name="components" type="ffprobe:streamGroupComponentList" minOccurs="0" maxOccurs="1"/>
  302. </xsd:sequence>
  303. <xsd:attribute name="index" type="xsd:int" use="required"/>
  304. <xsd:attribute name="nb_streams" type="xsd:int" use="required"/>
  305. <xsd:attribute name="type" type="xsd:string" use="required"/>
  306. </xsd:complexType>
  307. <xsd:complexType name="streamGroupComponentList">
  308. <xsd:sequence>
  309. <xsd:element name="component" type="ffprobe:streamGroupComponentType" minOccurs="0" maxOccurs="unbounded"/>
  310. </xsd:sequence>
  311. </xsd:complexType>
  312. <xsd:complexType name="streamGroupComponentType">
  313. <xsd:sequence>
  314. <xsd:element name="subcomponents" type="ffprobe:streamGroupSubComponentList" minOccurs="0" maxOccurs="1"/>
  315. <xsd:element name="component_entry" type="ffprobe:streamGroupEntryType" minOccurs="0" maxOccurs="unbounded"/>
  316. </xsd:sequence>
  317. </xsd:complexType>
  318. <xsd:complexType name="streamGroupSubComponentList">
  319. <xsd:sequence>
  320. <xsd:element name="subcomponent" type="ffprobe:streamGroupSubComponentType" minOccurs="0" maxOccurs="unbounded"/>
  321. </xsd:sequence>
  322. </xsd:complexType>
  323. <xsd:complexType name="streamGroupSubComponentType">
  324. <xsd:sequence>
  325. <xsd:element name="pieces" type="ffprobe:streamGroupPieceList" minOccurs="0" maxOccurs="1"/>
  326. <xsd:element name="subcomponent_entry" type="ffprobe:streamGroupEntryType" minOccurs="0" maxOccurs="unbounded"/>
  327. </xsd:sequence>
  328. </xsd:complexType>
  329. <xsd:complexType name="streamGroupPieceList">
  330. <xsd:sequence>
  331. <xsd:element name="piece" type="ffprobe:streamGroupPieceType" minOccurs="0" maxOccurs="unbounded"/>
  332. </xsd:sequence>
  333. </xsd:complexType>
  334. <xsd:complexType name="streamGroupPieceType">
  335. <xsd:sequence>
  336. <xsd:element name="subpieces" type="ffprobe:streamGroupSubPieceList" minOccurs="0" maxOccurs="1"/>
  337. <xsd:element name="piece_entry" type="ffprobe:streamGroupEntryType" minOccurs="0" maxOccurs="unbounded"/>
  338. </xsd:sequence>
  339. </xsd:complexType>
  340. <xsd:complexType name="streamGroupSubPieceList">
  341. <xsd:sequence>
  342. <xsd:element name="subpiece" type="ffprobe:streamGroupSubPieceType" minOccurs="0" maxOccurs="unbounded"/>
  343. </xsd:sequence>
  344. </xsd:complexType>
  345. <xsd:complexType name="streamGroupSubPieceType">
  346. <xsd:sequence>
  347. <xsd:element name="blocks" type="ffprobe:streamGroupBlockList" minOccurs="0" maxOccurs="1"/>
  348. <xsd:element name="subpiece_entry" type="ffprobe:streamGroupEntryType" minOccurs="0" maxOccurs="unbounded"/>
  349. </xsd:sequence>
  350. </xsd:complexType>
  351. <xsd:complexType name="streamGroupBlockList">
  352. <xsd:sequence>
  353. <xsd:element name="block" type="ffprobe:streamGroupBlockType" minOccurs="0" maxOccurs="unbounded"/>
  354. </xsd:sequence>
  355. </xsd:complexType>
  356. <xsd:complexType name="streamGroupBlockType">
  357. <xsd:sequence>
  358. <xsd:element name="block_entry" type="ffprobe:streamGroupEntryType" minOccurs="0" maxOccurs="unbounded"/>
  359. </xsd:sequence>
  360. </xsd:complexType>
  361. <xsd:complexType name="streamGroupEntryType">
  362. <xsd:attribute name="key" type="xsd:string"/>
  363. <xsd:attribute name="value" type="xsd:string"/>
  364. </xsd:complexType>
  365. <xsd:complexType name="formatType">
  366. <xsd:sequence>
  367. <xsd:element name="tags" type="ffprobe:tagsType" minOccurs="0" maxOccurs="1"/>
  368. </xsd:sequence>
  369. <xsd:attribute name="filename" type="xsd:string" use="required"/>
  370. <xsd:attribute name="nb_streams" type="xsd:int" use="required"/>
  371. <xsd:attribute name="nb_programs" type="xsd:int" use="required"/>
  372. <xsd:attribute name="nb_stream_groups" type="xsd:int" use="required"/>
  373. <xsd:attribute name="format_name" type="xsd:string" use="required"/>
  374. <xsd:attribute name="format_long_name" type="xsd:string"/>
  375. <xsd:attribute name="start_time" type="xsd:float"/>
  376. <xsd:attribute name="duration" type="xsd:float"/>
  377. <xsd:attribute name="size" type="xsd:long"/>
  378. <xsd:attribute name="bit_rate" type="xsd:long"/>
  379. <xsd:attribute name="probe_score" type="xsd:int"/>
  380. </xsd:complexType>
  381. <xsd:complexType name="tagType">
  382. <xsd:attribute name="key" type="xsd:string" use="required"/>
  383. <xsd:attribute name="value" type="xsd:string" use="required"/>
  384. </xsd:complexType>
  385. <xsd:complexType name="errorType">
  386. <xsd:attribute name="code" type="xsd:int" use="required"/>
  387. <xsd:attribute name="string" type="xsd:string" use="required"/>
  388. </xsd:complexType>
  389. <xsd:complexType name="programVersionType">
  390. <xsd:attribute name="version" type="xsd:string" use="required"/>
  391. <xsd:attribute name="copyright" type="xsd:string" use="required"/>
  392. <xsd:attribute name="build_date" type="xsd:string"/>
  393. <xsd:attribute name="build_time" type="xsd:string"/>
  394. <xsd:attribute name="compiler_ident" type="xsd:string" use="required"/>
  395. <xsd:attribute name="configuration" type="xsd:string" use="required"/>
  396. </xsd:complexType>
  397. <xsd:complexType name="chaptersType">
  398. <xsd:sequence>
  399. <xsd:element name="chapter" type="ffprobe:chapterType" minOccurs="0" maxOccurs="unbounded"/>
  400. </xsd:sequence>
  401. </xsd:complexType>
  402. <xsd:complexType name="chapterType">
  403. <xsd:sequence>
  404. <xsd:element name="tags" type="ffprobe:tagsType" minOccurs="0" maxOccurs="unbounded"/>
  405. </xsd:sequence>
  406. <xsd:attribute name="id" type="xsd:int" use="required"/>
  407. <xsd:attribute name="time_base" type="xsd:string" use="required"/>
  408. <xsd:attribute name="start" type="xsd:int" use="required"/>
  409. <xsd:attribute name="start_time" type="xsd:float"/>
  410. <xsd:attribute name="end" type="xsd:int" use="required"/>
  411. <xsd:attribute name="end_time" type="xsd:float" use="required"/>
  412. </xsd:complexType>
  413. <xsd:complexType name="libraryVersionType">
  414. <xsd:attribute name="name" type="xsd:string" use="required"/>
  415. <xsd:attribute name="major" type="xsd:int" use="required"/>
  416. <xsd:attribute name="minor" type="xsd:int" use="required"/>
  417. <xsd:attribute name="micro" type="xsd:int" use="required"/>
  418. <xsd:attribute name="version" type="xsd:int" use="required"/>
  419. <xsd:attribute name="ident" type="xsd:string" use="required"/>
  420. </xsd:complexType>
  421. <xsd:complexType name="libraryVersionsType">
  422. <xsd:sequence>
  423. <xsd:element name="library_version" type="ffprobe:libraryVersionType" minOccurs="0" maxOccurs="unbounded"/>
  424. </xsd:sequence>
  425. </xsd:complexType>
  426. <xsd:complexType name="pixelFormatFlagsType">
  427. <xsd:attribute name="big_endian" type="xsd:int" use="required"/>
  428. <xsd:attribute name="palette" type="xsd:int" use="required"/>
  429. <xsd:attribute name="bitstream" type="xsd:int" use="required"/>
  430. <xsd:attribute name="hwaccel" type="xsd:int" use="required"/>
  431. <xsd:attribute name="planar" type="xsd:int" use="required"/>
  432. <xsd:attribute name="rgb" type="xsd:int" use="required"/>
  433. <xsd:attribute name="alpha" type="xsd:int" use="required"/>
  434. </xsd:complexType>
  435. <xsd:complexType name="pixelFormatComponentType">
  436. <xsd:attribute name="index" type="xsd:int" use="required"/>
  437. <xsd:attribute name="bit_depth" type="xsd:int" use="required"/>
  438. </xsd:complexType>
  439. <xsd:complexType name="pixelFormatComponentsType">
  440. <xsd:sequence>
  441. <xsd:element name="component" type="ffprobe:pixelFormatComponentType" minOccurs="0" maxOccurs="unbounded"/>
  442. </xsd:sequence>
  443. </xsd:complexType>
  444. <xsd:complexType name="pixelFormatType">
  445. <xsd:sequence>
  446. <xsd:element name="flags" type="ffprobe:pixelFormatFlagsType" minOccurs="0" maxOccurs="1"/>
  447. <xsd:element name="components" type="ffprobe:pixelFormatComponentsType" minOccurs="0" maxOccurs="1"/>
  448. </xsd:sequence>
  449. <xsd:attribute name="name" type="xsd:string" use="required"/>
  450. <xsd:attribute name="nb_components" type="xsd:int" use="required"/>
  451. <xsd:attribute name="log2_chroma_w" type="xsd:int"/>
  452. <xsd:attribute name="log2_chroma_h" type="xsd:int"/>
  453. <xsd:attribute name="bits_per_pixel" type="xsd:int"/>
  454. </xsd:complexType>
  455. <xsd:complexType name="pixelFormatsType">
  456. <xsd:sequence>
  457. <xsd:element name="pixel_format" type="ffprobe:pixelFormatType" minOccurs="0" maxOccurs="unbounded"/>
  458. </xsd:sequence>
  459. </xsd:complexType>
  460. </xsd:schema>