OSXExperts.NET

ffmpeg static build for macOS

Download ffmpeg 6.1 (Apple Silicon)


SHA256 checksum of FFmpeg file : 9eaee17990375fa6eddb17fd37c1326502e946c4393a9012431f49281037899b
Source used to compile : here

Download ffmpeg 6.1 (Intel)


SHA256 checksum of FFmpeg file: b893e45db7253d587568909feaceab9d21c6b681e7de4500adce4409228bc78d

ffprobe static build for macOS

Download ffprobe 6.1 (Apple Silicon)


SHA256 checksum of ffprobe file : 76bf431a486c1866cd11d6cc6a229a10fefb34888ffcac4bb325af68fcc68489
Source used to compile : here


Download ffprobe 6.1 (Intel)


SHA256 checksum of ffprobe file: 975e84c3e163e6df76b3ae1d4ccf0b584ee022075bfc76d0dc31ed5f2b012731

ffplay static build for macOS

Download ffplay 6.1 (Apple Silicon)


SHA256 checksum of ffplay file : 82dd6b43441589191c0aa03b4dcb8cf0fb75e32ff2e350411dd0a444ebbd0b1d
Source used to compile : here


codesign -s - <pathtotheffmpegfile> 

Notes:
The files for Apple Silicon includes the x265 NEON patch. This makes the encoding speed of x265 much faster. 
The provided FFmpeg files are for educational purposes only.


Download ffplay 6.1 (Intel)


SHA256 checksum of ffplay file: f72d490a938fbd22462f529a90feb4b727445c3c0243ab0e2fa06adb3c14eee9

How to compile a real static FFmpeg file for macOS

There are several ways to compile FFmpeg. Homebrew is an easy way to compile FFmpeg files but sadly they are not static.
Static means you can copy the FFmpeg file anywere you want. It has no dependencies compared to a dynamically build like Homebrew does.

The below script will build a real static FFmpeg file. It does not cover all possible external libraries but it will give you a headstart. You can of course add more libs like Theora, Vorbis, VPX, .. yourself.
First download all source files:

- x264           git clone https://code.videolan.org/videolan/x264.git
- x265           https://bitbucket.org/multicoreware/x265/downloads/
- cmake   
- enca.          https://dl.cihar.com/enca/enca-1.19.tar.gz
- expat          https://github.com/libexpat/libexpat/releases/download/R_2_2_10/expat-2.2.10.tar.gz
- lame           git clone https://github.com/rbrito/lame.git
- fribidi          https://github.com/fribidi/fribidi/releases/download/
- freetype      https://download.savannah.gnu.org/releases/freetype/
- fontconfig    https://www.freedesktop.org/software/fontconfig/release/
- libiconv.      https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz
- libass          https://github.com/libass/libass/releases/download/
- nasm.         https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.gz
- yasm          http://www.tortall.net/projects/yasm/releases/
- pkg-config  https://pkg-config.freedesktop.org/releases/

And of course FFmpeg :-)    git clone git://git.ffmpeg.org/ffmpeg.git

You also need to install Apple Xcode.