jellyfin/MediaBrowser.Model/Session/TranscodingInfo.cs

54 lines
1.7 KiB
C#
Raw Normal View History

2017-06-24 20:33:19 +02:00
using System.Collections.Generic;
2014-10-09 01:31:44 +02:00
namespace MediaBrowser.Model.Session
{
public class TranscodingInfo
{
public string AudioCodec { get; set; }
public string VideoCodec { get; set; }
public string Container { get; set; }
2014-12-19 05:20:07 +01:00
public bool IsVideoDirect { get; set; }
public bool IsAudioDirect { get; set; }
2014-10-09 01:31:44 +02:00
public int? Bitrate { get; set; }
public float? Framerate { get; set; }
public double? CompletionPercentage { get; set; }
public int? Width { get; set; }
public int? Height { get; set; }
public int? AudioChannels { get; set; }
2017-06-24 20:33:19 +02:00
public List<TranscodeReason> TranscodeReasons { get; set; }
public TranscodingInfo()
{
TranscodeReasons = new List<TranscodeReason>();
}
}
public enum TranscodeReason
{
ContainerNotSupported = 0,
VideoCodecNotSupported = 1,
AudioCodecNotSupported = 2,
ContainerBitrateExceedsLimit = 3,
AudioBitrateNotSupported = 4,
AudioChannelsNotSupported = 5,
VideoResolutionNotSupported = 6,
UnknownVideoStreamInfo = 7,
UnknownAudioStreamInfo = 8,
AudioProfileNotSupported = 9,
AudioSampleRateNotSupported = 10,
AnamorphicVideoNotSupported = 11,
InterlacedVideoNotSupported = 12,
SecondaryAudioNotSupported = 13,
RefFramesNotSupported = 14,
VideoBitDepthNotSupported = 15,
VideoBitrateNotSupported = 16,
VideoFramerateNotSupported = 17,
VideoLevelNotSupported = 18,
2017-06-26 17:10:52 +02:00
VideoProfileNotSupported = 19,
2017-07-03 19:16:01 +02:00
AudioBitDepthNotSupported = 20,
SubtitleCodecNotSupported = 21
2014-10-09 01:31:44 +02:00
}
}