Use SVP with IINA - iina/iina GitHub Wiki
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:
(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.
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.
- Install CLT.
- Install Homebrew.
- Install
luajit
via homebrew. - Install mpv (>=0.29) via homebrew with options
--with-uchardet --with-libbluray --with-vapoursynth
. - Remove
libmpv*.dylib
inIINA.app/Frameworks
. - (Recommendation from SVP dev) In SVP settings, change
main
-setup
-mpv
to/tmp/mpvsocket;/tmp/iinasocket
. - Add MPV option
input-ipc-server=/tmp/iinasocket
to IINA. - ???
- Profit!
Install command line developer tools by typing the following command in Terminal.app:
xcode-select --install
Select "Install" in the installation popup.
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":
Then remove three files starting with libmpv
in Contents/Frameworks/
directory.
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
.
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:
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.