微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何在 C# 中自动安装 ffmepg

如何解决如何在 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 举报,一经查实,本站将立刻删除。