Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 979
gil_mo Avatar asked Nov 29 '20 12:11

gil_mo


People also ask

Does GCC work on Apple silicon?

GCC - GNU Compiler Collection runs natively on Apple Silicon.


2 Answers

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

like image 200
mackworth Avatar answered Sep 24 '22 22:09

mackworth


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
like image 28
ISSIE Avatar answered Sep 20 '22 22:09

ISSIE