我正在将我们所有的代码移植到苹果M1 (ARM),我们的一些产品使用FFmpeg。FFmpeg是否有为苹果硅M1构建的库包,我在哪里可以找到它们?
发布于 2020-12-09 17:42:16
看起来现在https://www.osxexperts.net上有一个可运行的脚本和一个构建的版本
发布于 2020-12-11 14:55:04
你可以自己为苹果硅编译ffmpeg。为此,您将需要Xcode,它附带了所有必要的工具。
您可以下载Xcode 从应用程序商店、从苹果的网站或在终端应用程序上安装运行xcode-select --install的Xcode命令行工具。
在获得Xcode之后,您需要打开它一次,以接受这些条款并设置所有内容。您将被要求提供您的计算机密码。
在设置Xcode之后,按照这个顺序在终端应用程序上以普通用户的身份执行以下命令(不需要根目录,也不推荐)。以#开头的行是注释,您不应该在终端上执行它们。
# Create and go to a folder where you'll save the ffmpeg source code
mkdir -p /opt/local/src
cd /opt/local/src
# get the ffmpeg source code from the official source
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg
# set up build and begin to compile
./configure --prefix=/opt/local
make
make install
# check that your compiled version of ffmpeg has arm64 (Apple Silicon) architecture
/opt/local/bin/ffmpeg -versionhttps://stackoverflow.com/questions/65060304
复制相似问题