OSXExperts.NET

ffmpeg static build for macOS

Download ffmpeg 7.1.1 (Apple Silicon)


SHA256 checksum of FFmpeg file : 011221d75eae36943b5a6a28f70e25928cfb5602fe616d06da0a3b9b55ff6b75
Source used to compile : here

Download ffmpeg 7.1 (Intel)


SHA256 checksum of FFmpeg file: 4a4a968b98859588e98500ae25973d80a5ca5eed0724222b9f76360dcb72a001

ffprobe static build for macOS

Download ffprobe 7.1.1 (Apple Silicon)


SHA256 checksum of ffprobe file : ae77d6751f4db81098a11dcc966a8d098925411430169475c8f8a7bfad76188b
Source used to compile : here


Download ffprobe 7.1 (Intel)


SHA256 checksum of ffprobe file: ce5414269f0efa1e88b5e23b57f801d5b9a40be554716544936e0332b4601a62

ffplay static build for macOS

Download ffplay 7.1.1 (Apple Silicon)


SHA256 checksum of ffplay file : cdece173efc7802f847b23b7fdced9910c36ba9c02d608c46a620a7e4ef3fff3
Source used to compile : here


codesign -s - <pathtotheffmpegfile> 

Note:
The provided ffmpeg, ffplay and ffprobe files are for educational purposes only.


Download ffplay 7.1 (Intel)


SHA256 checksum of ffplay file:
dde76c75264e219616ae340cd0e50a87d29b4b90b6dfd4fa8c3b5f8575913d71

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.