ffprobe.xsd 11 KB

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