Before you can build mpv & mpv.app on an Apple silicon Mac, there's a couple of required dependencies you'll need to install if you haven't already:
-
Go to System Preferences > Software Update. If there's anything there to update, do it.
-
If you don't have the Xcode Command Line Tools installed, run
xcode-select --install
and select Install on the prompt that appears. -
If you don't have Homebrew installed, follow the instructions here.
-
If you don't have all of mpv's dependencies installed, run
brew install --build-from-source --only-dependencies mpv && brew install libplacebo
.
You'll also need a local copy of the mpv repo, which you can get by running git clone https://github.com/mpv-player/mpv
.
You can now run the attached script to build mpv & mpv.app on an Apple silicon Mac yourself. Just make sure to run it from the root directory of the cloned repo.
If you want to bundle a static build of mpv.app, perform these steps following the ones above.
-
Run
brew install dylibbundler
. -
Run the script from the root directory of the cloned repo, but append
--static
to the command, like./build-mpv_silicon.sh --static
.
Going forward, you can update your local copy of the repo by running the following commands from its root directory:
git reset --hard
git clean --force -d -x
git pull origin master
@hvirta - thanks, good to know after so many years we can finally download an Apple Silicon binary, including the application bundle, instead of having to go through all this to compile it! It's working well for me, so far. Btw., the direct link to the latest nightly build, as given at https://mpv.io/installation/ is:
https://nightly.link/mpv-player/mpv/workflows/build/master
@alphagumibear - about uninstalling - apart from the mpv folder, the instructions in the main post involve installing Homebrew, and a number of packages within it. If you want to completely remove Homebrew and all the packages, see: Homebrew/install: 📥 Homebrew (un)installer
Otherwise, you'll probably want to remove libplacebo, the mpv formula's dependencies, and possibly dylibbundler and molten-vk, using the
brew uninstall [packagename]
command. Uninstalling the mpv dependencies is a bit tricky though, becausebrew uninstall mpv
will just tell you that it's not installed. There may be a better way to do it, but I ended up just doingbrew install mpv
(which downloaded and installed a lot of things) and thenbrew uninstall mpv
. That removed all the unused dependencies.