2
0

TranscodingInfo.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. namespace MediaBrowser.Model.Session
  5. {
  6. public class TranscodingInfo
  7. {
  8. public string AudioCodec { get; set; }
  9. public string VideoCodec { get; set; }
  10. public string Container { get; set; }
  11. public bool IsVideoDirect { get; set; }
  12. public bool IsAudioDirect { get; set; }
  13. public int? Bitrate { get; set; }
  14. public float? Framerate { get; set; }
  15. public double? CompletionPercentage { get; set; }
  16. public int? Width { get; set; }
  17. public int? Height { get; set; }
  18. public int? AudioChannels { get; set; }
  19. public TranscodeReason[] TranscodeReasons { get; set; }
  20. public TranscodingInfo()
  21. {
  22. TranscodeReasons = Array.Empty<TranscodeReason>();
  23. }
  24. }
  25. public enum TranscodeReason
  26. {
  27. ContainerNotSupported = 0,
  28. VideoCodecNotSupported = 1,
  29. AudioCodecNotSupported = 2,
  30. ContainerBitrateExceedsLimit = 3,
  31. AudioBitrateNotSupported = 4,
  32. AudioChannelsNotSupported = 5,
  33. VideoResolutionNotSupported = 6,
  34. UnknownVideoStreamInfo = 7,
  35. UnknownAudioStreamInfo = 8,
  36. AudioProfileNotSupported = 9,
  37. AudioSampleRateNotSupported = 10,
  38. AnamorphicVideoNotSupported = 11,
  39. InterlacedVideoNotSupported = 12,
  40. SecondaryAudioNotSupported = 13,
  41. RefFramesNotSupported = 14,
  42. VideoBitDepthNotSupported = 15,
  43. VideoBitrateNotSupported = 16,
  44. VideoFramerateNotSupported = 17,
  45. VideoLevelNotSupported = 18,
  46. VideoProfileNotSupported = 19,
  47. AudioBitDepthNotSupported = 20,
  48. SubtitleCodecNotSupported = 21,
  49. DirectPlayError = 22
  50. }
  51. }