InternalMediaInfoResult.cs 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. using System.Collections.Generic;
  2. namespace MediaBrowser.MediaEncoding.Probing
  3. {
  4. /// <summary>
  5. /// Class MediaInfoResult
  6. /// </summary>
  7. public class InternalMediaInfoResult
  8. {
  9. /// <summary>
  10. /// Gets or sets the streams.
  11. /// </summary>
  12. /// <value>The streams.</value>
  13. public MediaStreamInfo[] streams { get; set; }
  14. /// <summary>
  15. /// Gets or sets the format.
  16. /// </summary>
  17. /// <value>The format.</value>
  18. public MediaFormatInfo format { get; set; }
  19. /// <summary>
  20. /// Gets or sets the chapters.
  21. /// </summary>
  22. /// <value>The chapters.</value>
  23. public MediaChapter[] Chapters { get; set; }
  24. }
  25. public class MediaChapter
  26. {
  27. public int id { get; set; }
  28. public string time_base { get; set; }
  29. public long start { get; set; }
  30. public string start_time { get; set; }
  31. public long end { get; set; }
  32. public string end_time { get; set; }
  33. public Dictionary<string, string> tags { get; set; }
  34. }
  35. /// <summary>
  36. /// Represents a stream within the output
  37. /// </summary>
  38. public class MediaStreamInfo
  39. {
  40. /// <summary>
  41. /// Gets or sets the index.
  42. /// </summary>
  43. /// <value>The index.</value>
  44. public int index { get; set; }
  45. /// <summary>
  46. /// Gets or sets the profile.
  47. /// </summary>
  48. /// <value>The profile.</value>
  49. public string profile { get; set; }
  50. /// <summary>
  51. /// Gets or sets the codec_name.
  52. /// </summary>
  53. /// <value>The codec_name.</value>
  54. public string codec_name { get; set; }
  55. /// <summary>
  56. /// Gets or sets the codec_long_name.
  57. /// </summary>
  58. /// <value>The codec_long_name.</value>
  59. public string codec_long_name { get; set; }
  60. /// <summary>
  61. /// Gets or sets the codec_type.
  62. /// </summary>
  63. /// <value>The codec_type.</value>
  64. public string codec_type { get; set; }
  65. /// <summary>
  66. /// Gets or sets the sample_rate.
  67. /// </summary>
  68. /// <value>The sample_rate.</value>
  69. public string sample_rate { get; set; }
  70. /// <summary>
  71. /// Gets or sets the channels.
  72. /// </summary>
  73. /// <value>The channels.</value>
  74. public int channels { get; set; }
  75. /// <summary>
  76. /// Gets or sets the channel_layout.
  77. /// </summary>
  78. /// <value>The channel_layout.</value>
  79. public string channel_layout { get; set; }
  80. /// <summary>
  81. /// Gets or sets the avg_frame_rate.
  82. /// </summary>
  83. /// <value>The avg_frame_rate.</value>
  84. public string avg_frame_rate { get; set; }
  85. /// <summary>
  86. /// Gets or sets the duration.
  87. /// </summary>
  88. /// <value>The duration.</value>
  89. public string duration { get; set; }
  90. /// <summary>
  91. /// Gets or sets the bit_rate.
  92. /// </summary>
  93. /// <value>The bit_rate.</value>
  94. public string bit_rate { get; set; }
  95. /// <summary>
  96. /// Gets or sets the width.
  97. /// </summary>
  98. /// <value>The width.</value>
  99. public int width { get; set; }
  100. /// <summary>
  101. /// Gets or sets the refs.
  102. /// </summary>
  103. /// <value>The refs.</value>
  104. public int refs { get; set; }
  105. /// <summary>
  106. /// Gets or sets the height.
  107. /// </summary>
  108. /// <value>The height.</value>
  109. public int height { get; set; }
  110. /// <summary>
  111. /// Gets or sets the display_aspect_ratio.
  112. /// </summary>
  113. /// <value>The display_aspect_ratio.</value>
  114. public string display_aspect_ratio { get; set; }
  115. /// <summary>
  116. /// Gets or sets the tags.
  117. /// </summary>
  118. /// <value>The tags.</value>
  119. public Dictionary<string, string> tags { get; set; }
  120. /// <summary>
  121. /// Gets or sets the bits_per_sample.
  122. /// </summary>
  123. /// <value>The bits_per_sample.</value>
  124. public int bits_per_sample { get; set; }
  125. /// <summary>
  126. /// Gets or sets the bits_per_raw_sample.
  127. /// </summary>
  128. /// <value>The bits_per_raw_sample.</value>
  129. public int bits_per_raw_sample { get; set; }
  130. /// <summary>
  131. /// Gets or sets the r_frame_rate.
  132. /// </summary>
  133. /// <value>The r_frame_rate.</value>
  134. public string r_frame_rate { get; set; }
  135. /// <summary>
  136. /// Gets or sets the has_b_frames.
  137. /// </summary>
  138. /// <value>The has_b_frames.</value>
  139. public int has_b_frames { get; set; }
  140. /// <summary>
  141. /// Gets or sets the sample_aspect_ratio.
  142. /// </summary>
  143. /// <value>The sample_aspect_ratio.</value>
  144. public string sample_aspect_ratio { get; set; }
  145. /// <summary>
  146. /// Gets or sets the pix_fmt.
  147. /// </summary>
  148. /// <value>The pix_fmt.</value>
  149. public string pix_fmt { get; set; }
  150. /// <summary>
  151. /// Gets or sets the level.
  152. /// </summary>
  153. /// <value>The level.</value>
  154. public int level { get; set; }
  155. /// <summary>
  156. /// Gets or sets the time_base.
  157. /// </summary>
  158. /// <value>The time_base.</value>
  159. public string time_base { get; set; }
  160. /// <summary>
  161. /// Gets or sets the start_time.
  162. /// </summary>
  163. /// <value>The start_time.</value>
  164. public string start_time { get; set; }
  165. /// <summary>
  166. /// Gets or sets the codec_time_base.
  167. /// </summary>
  168. /// <value>The codec_time_base.</value>
  169. public string codec_time_base { get; set; }
  170. /// <summary>
  171. /// Gets or sets the codec_tag.
  172. /// </summary>
  173. /// <value>The codec_tag.</value>
  174. public string codec_tag { get; set; }
  175. /// <summary>
  176. /// Gets or sets the codec_tag_string.
  177. /// </summary>
  178. /// <value>The codec_tag_string.</value>
  179. public string codec_tag_string { get; set; }
  180. /// <summary>
  181. /// Gets or sets the sample_fmt.
  182. /// </summary>
  183. /// <value>The sample_fmt.</value>
  184. public string sample_fmt { get; set; }
  185. /// <summary>
  186. /// Gets or sets the dmix_mode.
  187. /// </summary>
  188. /// <value>The dmix_mode.</value>
  189. public string dmix_mode { get; set; }
  190. /// <summary>
  191. /// Gets or sets the start_pts.
  192. /// </summary>
  193. /// <value>The start_pts.</value>
  194. public string start_pts { get; set; }
  195. /// <summary>
  196. /// Gets or sets the is_avc.
  197. /// </summary>
  198. /// <value>The is_avc.</value>
  199. public string is_avc { get; set; }
  200. /// <summary>
  201. /// Gets or sets the nal_length_size.
  202. /// </summary>
  203. /// <value>The nal_length_size.</value>
  204. public string nal_length_size { get; set; }
  205. /// <summary>
  206. /// Gets or sets the ltrt_cmixlev.
  207. /// </summary>
  208. /// <value>The ltrt_cmixlev.</value>
  209. public string ltrt_cmixlev { get; set; }
  210. /// <summary>
  211. /// Gets or sets the ltrt_surmixlev.
  212. /// </summary>
  213. /// <value>The ltrt_surmixlev.</value>
  214. public string ltrt_surmixlev { get; set; }
  215. /// <summary>
  216. /// Gets or sets the loro_cmixlev.
  217. /// </summary>
  218. /// <value>The loro_cmixlev.</value>
  219. public string loro_cmixlev { get; set; }
  220. /// <summary>
  221. /// Gets or sets the loro_surmixlev.
  222. /// </summary>
  223. /// <value>The loro_surmixlev.</value>
  224. public string loro_surmixlev { get; set; }
  225. public string field_order { get; set; }
  226. /// <summary>
  227. /// Gets or sets the disposition.
  228. /// </summary>
  229. /// <value>The disposition.</value>
  230. public Dictionary<string, string> disposition { get; set; }
  231. }
  232. /// <summary>
  233. /// Class MediaFormat
  234. /// </summary>
  235. public class MediaFormatInfo
  236. {
  237. /// <summary>
  238. /// Gets or sets the filename.
  239. /// </summary>
  240. /// <value>The filename.</value>
  241. public string filename { get; set; }
  242. /// <summary>
  243. /// Gets or sets the nb_streams.
  244. /// </summary>
  245. /// <value>The nb_streams.</value>
  246. public int nb_streams { get; set; }
  247. /// <summary>
  248. /// Gets or sets the format_name.
  249. /// </summary>
  250. /// <value>The format_name.</value>
  251. public string format_name { get; set; }
  252. /// <summary>
  253. /// Gets or sets the format_long_name.
  254. /// </summary>
  255. /// <value>The format_long_name.</value>
  256. public string format_long_name { get; set; }
  257. /// <summary>
  258. /// Gets or sets the start_time.
  259. /// </summary>
  260. /// <value>The start_time.</value>
  261. public string start_time { get; set; }
  262. /// <summary>
  263. /// Gets or sets the duration.
  264. /// </summary>
  265. /// <value>The duration.</value>
  266. public string duration { get; set; }
  267. /// <summary>
  268. /// Gets or sets the size.
  269. /// </summary>
  270. /// <value>The size.</value>
  271. public string size { get; set; }
  272. /// <summary>
  273. /// Gets or sets the bit_rate.
  274. /// </summary>
  275. /// <value>The bit_rate.</value>
  276. public string bit_rate { get; set; }
  277. /// <summary>
  278. /// Gets or sets the probe_score.
  279. /// </summary>
  280. /// <value>The probe_score.</value>
  281. public int probe_score { get; set; }
  282. /// <summary>
  283. /// Gets or sets the tags.
  284. /// </summary>
  285. /// <value>The tags.</value>
  286. public Dictionary<string, string> tags { get; set; }
  287. }
  288. }