so I am writing a c# application which uses ffmpeg to upscale videos. Currently, it checks if ffmpeg is installed, and if not, prompts the user to install it.
{
if (File.Exists(@"C:ffmpeg-2020-12-27-git-bff6fbead8-full_buildinffmpeg.exe"))
{
MessageBox.Show("Please note that this will only upsalce a video, it will not remaster it. Program C 2020 Keifmeister Technologies. Aka this will clear up the image but not upgrade character models or anything. Cheers.");
}
else
{
MessageBox.Show("You need to have ffmpeg installed, and you do not. Opening download link, please extract the downloaded zip file to root of yout c:\ drive. Thanks.");
Process.Start("https://github.com/GyanD/codexffmpeg/releases/download/2020-12-27-git-bff6fbead8/ffmpeg-2020-12-27-git-bff6fbead8-full_build.zip");
}
}
I am wondering, is there instead a way to install ffmpeg automatically and print its install location as a string? Thanks very much.
question from:
https://stackoverflow.com/questions/65877322/how-to-automaitcally-install-ffmepg-in-c-sharp 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…