Video on Android

35 views
Skip to first unread message

MortalWobmat

unread,
Jun 3, 2026, 10:46:03 PMJun 3
to Kivy users support
Is it possible, as of today, to package a Kivy application for Android so that it can play videos? I. e. using kivy.uix.video.Video. If so, what are the Buildozer's requirements, versions combinations, etc.? As I understand, I need to add 'ffpyplayer' to the 'requirements' - without that, my application builds and works, except no video or audio is played; with that, it fails to build.

berk berk

unread,
Jun 5, 2026, 8:39:02 PMJun 5
to Kivy users support
if u use like ' player = MediaPlayer("video.mp4")' u have to add in buildozer.spec file 
source.include_exts = py,png,jpg,kv,atlas,mp4

4 Haziran 2026 Perşembe tarihinde saat 05:46:03 UTC+3 itibarıyla MortalWobmat şunları yazdı:

MortalWobmat

unread,
Jun 6, 2026, 12:16:29 AMJun 6
to Kivy users support
No, it needs to be able to play any video file on the device. I get the permissions through `android.permissions` in `buildozer.spec` and through `pyjnius` at runtime, the absence of the video file or the lack of the access permissions are not the problems. At first, it was outputting this into the log:
`Provider: null(['video_ffmpeg', 'video_ffpyplayer'] ignored)`
I added `ffpyplayer` to the requirements, then it failed to build with the following:
`fatal error: 'libavcodec/avfft.h' file not found`
I added `ffpyplayer_codecs`, the error became
`fatal error: 'libpostproc/postprocess.h' file not found`
Not a runtime error, it does not build. That's where I am stuck now.
The build also outputs the following some time earlier:
```
[DEBUG]:        ERROR: Could not find a version that satisfies the requirement ffpyplayer==4.5.1 (from versions: none)
[DEBUG]:        ERROR: No matching distribution found for ffpyplayer==4.5.1
```

berk berk

unread,
Jun 6, 2026, 7:56:38 PMJun 6
to Kivy users support
it s not last line error log but i suggest to u some method to use easly to chek on Google Colab(it's so fast). 

1- Use latest version of buildozer(1.6.0) 
2- Compile your app without  "ffpyplayer", to get apk 1st. Then add  "ffpyplayer" to the requirements and rebuild again.
3- *Manuel* 
Use 2nd step(if u faced build error after added ffpyplayer, just build your app without ffpyplayer. Then after u get apk, put the ffpyplayer as manuel:
.buildozer/android/platform/build-armeabi-v7a/dists/<your named file>/_python_bundle__armeabi-v7a/_python_bundle/site-packages/<copy ffpyplayer>  
armeabi-v7a might be  build-arm64-v8a . Copy ur ffpyplayer from ur computer to that path. [*i tested alot for diff problematic libraries on buildozer before, and worked.]  
then rebuild again.

U can check those steps on Colab with quickly.


6 Haziran 2026 Cumartesi tarihinde saat 07:16:29 UTC+3 itibarıyla MortalWobmat şunları yazdı:
Reply all
Reply to author
Forward
0 new messages