TranscodingInfo.cs 1.7 KB

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