MediaInfoResult.cs 8.6 KB

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