From 39ed3696ad783765b083b4a99fa4d7d91f0fa32c Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 20 Jun 2016 02:47:12 -0400 Subject: [PATCH] update ffmpeg path config --- MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs b/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs index fc627c232a..39a2338568 100644 --- a/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs +++ b/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs @@ -127,6 +127,11 @@ namespace MediaBrowser.MediaEncoding.Encoder var appPath = GetEncodingOptions().EncoderAppPath; + if (string.IsNullOrWhiteSpace(appPath)) + { + appPath = Path.Combine(ConfigurationManager.ApplicationPaths.ProgramDataPath, "ffmpeg"); + } + if (!string.IsNullOrWhiteSpace(appPath)) { if (Directory.Exists(appPath))