capture more transcoding info

This commit is contained in:
Luke Pulverenti
2017-06-24 14:33:19 -04:00
parent 8dcfda89d1
commit a107ff0369
14 changed files with 338 additions and 45 deletions

View File

@@ -1,3 +1,5 @@
using System.Collections.Generic;
namespace MediaBrowser.Model.Session
{
public class TranscodingInfo
@@ -15,5 +17,36 @@ namespace MediaBrowser.Model.Session
public int? Width { get; set; }
public int? Height { get; set; }
public int? AudioChannels { get; set; }
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,
VideoProfileNotSupported = 19
}
}