'FFmpeg package for Apple Silicon [closed]

I'm in the process of porting all of our code to Apple M1 (ARM), and some of our products use FFmpeg. Are there any library packages by FFmpeg that are built for the Apple Silicon M1, and where can I find them?



Solution 1:[1]

Looks like there's a working script and a built version now available at https://www.osxexperts.net

Solution 2:[2]

You can compile ffmpeg for Apple Silicon by yourself. For this you will need Xcode, which comes with all the necessary tools.

You can download Xcode from the App Store, from Apple's website, or install the Xcode command line tools running xcode-select --install on the Terminal app.

After getting Xcode, you need to open it once to accept the terms and set up everything. You will be asked for your computer password.

After setting up Xcode, execute the following commands in that order, on the Terminal app, as a normal user (root is not necessary and not recommended). Lines beginning with # are comments and you should not execute them on the terminal.

# 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 -version

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mackworth
Solution 2 Velociround