Skip to content

Commit

Permalink
Fix ffmpeg url
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Bäriswyl committed Nov 26, 2020
1 parent 18d0a9c commit d5c9d9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/FlaUI.Core/Capturing/VideoRecorder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,11 @@ private byte[] BitmapToByteArray(Bitmap bitmap)
public static async Task<string> DownloadFFMpeg(string targetFolder)
{
var bits = Environment.Is64BitOperatingSystem ? 64 : 32;
var uri = new Uri($"http://ffmpeg.zeranoe.com/builds/win{bits}/static/ffmpeg-latest-win{bits}-static.zip");
if (bits == 32)
{
throw new NotSupportedException("The current FFMPEG builds to not support 32-bit.");
}
var uri = new Uri($"https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip");
var archivePath = Path.Combine(Path.GetTempPath(), "ffmpeg.zip");
var destPath = Path.Combine(targetFolder, "ffmpeg.exe");
if (!File.Exists(destPath))
Expand Down

0 comments on commit d5c9d9d

Please sign in to comment.