Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with ffmpeg on Android #2345

Closed
HugoAch opened this issue Nov 1, 2020 · 6 comments
Closed

Problem with ffmpeg on Android #2345

HugoAch opened this issue Nov 1, 2020 · 6 comments

Comments

@HugoAch
Copy link

HugoAch commented Nov 1, 2020

I have developed an application that requires the ffmpeg module, but when I export the Android APK with buildozer [ffmpeg as a requirement] the module is not available. The app throws [Errno 13] Permission denied: ffmpeg.

Any suggestions?

@matham matham transferred this issue from kivy/kivy Nov 1, 2020
@RobertFlatt
Copy link
Contributor

It sounds like Android is refusing to let the app execute a stand alone executable - this is the expected behavior of Android.

The recipe builds .so files, not an executable, see https://github.com/kivy/python-for-android/blob/develop/pythonforandroid/recipes/ffmpeg/__init__.py line 84

Does the app try to execute a ffmpeg binary with exec() or something similar? Android does not allow that (and it is not in the build)

Usage questions are best directed to the user group https://groups.google.com/g/kivy-users

@HugoAch
Copy link
Author

HugoAch commented Nov 2, 2020

Thank you for your response, you mentioned the key point: I needed to call the .so file, not an executable (I am not and experimented Android developer). Now, I have two different cases on ffmpeg calls in my Kivy app: desktop and android.

But nevertheless, the ffmpeg.so library is not built on buildozer, I had to call the silentlexx libffmpeg.so (previously I installed his app https://github.com/silentlexx/android_ffmpeg_buildtool)

@RobertFlatt
Copy link
Contributor

Kivy app: desktop and android.

Yes because the desktop is POSIX compliant and Android is not.

the ffmpeg.so library is not built on buildozer,

I see what you are saying but it exceeds my understanding.

@oukiar
Copy link
Contributor

oukiar commented Feb 23, 2021

maybe you can use ffpyplayer, depends on your needs

@purushottam858
Copy link

Did you figure it out , how to run ffmpeg in kivy Android app ?

@Julian-O
Copy link
Contributor

Closing as no response

@Julian-O Julian-O closed this as not planned Won't fix, can't repro, duplicate, stale Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants