aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Startup.Common/FFMpeg
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-04-02 17:01:42 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-04-02 17:01:42 -0400
commitc9c5a9345083c6af1a1ce3733fbc79f385cce0ea (patch)
tree538b2d11f7b8fc397970ca28b4e44d7036ebedb5 /MediaBrowser.Server.Startup.Common/FFMpeg
parent527f4887e91f33009be814a29313891c0827c8a7 (diff)
add poster dynamic images
Diffstat (limited to 'MediaBrowser.Server.Startup.Common/FFMpeg')
-rw-r--r--MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloader.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloader.cs b/MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloader.cs
index d4cefdb10a..fe7cd943a2 100644
--- a/MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloader.cs
+++ b/MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloader.cs
@@ -202,7 +202,14 @@ namespace MediaBrowser.Server.Startup.Common.FFMpeg
}
}
- throw new ApplicationException("Unable to download required components. Please try again later.");
+ if (downloadinfo.DownloadUrls.Length == 0)
+ {
+ throw new ApplicationException("ffmpeg unvailable. Please install it and start the server with two command line arguments: -ffmpeg \"{PATH}\" and -ffprobe \"{PATH}\"");
+ }
+ else
+ {
+ throw new ApplicationException("Unable to download required components. Please try again later.");
+ }
}
private void ExtractFFMpeg(FFMpegDownloadInfo downloadinfo, string tempFile, string targetFolder)