The modern video player for macOS.
IINA is the modern video player for macOS.
IINA uses CocoaPods for managing the installation of third-party libraries. If you don't already have it installed, here's how you can do so:
$ sudo gem install cocoapods
$ brew install cocoapods
pod installin project's root directory.
Obtain the mpv libraries.
IINA uses mpv for media playback. To build IINA, you can either fetch copies of these libraries we have already built (using the instructions below) or build them yourself by skipping to these instructions.
Build your own copy of mpv. If you're using a package manager to manage dependencies, the steps below outline the process.
Use our tap as it passes in the correct flags to mpv's configure script:
$ brew tap iina/homebrew-mpv-iina $ brew install mpv-iina
Pass in these flags when installing:
# port install mpv +uchardet -bundle -rubberband configure.args="--enable-libmpv-shared --enable-lua --enable-libarchive --enable-libbluray --disable-swift --disable-rubberband"
Copy the latest header files from mpv (*.h) into
other/parse_doc.rb. This script will fetch the latest mpv documentation and generate
MPVProperty.swift. This is only needed when updating libmpv. Note that if the API changes, the player source code may also need to be changed.
other/change_lib_dependencies.rb. This script will deploy the dependent libraries into
deps/lib. If you're using a package manager to manage dependencies, invoke it like so:
$ other/change_lib_dependencies.rb "$(brew --prefix)" "$(brew --prefix mpv-iina)/lib/libmpv.dylib"
$ port contents mpv | grep '\.dylib$' | xargs other/change_lib_dependencies.rb /opt/local
Open iina.xcworkspace in the latest public version of Xcode. IINA may not build if you use any other version.
Remove all of references to .dylib files from the Frameworks group in the sidebar and drag all the .dylib files in
deps/libto that group.
Drag all the .dylib files in
deps/libinto the "Embedded Binaries" section of the iina target.
Build the project.
IINA is always looking for contributions, whether it's through bug reports, code, or new translations.
If you find a bug in IINA, or would like to suggest a new feature or enhancement, it'd be nice if you could search your problem first; while we don't mind duplicates, keeping issues unique helps us save time and considates effort. If you can't find your issue, feel free to file a new one.
If you're looking to contribute code, please read CONTRIBUTING.md–it has information on IINA's process for handling contributions, and tips on how the code is structured to make your work easier.
If you'd like to translate IINA to your language, please visit IINA's instance of Crowdin. You can create an account for free and start translating and/or approving. Please do not send pull request to this repo directly, Crowdin will automatically sync new translations with our repo. If you want to translate IINA into a new language that is currently not in the list, feel free to open an issue.