Use SVP with IINA - iina/iina GitHub Wiki

Update for IINA v1.0.6 or later

The main idea is to use your own mpv build rather than the one shipped with IINA. Please try following the guides provided by the SVP team to install mpv. Note that starting from IINA 1.0.6, you should replace or symlink the dylib files rather than merely deleting them, as IINA won't search dylibs from the system default paths.

If you are using an older macOS version, such as 10.13, please compile mpv with the --disable-swift option. Since homebrew has removed these flags, you must run brew edit mpv and change the formula manually as below:

image


(obselete contents)

You could also try the test build (10.14+, signed) to see if it works. Note that this is an experimental build and contains pre-release libraries and should not be used in daily basis.

Current status on SVP support

SVP needs mpv with VapourSynth support, which in turn requires python3. However we haven't come up with a way to include a complete python runtime into IINA, so in order to use SVP, you would need to build mpv and use it instead of the one provided in application bundle.

Short Instruction (for people who are familiar with those operations)

  1. Install CLT.
  2. Install Homebrew.
  3. Install luajit via homebrew.
  4. Install mpv (>=0.29) via homebrew with options --with-uchardet --with-libbluray --with-vapoursynth.
  5. Remove libmpv*.dylib in IINA.app/Frameworks.
  6. (Recommendation from SVP dev) In SVP settings, change main-setup-mpv to /tmp/mpvsocket;/tmp/iinasocket.
  7. Add MPV option input-ipc-server=/tmp/iinasocket to IINA.
  8. ???
  9. Profit!

Long Instruction (detailed)

Install command line developer tools by typing the following command in Terminal.app:

xcode-select --install

Select "Install" in the installation popup.

screen shot 2017-08-03 at 15 41 41

Install homebrew by running the following line in terminal and follow the instructions:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

During the install, you will be asked for the password of current user. Authenticate to continue. Note that there are no * being echoed when you type the password.

Install luajit with the following command:

brew install luajit

Build and install mpv with the following command:

brew install mpv --with-uchardet --with-libbluray --with-vapoursynth

Homebrew will automatically install any software needed. Wait for it to finish.
You would see a line like 🍺 /usr/local/Cellar/mpv/0.26.0: 27 files, 6.6MB, built in 4 minutes 54 seconds if the installation is successful.

Note: Make sure the above line actually says version number larger than 0.29.0, else IINA will not work properly with it. The example comes from ages ago so it's outdated.

To use the mpv we just built, the easiest way is removing the one that comes with IINA. Right click IINA in finder and select "Show Package Contents":

screen shot 2017-08-04 at 2 56 01

Then remove three files starting with libmpv in Contents/Frameworks/ directory.

screen shot 2017-08-04 at 2 58 49

Now IINA will use the libmpv with VapourSynth support.

To use SVP in IINA, we need to add a MPV option. Custom MPV option is under Advanced tab in IINA's preferences.
Add an option named input-ipc-server with value /tmp/mpvsocket.

screen shot 2017-08-04 at 3 04 23

Then restart IINA to make the option take effect.

If everything has been done correctly, when playing videos you could see SVP's OSD indicating it is working. You can also check it by using SVP's performance monitor. It should look like this when playing video:

screen shot 2017-08-04 at 2 04 17

NOTE: SVP settings changes come from recommendations of SVP developers, but is not a must to make it working with IINA.

NOTE: luajit is needed to make youtube-dl working. IINA would not run correctly or fail to start without it.

⚠️ **GitHub.com Fallback** ⚠️