MediaFormatInfo.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. using System.Collections.Generic;
  2. using System.Text.Json.Serialization;
  3. namespace MediaBrowser.MediaEncoding.Probing
  4. {
  5. /// <summary>
  6. /// Class MediaFormat.
  7. /// </summary>
  8. public class MediaFormatInfo
  9. {
  10. /// <summary>
  11. /// Gets or sets the filename.
  12. /// </summary>
  13. /// <value>The filename.</value>
  14. [JsonPropertyName("filename")]
  15. public string FileName { get; set; }
  16. /// <summary>
  17. /// Gets or sets the nb_streams.
  18. /// </summary>
  19. /// <value>The nb_streams.</value>
  20. [JsonPropertyName("nb_streams")]
  21. public int NbStreams { get; set; }
  22. /// <summary>
  23. /// Gets or sets the format_name.
  24. /// </summary>
  25. /// <value>The format_name.</value>
  26. [JsonPropertyName("format_name")]
  27. public string FormatName { get; set; }
  28. /// <summary>
  29. /// Gets or sets the format_long_name.
  30. /// </summary>
  31. /// <value>The format_long_name.</value>
  32. [JsonPropertyName("format_long_name")]
  33. public string FormatLongName { get; set; }
  34. /// <summary>
  35. /// Gets or sets the start_time.
  36. /// </summary>
  37. /// <value>The start_time.</value>
  38. [JsonPropertyName("start_time")]
  39. public string StartTime { get; set; }
  40. /// <summary>
  41. /// Gets or sets the duration.
  42. /// </summary>
  43. /// <value>The duration.</value>
  44. [JsonPropertyName("duration")]
  45. public string Duration { get; set; }
  46. /// <summary>
  47. /// Gets or sets the size.
  48. /// </summary>
  49. /// <value>The size.</value>
  50. [JsonPropertyName("size")]
  51. public string Size { get; set; }
  52. /// <summary>
  53. /// Gets or sets the bit_rate.
  54. /// </summary>
  55. /// <value>The bit_rate.</value>
  56. [JsonPropertyName("bit_rate")]
  57. public string BitRate { get; set; }
  58. /// <summary>
  59. /// Gets or sets the probe_score.
  60. /// </summary>
  61. /// <value>The probe_score.</value>
  62. [JsonPropertyName("probe_score")]
  63. public int ProbeScore { get; set; }
  64. /// <summary>
  65. /// Gets or sets the tags.
  66. /// </summary>
  67. /// <value>The tags.</value>
  68. [JsonPropertyName("tags")]
  69. public IReadOnlyDictionary<string, string> Tags { get; set; }
  70. }
  71. }