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.
-
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 --installto 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. -
In terminal:
git clone https://github.com/mpv-player/mpv -
In terminal:
cd mpv -
In terminal:
curl -s https://gist.github.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.github.com/JySzE/34ee131da3974811a9469e1e3b7d4d34/raw --output ~/.config/mpv/mpv.conf -
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.
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.