This build is most suited for Apple Silicon Macs.
It enables the exact set of hardware decoder that apple silicon supports, including h264, h265, VP9, and ProRes.
This script can also be modified and used for Intel macs.
Requires meson in your system. Install it with
brew install meson
Init submodules before building:
git submodule update --init --recursive
git pull --recurse-submodules --jobs=3
build.shgenerates an static app bundlempv.app.clean_homebrew.shuninstalls all homebrew packages our own homebrew directory (not your system homebrew).clean_all.shremoves all build artifacts.
It creates a self contained Homebrew directory for all the dependencies other then ffmpeg.
It is as hermetic as possible. It tries to use the libraries and tools in our own Homebrew directory.
However, it does use clang, meson, dylibbundler and some basic tools like sed or tr from your system.
Tested on MacOS 15.1, 26, and 27