aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloader.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloader.cs b/MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloader.cs
index 00df7593b..7a83ddc7e 100644
--- a/MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloader.cs
+++ b/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;
}