Skip to content

ffpyplayer build fails with ffmpeg 8.0.1 (from develop) #3344

Open

Description

@sdas92

I am building ffpyplayer (version: v4.5.1) and I see that the ffmpeg version got upgraded to 8.0.1 and it throws below error.

Error:

/home/somnath/codes/git/my-org/image-to-animation-offline/kivy/.buildozer/android/platform/build-arm64-v8a/build/other_builds/ffpyplayer-openssl/arm64-v8a__ndk_target_28/ffpyplayer/ffpyplayer/pic.c:773:10: fatal error: 'libavcodec/avfft.h' file not found
  773 | #include "libavcodec/avfft.h"
      |          ^~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/ccache' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel

Activity

  1. Noor-Kalibbala commented on Nov 10, 2026

    @Noor-Kalibbala

    A workaround that works for us until ffpyplayer builds against FFmpeg 8. Put two recipes in a local folder and point p4a.local_recipes at it:

    • ffmpeg: the recipe as it was before e564e44 (FFmpeg n6.1.2), with its patches/configure.patch.
    • ffpyplayer: the current recipe with version = 'v4.5.4'. v4.5.1 doesn't compile for Python 3.14.

    With these, ffpyplayer builds and video plays in a Kivy Video widget. Tested with an x86_64 build on an Android 17 emulator, python-for-android 2026.05.09, NDK r28c.

    The root cause is in ffpyplayer: includes/ffmpeg.pxi declares the av_rdft_* functions from libavcodec/avfft.h, which FFmpeg 8 removed. Reported at matham/ffpyplayer#204. Also see #3409.

  2. jafadmin commented on Nov 10, 2026

    @jafadmin

    @ Noor-Kalibbala

    Thank you very much for this work-around. It worked beautifully building for arm64-v8a on an android tablet.

    I had made another post about it and will mark it as a workable temporary solution in that post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions