Skip to content

Installing on macOS

Run the setup script from the repository root, then build. On Apple silicon the build includes the Metal GPU backend automatically (scripts/setup/macos.sh).

Homebrew (after 0.1.0)

After the 0.1.0 release, the Homebrew formula in the Vidiko tap is available once the generated pull request merges into the tap (tracking #2319, ADR-3387):

brew install Vidiko/tap/vmafx

This formula builds the CPU version of vmaf from the release source archive. For Metal GPU acceleration on Apple silicon, build from source as below. To test Metal performance without building, use the native macOS tester bundle (runs tests and produces a report; does not install the CLI).

Setup script

bash scripts/setup/macos.sh                       # build dependencies and linters, Intel or Apple silicon
INSTALL_LINTERS=false bash scripts/setup/macos.sh # skip shellcheck, shfmt and the Python linters

The script needs Homebrew. It installs Homebrew's llvm, because Apple's clang ships without clang-tidy and clang-format, and prints the PATH line to add.

Caveats

  • Metal is the GPU backend on macOS. It needs Apple silicon (M1 or later); on an Intel Mac it reports -ENODEV at run time. See the Metal backend guide.
  • CUDA is not available: NVIDIA does not support macOS.
  • SYCL is not supported on Apple silicon, and the setup script refuses ENABLE_SYCL=true there. On an Intel Mac the script only prints where to download oneAPI.
  • Intel QSV is not available: Intel ships oneVPL for Linux and Windows only (vpl-gpu-rt, checked 2026-05-08). The vmaf-tune QSV adapters (h264_qsv, hevc_qsv, av1_qsv) fail FFmpeg's encoder probe on macOS; use h264_videotoolbox or hevc_videotoolbox.

Manual install

brew install meson ninja nasm pkg-config llvm cppcheck doxygen zimg
export PATH="$(brew --prefix llvm)/bin:$PATH"   # add this line to your shell profile

Build

From the repository root:

meson setup build core
ninja -C build

enable_metal defaults to auto, which builds the Metal backend when the Metal frameworks are present. The binary is build/tools/vmaf; select Metal at run time with --backend metal.

To test VMAFx on a Mac without building it, use the native macOS tester bundle (runs tests and produces a report; does not install the CLI).