xcode - 如何在 Mac 上同时安装 ffmpeg 和应用程序?

标签 xcode macos ffmpeg electron packagemaker

我有一个electron app为 macOS 构建并打包在 .app 文件中。该应用程序需要 ffmpeg安装在最终用户的计算机上使用。

目前,我必须在每个最终用户的计算机上手动安装 ffmpeg 才能运行该应用程序。

我想通过 ffmpeg 和应用程序的简单安装程序在线分发该应用程序。我见过 .dmg 文件,它允许您轻松地将 .app 拖到应用程序文件夹中,但安装过程中仍然不存在 ffmpeg 依赖项。

如何在 Mac 上同时安装 ffmpeg 和应用程序?

也许在 .app 内容中包含 ffmpeg 构建也是一种解决方案。 但这可能是不可能的,因为 a relevant question提到只有 ffmpeg CLI 的抽象,而不是可以直接使用 ffmpeg 的东西。

最佳答案

此题还需要了解ffmpeg许可证。总之,由于许可问题,不要将 ffmpeg 与您的应用捆绑在一起,而是允许用户自行下载并安装 ffmpeg。

您是否将您的应用程序分发为

a. GPL - 开源,所有源代码均公开可用

b.非商业闭源应用

c.商业应用

在此处查看 ffmpeg 许可 - https://www.ffmpeg.org/legal.html

FFmpeg is licensed under the GNU Lesser General Public License (LGPL) version 2.1 or later. However, FFmpeg incorporates several optional parts and optimizations that are covered by the GNU General Public License (GPL) version 2 or later. If those parts get used the GPL applies to all of FFmpeg.

Read the license texts to learn how this affects programs built on top of FFmpeg or reusing FFmpeg. You may also wish to have a look at the GPL FAQ.

Note that FFmpeg is not available under any other licensing terms, especially not proprietary/commercial ones, not even in exchange for payment.

即使使用开源应用程序 - 建议谨慎行事。例如,Audacity 是一个使用 ffmpeg 的流行开源应用程序。请参阅此处 - https://manual.audacityteam.org/man/installing_ffmpeg_for_windows.html

Because of software patents, Audacity cannot include the FFmpeg software or distribute it from its own websites. Instead, use the following instructions to download and install the free and recommended FFmpeg third-party library.

关于xcode - 如何在 Mac 上同时安装 ffmpeg 和应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38029629/

相关文章:

ios - Swift:通过闭包参数解决函数重载问题?

amazon-ec2 - ffplay 没有在 Amazon EC2 上编译

c++ - 执行 memcpy 时内存泄漏

bash - FFMPEG - 尝试连接多个带和不带音频的文件时出错

ios - 将视频及其缩略图保存和检索到应用程序的目录

macos - Swift _ABSearchComparison 不可转换为 ABSearchComparison

macos - ffmpeg 没有在 OSX 上转换 mp3。安装了自制软件。找不到输出流 #0 :0 的编码器(编解码器 mp3)

ios - 检测 UIGestureRecognizer 点击并释放以显示和删除 UIView

iphone - Xcode4 导航器中的奇怪符号

ios - Xcode 11.4.1断点不适用于Pod