如何在 C# 中自动安装 ffmepg

问题描述

所以我正在编写一个使用 ffmpeg 来放大视频的 c# 应用程序。目前,它会检查是否安装了 ffmpeg,如果没有,则提示用户安装。

{
        if (File.Exists(@"C:\ffmpeg-2020-12-27-git-bff6fbead8-full_build\bin\ffmpeg.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");
    }
}

我想知道,有没有办法自动安装 ffmpeg 并将其安装位置打印为字符串?非常感谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)