jellyfin/MediaBrowser.Model/Session/TranscodingInfo.cs

67 lines
1.7 KiB
C#
Raw Normal View History

#nullable disable
2020-02-03 17:49:27 -07:00
#pragma warning disable CS1591
using System;
2018-12-27 16:27:57 -07:00
namespace MediaBrowser.Model.Session
{
public class TranscodingInfo
{
public string AudioCodec { get; set; }
2020-06-15 14:43:52 -07:00
2018-12-27 16:27:57 -07:00
public string VideoCodec { get; set; }
2020-06-15 14:43:52 -07:00
2018-12-27 16:27:57 -07:00
public string Container { get; set; }
2020-06-15 14:43:52 -07:00
2018-12-27 16:27:57 -07:00
public bool IsVideoDirect { get; set; }
2020-06-15 14:43:52 -07:00
2018-12-27 16:27:57 -07:00
public bool IsAudioDirect { get; set; }
2020-06-15 14:43:52 -07:00
2018-12-27 16:27:57 -07:00
public int? Bitrate { get; set; }
public float? Framerate { get; set; }
2020-06-15 14:43:52 -07:00
2018-12-27 16:27:57 -07:00
public double? CompletionPercentage { get; set; }
public int? Width { get; set; }
2020-06-15 14:43:52 -07:00
2018-12-27 16:27:57 -07:00
public int? Height { get; set; }
2020-06-15 14:43:52 -07:00
2018-12-27 16:27:57 -07:00
public int? AudioChannels { get; set; }
public TranscodeReason[] TranscodeReasons { get; set; }
public TranscodingInfo()
{
TranscodeReasons = Array.Empty<TranscodeReason>();
2018-12-27 16:27:57 -07:00
}
}
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,
VideoProfileNotSupported = 19,
AudioBitDepthNotSupported = 20,
SubtitleCodecNotSupported = 21,
DirectPlayError = 22
}
}