I built mpv and its library using Homebrew: brew install mpv
I renamed the library inside Plex, then symlinked the newly built one there: sudo ln -s /usr/local/Cellar/mpv/0.40.0_2/lib/libmpv.2.dylib /Applications/Plex.app/Contents/Frameworks/
And Plex seems happy. It’s launching and playing movies at least, implying I didn’t really break anything too badly :-> I’ll have to test to see if there are real improvements.
The Homebrew-gnerated build seems fairly up to date, with ffmpeg 7.1.1 and the videotoolbox-gl options:
[cplayer] mpv v0.40.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
[cplayer] libplacebo version: v7.351.0
[cplayer] FFmpeg version: 7.1.1
[cplayer] FFmpeg library versions:
[cplayer] libavcodec 61.19.101
[cplayer] libavdevice 61.3.100
[cplayer] libavfilter 10.4.100
[cplayer] libavformat 61.7.100
[cplayer] libavutil 59.39.100
[cplayer] libswresample 5.3.100
[cplayer] libswscale 8.3.100
[cplayer] Configuration: -Dbuild-date=false -Dhtml-build=enabled -Djavascript=enabled -Dlibmpv=true -Dlua=luajit -Dlibarchive=enabled -Duchardet=enabled -Dvulkan=enabled -Dprefix=/usr/local/Cellar/mpv/0.40.0_2 -Ddatadir=/usr/local/Cellar/mpv/0.40.0_2/share/mpv -Dlibdir=/usr/local/Cellar/mpv/0.40.0_2/lib -Dmandir=/usr/local/Cellar/mpv/0.40.0_2/share/man -Dsysconfdir=/usr/local/etc/mpv -Dbuildtype=release -Dwrap_mode=nofallback
[cplayer] List of enabled features: avfoundation bsd-fstatfs cocoa coreaudio cplugins darwin ffmpeg gl gl-cocoa glob glob-posix gpl iconv javascript jpeg lcms2 libarchive libass libavdevice libbluray libdl libplacebo luajit mac-thread-name macos-10-15-4-features macos-11-3-features macos-11-features macos-12-features macos-cocoa-cb macos-media-player macos-touchbar posix posix-shm rubberband rubberband-3 swift uchardet vapoursynth vector videotoolbox-gl videotoolbox-pl vk-khr-display vulkan zimg zimg-st428 zlib