MediaFormatInfo.cs 2.3 KB

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