TranscodingInfo.cs 1.7 KB

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