Skip to content

recipes: new mpv recipe - #3420

Merged
T-Dynamos merged 8 commits into
kivy:developfrom
T-Dynamos:add-mpv-recipes
Nov 30, 2026
Merged

T-Dynamos merged 8 commits into
kivy:developfrom
T-Dynamos:add-mpv-recipes

Conversation

@T-Dynamos

@T-Dynamos T-Dynamos commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Adds recipes for mpv (python-mpv 1.0.8 patched for Android libmpv.so lookup), libmpv (0.42.0), and its dependencies (libplacebo, libass, libfribidi), plus a Clang 19 diagnostic fix in harfbuzz.

Used termux-packages (mpv, libplacebo, libass, fribidi) as reference for the Android build configuration.

  • mpv: PyProjectRecipe for python-mpv (1.0.8, depends on libmpv) with a minimal android.patch (CDLL('libmpv.so') fallback + mpv_android hook) and mpv_android.py helper providing ensure_android_java_vm() (supporting both SDL2 SDL_AndroidGetJNIEnv and SDL3 SDL_GetAndroidJNIEnv) and sdl_opengl_init_params().
  • libmpv: MesonRecipe(skip_python=True) with -Dlibmpv=true, -Dgl=enabled, -Degl-android=enabled, -Dandroid-media-ndk=enabled, -Dopensles=enabled, and -Dvulkan=disabled.
  • libplacebo: MesonRecipe(skip_python=True) via git+ URL (submodules) with OpenGL ES enabled and Vulkan disabled.
  • libass + libfribidi: shared library builds for subtitle/OSD rendering.
  • Hardware decoding (mediacodec-copy) and OpenGL ES FBO rendering tested on arm64-v8a (720p H.264, 4K 60fps H.264, and 4K 30fps HEVC).

Example Kivy + libmpv app: https://github.com/T-Dynamos/mpv-kivy-example

@T-Dynamos
T-Dynamos marked this pull request as draft November 27, 2026 05:31
@coveralls

coveralls commented Nov 27, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 62.868% (-0.8%) from 63.674% — T-Dynamos:add-mpv-recipes into kivy:develop

@T-Dynamos
T-Dynamos marked this pull request as ready for review November 27, 2026 12:35

@AndreMiras AndreMiras left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good overall and it seems to build.
I've left a few comments trying to improve readability/maintainability

@T-Dynamos
T-Dynamos marked this pull request as draft November 28, 2026 09:45
@T-Dynamos
T-Dynamos marked this pull request as ready for review November 28, 2026 13:10
@T-Dynamos
T-Dynamos requested a review from AndreMiras November 28, 2026 13:10

@AndreMiras AndreMiras left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I left 2 minor comments that don't need to be addressed in this scope.
My suggestion is to merge as is and potentially follow up (or not).

@T-Dynamos
T-Dynamos merged commit c17a946 into kivy:develop Nov 30, 2026
70 of 76 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants