-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Martin Vallevand edited this page Mar 23, 2026
·
7 revisions
A set of build scripts that produce yauiclient-optimised libmpv SDKs for Windows x64 and Linux x86_64.
| Platform | Build Script | SDK Format |
|---|---|---|
| Windows x64 (MSYS2/MinGW64) | build-libmpv-mingw64.sh |
.tar.gz + .7z
|
| Linux x86_64 | build-libmpv-linux.sh |
.tar.gz |
| macOS | build-libmpv-macos.sh |
.tar.gz |
Each build produces three files per mpv version tag:
| File | Contents |
|---|---|
libmpv-sdk-vX.XX.X.tar.gz |
Headers, import libs (MSVC + MinGW), pkg-config |
libmpv-dll-vX.XX.X.7z |
libmpv-2.dll only — for installer DLL swap |
libmpv-runtime-vX.XX.X.tar.gz |
FFmpeg DLLs + libplacebo-NNN.dll (manual deploy reference) |
- OpenGL render API (
mpv_render_context/MPV_RENDER_API_TYPE_OPENGL) - D3D11VA + DXVA2 hardware decoding (copy mode — compatible with OpenGL render path)
- WASAPI audio output
- LuaJIT scripting
- Blu-ray playback (
libbluray) - Teletext subtitles (
libzvbi— statically linked into avcodec) - HTTPS streaming via Windows SChannel
- Generic x86-64 CPU baseline (SSE2 minimum — runs on all x64 hardware including Intel Atom/Celeron J-series)
- No Vulkan, no encoders, no capture devices
| mpv tag | FFmpeg | libplacebo |
|---|---|---|
| v0.41.0 | 7.1.1 | shared DLL (libplacebo-351.dll) — self-contained, Windows system DLLs only |
| v0.40.0 | 7.1.1 | shared DLL — self-contained |
| v0.39.0 | 6.1.1 | static (bundled into libmpv-2.dll) |
| v0.38.0 | 6.1.1 | static (bundled into libmpv-2.dll) |
| v0.37.0 | 6.1.1 | static (bundled into libmpv-2.dll) |
| File | Link |
|---|---|
| Runtime | libmpv-runtime-v0.41.0.tar.gz |
| DLL only | libmpv-dll-v0.41.0.7z |
| DLL SHA256 | libmpv-dll-v0.41.0.sha256 |
| SDK | libmpv-sdk-v0.41.0.tar.gz |
| File | Link |
|---|---|
| Runtime | libmpv-runtime-v0.40.0.tar.gz |
| DLL only | libmpv-dll-v0.40.0.7z |
| DLL SHA256 | libmpv-dll-v0.40.0.sha256 |
| SDK | libmpv-sdk-v0.40.0.tar.gz |
| File | Link |
|---|---|
| Runtime | libmpv-runtime-v0.39.0.tar.gz |
| DLL only | libmpv-dll-v0.39.0.7z |
| DLL SHA256 | libmpv-dll-v0.39.0.sha256 |
| SDK | libmpv-sdk-v0.39.0.tar.gz |
| File | Link |
|---|---|
| Runtime | libmpv-runtime-v0.38.0.tar.gz |
| DLL only | libmpv-dll-v0.38.0.7z |
| DLL SHA256 | libmpv-dll-v0.38.0.sha256 |
| SDK | libmpv-sdk-v0.38.0.tar.gz |
| File | Link |
|---|---|
| Runtime | libmpv-runtime-v0.37.0.tar.gz |
| DLL only | libmpv-dll-v0.37.0.7z |
| DLL SHA256 | libmpv-dll-v0.37.0.sha256 |
| SDK | libmpv-sdk-v0.37.0.tar.gz |
Run from an MSYS2 MinGW64 shell:
chmod +x build-libmpv-mingw64.sh
./build-libmpv-mingw64.sh v0.41.0 v0.40.0 v0.39.0 v0.38.0 v0.37.0pacman -S --needed \
mingw-w64-x86_64-libass \
mingw-w64-x86_64-libplacebo \
mingw-w64-x86_64-freetype \
mingw-w64-x86_64-harfbuzz \
mingw-w64-x86_64-lcms2 \
mingw-w64-x86_64-luajit \
mingw-w64-x86_64-libjpeg-turbo \
mingw-w64-x86_64-libbluray \
mingw-w64-x86_64-spirv-cross \
mingw-w64-x86_64-llvm \
mingw-w64-x86_64-tools-gitNote: libzvbi has no MSYS2 package — built from source automatically.
| Variable | Default | Purpose |
|---|---|---|
FFMPEG6_VERSION |
6.1.1 |
FFmpeg version for mpv < v0.40.0 |
FFMPEG7_VERSION |
7.1.1 |
FFmpeg version for mpv ≥ v0.40.0 |
LIBPLACEBO_VERSION |
7.351.0 |
libplacebo version (source-built, no Vulkan) |
ZVBI_VERSION |
0.2.44 |
libzvbi version (source-built, static) |
WORK_DIR |
$PWD/work |
Scratch space for sources and builds |
OUT_DIR |
$PWD/out |
Output directory for tarballs and 7z files |
JOBS |
nproc |
Parallel build jobs |
CUSTOM_PATCH_DIR |
(none) | Directory with ffmpeg/ and mpv/ patch subdirs |
- Always launch MSYS2 from a Windows Explorer shortcut, not from JP Software TCC/LE
- The script is fully resumable — stamp files prevent redundant rebuilds
-
libplacebois built from source with Vulkan disabled and all deps statically linked -
libzvbiis built from source and statically linked intoavcodec-NN.dll
See Building-on-Linux for the Linux build guide, feature profile and downloads.
See Using-the-SDK for integration guides for specific projects.
See Licenses for the open source license information for all distributed binaries.