2
0

TranscodingInfo.cs 1.7 KB

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