Browse Source

update qsv encoding

Luke Pulverenti 9 years ago
parent
commit
532af87452

+ 2 - 2
MediaBrowser.Api/Playback/BaseStreamingService.cs

@@ -288,7 +288,7 @@ namespace MediaBrowser.Api.Playback
 
 
         protected string GetH264Encoder(StreamState state)
         protected string GetH264Encoder(StreamState state)
         {
         {
-            if (string.Equals(ApiEntryPoint.Instance.GetEncodingOptions().HardwareVideoDecoder, "qsv", StringComparison.OrdinalIgnoreCase))
+            if (string.Equals(ApiEntryPoint.Instance.GetEncodingOptions().HardwareAccelerationType, "qsv", StringComparison.OrdinalIgnoreCase))
             {
             {
                 // It's currently failing on live tv
                 // It's currently failing on live tv
                 if (state.RunTimeTicks.HasValue)
                 if (state.RunTimeTicks.HasValue)
@@ -820,7 +820,7 @@ namespace MediaBrowser.Api.Playback
         /// <returns>System.String.</returns>
         /// <returns>System.String.</returns>
         protected string GetVideoDecoder(StreamState state)
         protected string GetVideoDecoder(StreamState state)
         {
         {
-            if (string.Equals(ApiEntryPoint.Instance.GetEncodingOptions().HardwareVideoDecoder, "qsv", StringComparison.OrdinalIgnoreCase))
+            if (string.Equals(ApiEntryPoint.Instance.GetEncodingOptions().HardwareAccelerationType, "qsv", StringComparison.OrdinalIgnoreCase))
             {
             {
                 if (state.VideoStream != null && !string.IsNullOrWhiteSpace(state.VideoStream.Codec))
                 if (state.VideoStream != null && !string.IsNullOrWhiteSpace(state.VideoStream.Codec))
                 {
                 {

+ 1 - 1
MediaBrowser.MediaEncoding/Encoder/BaseEncoder.cs

@@ -359,7 +359,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
         /// <returns>System.String.</returns>
         /// <returns>System.String.</returns>
         protected string GetVideoDecoder(EncodingJob state)
         protected string GetVideoDecoder(EncodingJob state)
         {
         {
-            if (string.Equals(GetEncodingOptions().HardwareVideoDecoder, "qsv", StringComparison.OrdinalIgnoreCase))
+            if (string.Equals(GetEncodingOptions().HardwareAccelerationType, "qsv", StringComparison.OrdinalIgnoreCase))
             {
             {
                 if (state.VideoStream != null && !string.IsNullOrWhiteSpace(state.VideoStream.Codec))
                 if (state.VideoStream != null && !string.IsNullOrWhiteSpace(state.VideoStream.Codec))
                 {
                 {

+ 2 - 2
MediaBrowser.Model/Configuration/EncodingOptions.cs

@@ -9,13 +9,13 @@ namespace MediaBrowser.Model.Configuration
         public bool EnableDebugLogging { get; set; }
         public bool EnableDebugLogging { get; set; }
         public bool EnableThrottling { get; set; }
         public bool EnableThrottling { get; set; }
         public int ThrottleThresholdSeconds { get; set; }
         public int ThrottleThresholdSeconds { get; set; }
-        public string HardwareVideoDecoder { get; set; }
+        public string HardwareAccelerationType { get; set; }
 
 
         public EncodingOptions()
         public EncodingOptions()
         {
         {
             DownMixAudioBoost = 2;
             DownMixAudioBoost = 2;
             EnableThrottling = true;
             EnableThrottling = true;
-            ThrottleThresholdSeconds = 100;
+            ThrottleThresholdSeconds = 110;
             EncodingThreadCount = -1;
             EncodingThreadCount = -1;
         }
         }
     }
     }

+ 1 - 1
MediaBrowser.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs

@@ -234,7 +234,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.HdHomerun
             int? width = null;
             int? width = null;
             int? height = null;
             int? height = null;
             bool isInterlaced = true;
             bool isInterlaced = true;
-            var videoCodec = !string.IsNullOrWhiteSpace(GetEncodingOptions().HardwareVideoDecoder) ? null : "mpeg2video";
+            var videoCodec = !string.IsNullOrWhiteSpace(GetEncodingOptions().HardwareAccelerationType) ? null : "mpeg2video";
 
 
             int? videoBitrate = null;
             int? videoBitrate = null;