Skip to content

build libmpv for macOS, iOS, iPadOS and tvOS

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
LICENSE
GPL-3.0
LICENSE.GPLV3
Notifications You must be signed in to change notification settings

karelrooted/libmpv

Repository files navigation

Libmpv

ffmpeg mpv

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

Requirements

  • iOS 17.0+ / macOS 14.0+ / tvOS 17.0+
  • Xcode 15.0+

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

About

build libmpv for macOS, iOS, iPadOS and tvOS

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
LICENSE
GPL-3.0
LICENSE.GPLV3

Stars

Watchers

Forks

Packages

No packages published

Languages