Explorar o código

allow separate customization of ffmpeg/ffprobe paths

Luke Pulverenti %!s(int64=9) %!d(string=hai) anos
pai
achega
c6a01e0370
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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;
         }