2
0

MediaStreamInfo.cs 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. using System.Collections.Generic;
  2. using System.Text.Json.Serialization;
  3. namespace MediaBrowser.MediaEncoding.Probing
  4. {
  5. /// <summary>
  6. /// Represents a stream within the output.
  7. /// </summary>
  8. public class MediaStreamInfo
  9. {
  10. /// <summary>
  11. /// Gets or sets the index.
  12. /// </summary>
  13. /// <value>The index.</value>
  14. [JsonPropertyName("index")]
  15. public int Index { get; set; }
  16. /// <summary>
  17. /// Gets or sets the profile.
  18. /// </summary>
  19. /// <value>The profile.</value>
  20. [JsonPropertyName("profile")]
  21. public string Profile { get; set; }
  22. /// <summary>
  23. /// Gets or sets the codec_name.
  24. /// </summary>
  25. /// <value>The codec_name.</value>
  26. [JsonPropertyName("codec_name")]
  27. public string CodecName { get; set; }
  28. /// <summary>
  29. /// Gets or sets the codec_long_name.
  30. /// </summary>
  31. /// <value>The codec_long_name.</value>
  32. [JsonPropertyName("codec_long_name")]
  33. public string CodecLongName { get; set; }
  34. /// <summary>
  35. /// Gets or sets the codec_type.
  36. /// </summary>
  37. /// <value>The codec_type.</value>
  38. [JsonPropertyName("codec_type")]
  39. public string CodecType { get; set; }
  40. /// <summary>
  41. /// Gets or sets the sample_rate.
  42. /// </summary>
  43. /// <value>The sample_rate.</value>
  44. [JsonPropertyName("sample_rate")]
  45. public string SampleRate { get; set; }
  46. /// <summary>
  47. /// Gets or sets the channels.
  48. /// </summary>
  49. /// <value>The channels.</value>
  50. [JsonPropertyName("channels")]
  51. public int Channels { get; set; }
  52. /// <summary>
  53. /// Gets or sets the channel_layout.
  54. /// </summary>
  55. /// <value>The channel_layout.</value>
  56. [JsonPropertyName("channel_layout")]
  57. public string ChannelLayout { get; set; }
  58. /// <summary>
  59. /// Gets or sets the avg_frame_rate.
  60. /// </summary>
  61. /// <value>The avg_frame_rate.</value>
  62. [JsonPropertyName("avg_frame_rate")]
  63. public string AverageFrameRate { get; set; }
  64. /// <summary>
  65. /// Gets or sets the duration.
  66. /// </summary>
  67. /// <value>The duration.</value>
  68. [JsonPropertyName("duration")]
  69. public string Duration { get; set; }
  70. /// <summary>
  71. /// Gets or sets the bit_rate.
  72. /// </summary>
  73. /// <value>The bit_rate.</value>
  74. [JsonPropertyName("bit_rate")]
  75. public string BitRate { get; set; }
  76. /// <summary>
  77. /// Gets or sets the width.
  78. /// </summary>
  79. /// <value>The width.</value>
  80. [JsonPropertyName("width")]
  81. public int Width { get; set; }
  82. /// <summary>
  83. /// Gets or sets the refs.
  84. /// </summary>
  85. /// <value>The refs.</value>
  86. [JsonPropertyName("refs")]
  87. public int Refs { get; set; }
  88. /// <summary>
  89. /// Gets or sets the height.
  90. /// </summary>
  91. /// <value>The height.</value>
  92. [JsonPropertyName("height")]
  93. public int Height { get; set; }
  94. /// <summary>
  95. /// Gets or sets the display_aspect_ratio.
  96. /// </summary>
  97. /// <value>The display_aspect_ratio.</value>
  98. [JsonPropertyName("display_aspect_ratio")]
  99. public string DisplayAspectRatio { get; set; }
  100. /// <summary>
  101. /// Gets or sets the tags.
  102. /// </summary>
  103. /// <value>The tags.</value>
  104. [JsonPropertyName("tags")]
  105. public IReadOnlyDictionary<string, string> Tags { get; set; }
  106. /// <summary>
  107. /// Gets or sets the bits_per_sample.
  108. /// </summary>
  109. /// <value>The bits_per_sample.</value>
  110. [JsonPropertyName("bits_per_sample")]
  111. public int BitsPerSample { get; set; }
  112. /// <summary>
  113. /// Gets or sets the bits_per_raw_sample.
  114. /// </summary>
  115. /// <value>The bits_per_raw_sample.</value>
  116. [JsonPropertyName("bits_per_raw_sample")]
  117. public int BitsPerRawSample { get; set; }
  118. /// <summary>
  119. /// Gets or sets the r_frame_rate.
  120. /// </summary>
  121. /// <value>The r_frame_rate.</value>
  122. [JsonPropertyName("r_frame_rate")]
  123. public string RFrameRate { get; set; }
  124. /// <summary>
  125. /// Gets or sets the has_b_frames.
  126. /// </summary>
  127. /// <value>The has_b_frames.</value>
  128. [JsonPropertyName("has_b_frames")]
  129. public int HasBFrames { get; set; }
  130. /// <summary>
  131. /// Gets or sets the sample_aspect_ratio.
  132. /// </summary>
  133. /// <value>The sample_aspect_ratio.</value>
  134. [JsonPropertyName("sample_aspect_ratio")]
  135. public string SampleAspectRatio { get; set; }
  136. /// <summary>
  137. /// Gets or sets the pix_fmt.
  138. /// </summary>
  139. /// <value>The pix_fmt.</value>
  140. [JsonPropertyName("pix_fmt")]
  141. public string PixelFormat { get; set; }
  142. /// <summary>
  143. /// Gets or sets the level.
  144. /// </summary>
  145. /// <value>The level.</value>
  146. [JsonPropertyName("level")]
  147. public int Level { get; set; }
  148. /// <summary>
  149. /// Gets or sets the time_base.
  150. /// </summary>
  151. /// <value>The time_base.</value>
  152. [JsonPropertyName("time_base")]
  153. public string TimeBase { get; set; }
  154. /// <summary>
  155. /// Gets or sets the start_time.
  156. /// </summary>
  157. /// <value>The start_time.</value>
  158. [JsonPropertyName("start_time")]
  159. public string StartTime { get; set; }
  160. /// <summary>
  161. /// Gets or sets the codec_time_base.
  162. /// </summary>
  163. /// <value>The codec_time_base.</value>
  164. [JsonPropertyName("codec_time_base")]
  165. public string CodecTimeBase { get; set; }
  166. /// <summary>
  167. /// Gets or sets the codec_tag.
  168. /// </summary>
  169. /// <value>The codec_tag.</value>
  170. [JsonPropertyName("codec_tag")]
  171. public string CodecTag { get; set; }
  172. /// <summary>
  173. /// Gets or sets the codec_tag_string.
  174. /// </summary>
  175. /// <value>The codec_tag_string.</value>
  176. [JsonPropertyName("codec_tag_string")]
  177. public string CodecTagString { get; set; }
  178. /// <summary>
  179. /// Gets or sets the sample_fmt.
  180. /// </summary>
  181. /// <value>The sample_fmt.</value>
  182. [JsonPropertyName("sample_fmt")]
  183. public string SampleFmt { get; set; }
  184. /// <summary>
  185. /// Gets or sets the dmix_mode.
  186. /// </summary>
  187. /// <value>The dmix_mode.</value>
  188. [JsonPropertyName("dmix_mode")]
  189. public string DmixMode { get; set; }
  190. /// <summary>
  191. /// Gets or sets the start_pts.
  192. /// </summary>
  193. /// <value>The start_pts.</value>
  194. [JsonPropertyName("start_pts")]
  195. public long StartPts { get; set; }
  196. /// <summary>
  197. /// Gets or sets the is_avc.
  198. /// </summary>
  199. /// <value>The is_avc.</value>
  200. [JsonPropertyName("is_avc")]
  201. public string IsAvc { get; set; }
  202. /// <summary>
  203. /// Gets or sets the nal_length_size.
  204. /// </summary>
  205. /// <value>The nal_length_size.</value>
  206. [JsonPropertyName("nal_length_size")]
  207. public string NalLengthSize { get; set; }
  208. /// <summary>
  209. /// Gets or sets the ltrt_cmixlev.
  210. /// </summary>
  211. /// <value>The ltrt_cmixlev.</value>
  212. [JsonPropertyName("ltrt_cmixlev")]
  213. public string LtrtCmixlev { get; set; }
  214. /// <summary>
  215. /// Gets or sets the ltrt_surmixlev.
  216. /// </summary>
  217. /// <value>The ltrt_surmixlev.</value>
  218. [JsonPropertyName("ltrt_surmixlev")]
  219. public string LtrtSurmixlev { get; set; }
  220. /// <summary>
  221. /// Gets or sets the loro_cmixlev.
  222. /// </summary>
  223. /// <value>The loro_cmixlev.</value>
  224. [JsonPropertyName("loro_cmixlev")]
  225. public string LoroCmixlev { get; set; }
  226. /// <summary>
  227. /// Gets or sets the loro_surmixlev.
  228. /// </summary>
  229. /// <value>The loro_surmixlev.</value>
  230. [JsonPropertyName("loro_surmixlev")]
  231. public string LoroSurmixlev { get; set; }
  232. /// <summary>
  233. /// Gets or sets the field_order.
  234. /// </summary>
  235. /// <value>The field_order.</value>
  236. [JsonPropertyName("field_order")]
  237. public string FieldOrder { get; set; }
  238. /// <summary>
  239. /// Gets or sets the disposition.
  240. /// </summary>
  241. /// <value>The disposition.</value>
  242. [JsonPropertyName("disposition")]
  243. public IReadOnlyDictionary<string, int> Disposition { get; set; }
  244. /// <summary>
  245. /// Gets or sets the color range.
  246. /// </summary>
  247. /// <value>The color range.</value>
  248. [JsonPropertyName("color_range")]
  249. public string ColorRange { get; set; }
  250. /// <summary>
  251. /// Gets or sets the color space.
  252. /// </summary>
  253. /// <value>The color space.</value>
  254. [JsonPropertyName("color_space")]
  255. public string ColorSpace { get; set; }
  256. /// <summary>
  257. /// Gets or sets the color transfer.
  258. /// </summary>
  259. /// <value>The color transfer.</value>
  260. [JsonPropertyName("color_transfer")]
  261. public string ColorTransfer { get; set; }
  262. /// <summary>
  263. /// Gets or sets the color primaries.
  264. /// </summary>
  265. /// <value>The color primaries.</value>
  266. [JsonPropertyName("color_primaries")]
  267. public string ColorPrimaries { get; set; }
  268. }
  269. }