mpv 0f9a690 installed on macos 10.13.1 via Homebrew with:
brew install mpv --HEAD --with-bundle --with-libaacs --with-libarchive \
--with-libcaca --with-libdvdnav --with-pulseaudio --with-rubberband \
--with-uchardet --with-vapoursynth
mpv -v --osc file.mp4
Plays video with OSC.
[cplayer] Error parsing option osc (option not found)
[cplayer] Setting commandline option --osc=yes failed.
[cplayer]
[cplayer] Exiting... (Fatal error)
mpv -v --osc file.mp4: http://sprunge.us/KVAE
mpv -v: http://sprunge.us/eYMC
I鈥檝e read the FAQ:
Install Lua (including development headers) and rebuild mpv.
Lua 5.3.4 is installed of course. How do I get Lua development headers?
Sorry to ask, I know I鈥檓 in over my head with this. _Thanks in advance if you spare a moment to help me out._
mpv does not support 5.3. You need 5.1 or 5.2 (both work, I've used both long enough).
To get a working version of mpv with brew, all you need to do is change one single line in the brew formula. The brew maintainers know this too but they don't want to fix it because the person who asked apparently didn't ask nice enough (see the link above).
Please complain to them.
To fix it locally: brew edit mpv
Search the line depends_on "lua" => :recommended and replace it with depends_on "[email protected]" then rebuild from source (in your case, just install as you did before).
I've adjusted the FAQ page to explicitly mention the supported Lua versions.
Dear lord, this package was hard to install.
It worked, of course; replies are much appreciated.
See my comments here: https://github.com/mpv-player/mpv/issues/5080#issuecomment-350411768
TL;DR I've merged the 5.1 PR :peace_symbol: :dove: :v: