瀏覽代碼

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);
             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;
             return info;
         }
         }