MediaStreamInfo.cs 9.9 KB

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