TranscodingInfo.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #nullable disable
  2. using MediaBrowser.Model.Entities;
  3. namespace MediaBrowser.Model.Session;
  4. /// <summary>
  5. /// Class holding information on a running transcode.
  6. /// </summary>
  7. public class TranscodingInfo
  8. {
  9. /// <summary>
  10. /// Gets or sets the thread count used for encoding.
  11. /// </summary>
  12. public string AudioCodec { get; set; }
  13. /// <summary>
  14. /// Gets or sets the thread count used for encoding.
  15. /// </summary>
  16. public string VideoCodec { get; set; }
  17. /// <summary>
  18. /// Gets or sets the thread count used for encoding.
  19. /// </summary>
  20. public string Container { get; set; }
  21. /// <summary>
  22. /// Gets or sets a value indicating whether the video is passed through.
  23. /// </summary>
  24. public bool IsVideoDirect { get; set; }
  25. /// <summary>
  26. /// Gets or sets a value indicating whether the audio is passed through.
  27. /// </summary>
  28. public bool IsAudioDirect { get; set; }
  29. /// <summary>
  30. /// Gets or sets the bitrate.
  31. /// </summary>
  32. public int? Bitrate { get; set; }
  33. /// <summary>
  34. /// Gets or sets the framerate.
  35. /// </summary>
  36. public float? Framerate { get; set; }
  37. /// <summary>
  38. /// Gets or sets the completion percentage.
  39. /// </summary>
  40. public double? CompletionPercentage { get; set; }
  41. /// <summary>
  42. /// Gets or sets the video width.
  43. /// </summary>
  44. public int? Width { get; set; }
  45. /// <summary>
  46. /// Gets or sets the video height.
  47. /// </summary>
  48. public int? Height { get; set; }
  49. /// <summary>
  50. /// Gets or sets the audio channels.
  51. /// </summary>
  52. public int? AudioChannels { get; set; }
  53. /// <summary>
  54. /// Gets or sets the hardware acceleration type.
  55. /// </summary>
  56. public HardwareAccelerationType? HardwareAccelerationType { get; set; }
  57. /// <summary>
  58. /// Gets or sets the transcode reasons.
  59. /// </summary>
  60. public TranscodeReason TranscodeReasons { get; set; }
  61. }