소스 검색

Improve controls for deinterlace method; matches with jellyfin-web changes

Peter Maar 5 년 전
부모
커밋
818695a01e
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
  2. 1 1
      MediaBrowser.Model/Configuration/EncodingOptions.cs

+ 1 - 1
MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

@@ -2005,7 +2005,7 @@ namespace MediaBrowser.Controller.MediaEncoding
                 var inputFramerate = videoStream?.RealFrameRate;
 
                 // If it is already 60fps then it will create an output framerate that is much too high for roku and others to handle
-                if (string.Equals(options.DeinterlaceMethod, "bobandweave", StringComparison.OrdinalIgnoreCase) && (inputFramerate ?? 60) <= 30)
+                if (string.Equals(options.DeinterlaceMethod, "yadif_bob", StringComparison.OrdinalIgnoreCase) && (inputFramerate ?? 60) <= 30)
                 {
                     filters.Add("yadif=1:-1:0");
                 }

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

@@ -36,7 +36,7 @@ namespace MediaBrowser.Model.Configuration
             VaapiDevice = "/dev/dri/renderD128";
             H264Crf = 23;
             H265Crf = 28;
-            DeinterlaceMethod = "bobandweave";
+            DeinterlaceMethod = "yadif";
             EnableHardwareEncoding = true;
             EnableSubtitleExtraction = true;
             HardwareDecodingCodecs = new string[] { "h264", "vc1" };