TranscodeReason.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #pragma warning disable CS1591
  2. using System;
  3. namespace MediaBrowser.Model.Session
  4. {
  5. [Flags]
  6. public enum TranscodeReason
  7. {
  8. // Primary
  9. ContainerNotSupported = 1 << 0,
  10. VideoCodecNotSupported = 1 << 1,
  11. AudioCodecNotSupported = 1 << 2,
  12. SubtitleCodecNotSupported = 1 << 3,
  13. AudioIsExternal = 1 << 4,
  14. SecondaryAudioNotSupported = 1 << 5,
  15. // Video Constraints
  16. VideoProfileNotSupported = 1 << 6,
  17. VideoRangeTypeNotSupported = 1 << 24,
  18. VideoCodecTagNotSupported = 1 << 25,
  19. VideoLevelNotSupported = 1 << 7,
  20. VideoResolutionNotSupported = 1 << 8,
  21. VideoBitDepthNotSupported = 1 << 9,
  22. VideoFramerateNotSupported = 1 << 10,
  23. RefFramesNotSupported = 1 << 11,
  24. AnamorphicVideoNotSupported = 1 << 12,
  25. InterlacedVideoNotSupported = 1 << 13,
  26. // Audio Constraints
  27. AudioChannelsNotSupported = 1 << 14,
  28. AudioProfileNotSupported = 1 << 15,
  29. AudioSampleRateNotSupported = 1 << 16,
  30. AudioBitDepthNotSupported = 1 << 17,
  31. // Bitrate Constraints
  32. ContainerBitrateExceedsLimit = 1 << 18,
  33. VideoBitrateNotSupported = 1 << 19,
  34. AudioBitrateNotSupported = 1 << 20,
  35. // Errors
  36. UnknownVideoStreamInfo = 1 << 21,
  37. UnknownAudioStreamInfo = 1 << 22,
  38. DirectPlayError = 1 << 23,
  39. }
  40. }