Before you can build 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.
-
Install Xcode from this link or via the Apple App Store.
-
Open Xcode and click Xcode at the top left corner > Settings > Locations > Command Line Tools.
-
Even if there is something already listed there in Command Line Tools, Still click it as it will prompt you to type in your password.
-
In terminal:
xcode-select --install
to be sure it all worked properly: "xcode-select: note: Command line tools are already installed." -
In terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
to install homebrew. -
In terminal:
brew install --build-from-source --only-dependencies mpv && brew install libplacebo && brew install molten-vk && brew install dylibbundler && brew install lua
-
In terminal:
git clone https://github.com/mpv-player/mpv
-
In terminal:
cd mpv
-
In terminal:
curl -s https://gist.githubusercontent.com/JySzE/d25c7b7abf1b689739d51a6a6a6e0e29/raw --output build-mpv_silicon.sh
-
In terminal:
sudo chmod 755 build-mpv_silicon.sh
-
In terminal:
sudo ./build-mpv_silicon.sh --static
-
After your build is complete type
cd build && cp -R mpv.app /Applications/mpv.app
-
Now mpv is added to your applications list, Go ahead and manually open mpv once from spotlight search or from finder to get it to appear in the open with menu when you right click files. (Sometimes this isnt required)
-
Next in terminal:
sudo curl -s https://gist.githubusercontent.com/JySzE/34ee131da3974811a9469e1e3b7d4d34/raw --output ~/.config/mpv/mpv.conf
- While
sudo
isnt required for curl normally I and a few others ran into a weird sonoma perm issue where it was needed to write directly to~/.config/mpv/
so keep that in mind.
-
Now go ahead and open up a video file with mpv and press the tilde key and it should tell you if a profile was loaded or not. If you see a profile loaded congrats you are now done.
-
Requires font file from here: https://files.catbox.moe/ftcqlt.zip . Google how to install fonts on macos.
-
Screenshot images have colorspace metadata; check 'Optimize' when uploading to slow.pics. Photo Viewing apps and Discord may not display the correct colorspace and gamma, but Photoshop and GIMP will.
I will not be providing ways to add lua scripts and other functionality to MacOS. You will need to figure that out on your own.