public static FFMpegDownloadInfo GetInfo(NativeEnvironment environment) { var info = new FFMpegDownloadInfo(); // Windows builds: http://ffmpeg.zeranoe.com/builds/ // Linux builds: http://johnvansickle.com/ffmpeg/ // OS X builds: http://ffmpegmac.net/ // OS X x64: http://www.evermeet.cx/ffmpeg/ switch (environment.OperatingSystem) { case OperatingSystem.Bsd: break; case OperatingSystem.Linux: info.ArchiveType = "7z"; info.Version = "20150717"; break; case OperatingSystem.Osx: info.ArchiveType = "7z"; switch (environment.SystemArchitecture) { case Architecture.X86_X64: info.Version = "20150827"; break; case Architecture.X86: info.Version = "20150110"; break; } break; case OperatingSystem.Windows: info.FFMpegFilename = "ffmpeg.exe"; info.FFProbeFilename = "ffprobe.exe"; info.Version = "20150717"; info.ArchiveType = "7z"; switch (environment.SystemArchitecture) { case Architecture.X86_X64: break; case Architecture.X86: break; } break; } info.DownloadUrls = GetDownloadUrls(environment); return(info); }
public static FFMpegDownloadInfo GetInfo(NativeEnvironment environment) { var info = new FFMpegDownloadInfo(); // Windows builds: http://ffmpeg.zeranoe.com/builds/ // Linux builds: http://johnvansickle.com/ffmpeg/ // OS X builds: http://ffmpegmac.net/ // OS X x64: http://www.evermeet.cx/ffmpeg/ switch (environment.OperatingSystem) { case OperatingSystem.Bsd: break; case OperatingSystem.Linux: info.ArchiveType = "7z"; info.Version = "20150917"; break; case OperatingSystem.Osx: info.ArchiveType = "7z"; switch (environment.SystemArchitecture) { case Architecture.X86_X64: info.Version = "20160124"; break; case Architecture.X86: info.Version = "20150110"; break; } break; case OperatingSystem.Windows: info.FFMpegFilename = "ffmpeg.exe"; info.FFProbeFilename = "ffprobe.exe"; info.Version = "20151111"; info.ArchiveType = "7z"; switch (environment.SystemArchitecture) { case Architecture.X86_X64: break; case Architecture.X86: break; } break; } info.DownloadUrls = GetDownloadUrls(environment); return info; }