2021-02-20 15:13:04 -07:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2022-01-23 09:37:52 -07:00
|
|
|
using System;
|
|
|
|
|
2021-02-20 15:13:04 -07:00
|
|
|
namespace MediaBrowser.Model.Session
|
|
|
|
{
|
2022-01-23 09:37:52 -07:00
|
|
|
[Flags]
|
2021-02-20 15:13:04 -07:00
|
|
|
public enum TranscodeReason
|
|
|
|
{
|
2022-01-23 09:37:52 -07:00
|
|
|
// Primary
|
|
|
|
ContainerNotSupported = 1 << 0,
|
|
|
|
VideoCodecNotSupported = 1 << 1,
|
|
|
|
AudioCodecNotSupported = 1 << 2,
|
|
|
|
SubtitleCodecNotSupported = 1 << 3,
|
|
|
|
AudioIsExternal = 1 << 4,
|
|
|
|
SecondaryAudioNotSupported = 1 << 5,
|
|
|
|
|
|
|
|
// Video Constraints
|
|
|
|
VideoProfileNotSupported = 1 << 6,
|
2022-06-17 09:01:06 -07:00
|
|
|
VideoRangeTypeNotSupported = 1 << 24,
|
2024-09-12 08:53:21 -07:00
|
|
|
VideoCodecTagNotSupported = 1 << 25,
|
2022-01-23 09:37:52 -07:00
|
|
|
VideoLevelNotSupported = 1 << 7,
|
|
|
|
VideoResolutionNotSupported = 1 << 8,
|
|
|
|
VideoBitDepthNotSupported = 1 << 9,
|
|
|
|
VideoFramerateNotSupported = 1 << 10,
|
|
|
|
RefFramesNotSupported = 1 << 11,
|
|
|
|
AnamorphicVideoNotSupported = 1 << 12,
|
|
|
|
InterlacedVideoNotSupported = 1 << 13,
|
|
|
|
|
|
|
|
// Audio Constraints
|
|
|
|
AudioChannelsNotSupported = 1 << 14,
|
|
|
|
AudioProfileNotSupported = 1 << 15,
|
|
|
|
AudioSampleRateNotSupported = 1 << 16,
|
2022-01-23 16:49:14 -07:00
|
|
|
AudioBitDepthNotSupported = 1 << 17,
|
2022-01-23 09:37:52 -07:00
|
|
|
|
|
|
|
// Bitrate Constraints
|
2022-01-23 16:49:14 -07:00
|
|
|
ContainerBitrateExceedsLimit = 1 << 18,
|
|
|
|
VideoBitrateNotSupported = 1 << 19,
|
|
|
|
AudioBitrateNotSupported = 1 << 20,
|
2022-01-23 09:37:52 -07:00
|
|
|
|
|
|
|
// Errors
|
2022-01-23 16:49:14 -07:00
|
|
|
UnknownVideoStreamInfo = 1 << 21,
|
|
|
|
UnknownAudioStreamInfo = 1 << 22,
|
|
|
|
DirectPlayError = 1 << 23,
|
2021-02-20 15:13:04 -07:00
|
|
|
}
|
|
|
|
}
|