mpv - runtime library check?

Richard L. Hamilton rlhamil at
Sat Dec 3 09:10:02 CET 2016

Looks to me like mpv checks at runtime that it is linked with the same version (regardless of nominal compatibility) of ffmpeg (at least) as when it was built, and if not, refuses to run:

ffmpeg library versions:
   libavutil       55.34.100
   libavcodec      57.64.100 (runtime 57.64.101)
   libavformat     57.56.100
   libswscale      4.2.100
   libavfilter     6.65.100
   libswresample   2.3.100
ffmpeg version: 3.2.1

mpv was compiled against a different version of FFmpeg/Libav than the shared
library it is linked against. This is most likely a broken build and could
result in misbehavior and crashes.

mpv does not support this configuration and will not run - rebuild mpv instead.

Exiting... (Fatal error)

Uninstalling it and re-installing it (assuming it's rebuilt, as it was in my case) fixes it...but is there a way to automate this, so that when ffmpeg is upgraded, it checks if mpv is installed, and if it is, forcibly reinstalls it?

More information about the macports-users mailing list