karelrooted / libmpv

build libmpv for macOS, iOS, iPadOS and tvOS
GNU Lesser General Public License v3.0
18 stars 5 forks source link

Libmpv

ffmpeg mpv

script to build libmpv for macOS, iOS, iPadOS and tvOS

Requirements

Usage

Apple

You can use libmpv with MPVKit (swift binding of libmpv)

Build

git clone https://github.com/karelrooted/libmpv.git --recurse-submodules --shallow-submodules
cd libmpv && sh ./build.sh && sh ./xcframework.sh

build help

usage: build.sh [-h]
options:
p     : Optional, platforms(macOS iOS tvOS iSimulator tvSimulator). Default: all
a     : Optional, archs(x86_64 arm64). Default: all, please note iOS and tvOS will ignore this and always be arm64
l     : Optional, libraries(openssl libpng freetype fribidi harfbuzz libass readline gmp nettle gnutls smbclient moltenvk shaderc littlecms libplacebo libdav1d libbluray ffmpeg uchardet luajit mpv).
o     : Optional, optimize level, default: 2 when debug is false, 0 when debug is true
g     : Optional, enable gpl, default: false
d     : Optional, enable debug, default: false
h     : Optional, Print this Help.

debug example

build ios smbclient

./build.sh -p ios -l "readline gmp nettle gnutls smbclient"

Credits

License

libmpv is under the LGPL 3.0 license. Check mpv and ffmpeg for more license requirement. Please note samba is under GPL v3 license, so if you enable smbclient, this library's license became GPL v3 too