/mpv-build-macOS

A set of scripts that help build mpv with MoltenVK support.

Primary LanguageShell

mpv-build-macOS

A set of scripts that help build mpv with MoltenVK support.

Requirements

Usage

  1. Make sure Xcode is ready by running:

    xcodebuild -runFirstLaunch
  2. Clone the repository:

    git clone "https://github.com/sirlaurie/mpv-build-macOS"
    cd mpv-build-macOS
  3. 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
  4. Add binaries to your $PATH

Configuration

# ~/.config/mpv/mpv.conf

vo=gpu-next
gpu-context=macvk

Environment variables

  • MTL_HUD_ENABLED=1 Enables the Metal Performance HUD.

  • MVK_CONFIG_LOG_LEVEL=3 Enables verbose MoltenVK logging.

Dependency graph

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;
Loading