A set of scripts that help build mpv with MoltenVK support.
-
Make sure Xcode is ready by running:
xcodebuild -runFirstLaunch
-
Clone the repository:
git clone "https://github.com/sirlaurie/mpv-build-macOS" cd mpv-build-macOS
-
run
build
. you can specify path which you want to install ffmpeg and mpv to with params--prefix /path/you/want
and a flag to build bundle,mpv.app
./build
or
./build --prefix ~/.local
or
./build --prefix ~/.local --with-bundle
-
Add binaries to your
$PATH
# ~/.config/mpv/mpv.conf
vo=gpu-next
gpu-context=macvk
-
MTL_HUD_ENABLED=1
Enables the Metal Performance HUD. -
MVK_CONFIG_LOG_LEVEL=3
Enables verbose MoltenVK logging.
graph TD;
mpv-->ffmpeg;
mpv-->libplacebo;
mpv-->vulkan;
mpv-->libass;
libplacebo-->vulkan;
vulkan-->moltenvk;
ffmpeg-->libplacebo;
ffmpeg-->vulkan;
ffmpeg-->dav1d;
ffmpeg-->libass;
ffmpeg-->freetype;
ffmpeg-->harfbuzz;
libass-->freetype;
libass-->harfbuzz;
freetype-->harfbuzz;
harfbuzz-->freetype;