MPVKit is only suitable for learning
libmpvand will not be maintained too frequently.
MPVKit is a collection of tools to use mpv in iOS, macOS, tvOS applications.
It includes scripts to build mpv native libraries.
Forked from kingslay/FFmpegKit
Metal support only a patch version (#7857) and does not officially support it yet. Encountering any issues is not strange.
https://github.com/mpvkit/MPVKit.git
MPVKit ships as a GPL build. See FFmpeg details and mpv details.
make build
# specified platforms (ios,macos,tvos,tvsimulator,isimulator,maccatalyst,xros,xrsimulator)
make build platform=ios,macos
# clean all build temp files and cache
make clean
# see help
make helpIf you want the demo app to use the local build version, you need to modify Package.swift to reference the local build xcframework file.
Click here for more information.
.binaryTarget(
name: "Libmpv",
path: "dist/release/Libmpv.xcframework.zip"
),
.binaryTarget(
name: "Libavcodec",
path: "dist/release/Libavcodec.xcframework.zip"
),
.binaryTarget(
name: "Libavdevice",
path: "dist/release/Libavdevice.xcframework.zip"
),
.binaryTarget(
name: "Libavformat",
path: "dist/release/Libavformat.xcframework.zip"
),
.binaryTarget(
name: "Libavfilter",
path: "dist/release/Libavfilter.xcframework.zip"
),
.binaryTarget(
name: "Libavutil",
path: "dist/release/Libavutil.xcframework.zip"
),
.binaryTarget(
name: "Libswresample",
path: "dist/release/Libswresample.xcframework.zip"
),
.binaryTarget(
name: "Libswscale",
path: "dist/release/Libswscale.xcframework.zip"
),
./mpv.sh --input-commands='script-message display-stats-toggle' [url]
./mpv.sh --list-optionsUse Shift+i to show stats overlay
- moltenvk-build
- libplacebo-build
- libdovi-build
- libshaderc-build
- libluajit-build
- libass-build
- libbluray-build
If you appreciate my current work, you can buy me a cup of coffee ☕️.
MPVKit bundles (frameworks, xcframeworks), which include both libmpv and FFmpeg libraries, are licensed under the GPL v3.0.