Skip to content

Installation on macOS

William Woodruff edited this page Mar 4, 2018 · 8 revisions

Welcome to the ff2mpv installation instructions for macOS.

This page assumes that you've already installed the addon from AMO. If you haven't yet, do it before continuing.

  1. Copy either ff2mpv (the Ruby script) or ff2mpv.py (the Python script) to somewhere on your $PATH, and make sure that it's executable. Both scripts work the same.

  2. Copy ff2mpv.json into ~/Library/Application Support/Mozilla/NativeMessagingHosts/.

  3. Open ~/Library/Application Support/Mozilla/NativeMessagingHosts/ff2mpv.json in your preferred editor, and change the path field to the path where you saved either ff2mpv or ff2mpv.py.

  4. After that, everything should work...

...unless you're using a copy of MPV installed in an applications folder, e.g., /Applications. In that case, you need to modify your script of choice a bit:

For ff2mpv, change

pid = spawn "mpv", "--no-terminal", "--", url, in: :close, out: :close, err: :close

to

pid = spawn "/Applications/mpv.app/Contents/MacOS/mpv", "--no-terminal", "--", url, in: :close, out: :close, err: :close

For ff2mpv.py. change

args = ['mpv', '--no-terminal', '--', url]

to

args = ['/Applications/mpv.app/Contents/MacOS/mpv', '--no-terminal', '--', url]

Adjust as appropriate if you've used a different Applications folder.

Clone this wiki locally