OSXExperts.NET

ffmpeg static build for macOS

Download ffmpeg 7.0 (Apple Silicon)


SHA256 checksum of FFmpeg file : 326895b16940f238d76e902fc71150f10c388c281985756f9850ff800a2f1499
Source used to compile : here

Older versions:
ffmpeg 6.0 (Apple Silicon)
SHA256 checksum:
a90e3db6a3fd35f6074b013f948b1aa45b31c6375489d39e572bea3f18336584

Download ffmpeg 7.0 (Intel)


SHA256 checksum of FFmpeg file: 6a658787de8de14741acaedd14d5b81f7b44aef60711cbf7784208a2751933ec


Older versions:
ffmpeg 6.0 (Intel)
SHA256 checksum:
605ea5922f8c76f6dd5c369ea44c6e9ad82ae7717dcc230a5433e0ac7318d0fe

ffprobe static build for macOS

Download ffprobe 7.0 (Apple Silicon)


SHA256 checksum of ffprobe file : 307e09bc01bd72bde5f441a1a6df68769da3b2b6e431accfbfc9cf3893ad00c4
Source used to compile : here


Download ffprobe 7.0 (Intel)


SHA256 checksum of ffprobe file: 84f59cfffb6180dcf2676d7e835958823785d5e0894edf9f10c5e823fbc28614

ffplay static build for macOS

Download ffplay 7.0 (Apple Silicon)


SHA256 checksum of ffplay file : 460ce1bcf0f4953b76c109ae04ed57172b0062dee574bf8ac6328b27f008e5ed
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 7.0 (Intel)


SHA256 checksum of ffplay file:
5c3ce89e9d0d82dc111d1d966f836b9ce91cfd5bbef68132b7695e0d90b68fb7

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.