소스 검색

allow separate customization of ffmpeg/ffprobe paths

Luke Pulverenti 9 년 전
부모
커밋
c6a01e0370
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloader.cs

+ 10 - 0
MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloader.cs

@@ -111,6 +111,16 @@ namespace MediaBrowser.Server.Startup.Common.FFMpeg
 
             DeleteOlderFolders(Path.GetDirectoryName(versionedDirectoryPath), excludeFromDeletions);
 
+            // Allow just one of these to be overridden, if desired.
+            if (!string.IsNullOrWhiteSpace(customffMpegPath))
+            {
+                info.EncoderPath = customffMpegPath;
+            }
+            if (!string.IsNullOrWhiteSpace(customffProbePath))
+            {
+                info.EncoderPath = customffProbePath;
+            }
+
             return info;
         }