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

Embedded FFmpeg permission error on Android Q #1055

Closed
GZaccaroni opened this issue Jun 12, 2021 · 2 comments
Closed

Embedded FFmpeg permission error on Android Q #1055

GZaccaroni opened this issue Jun 12, 2021 · 2 comments

Comments

@GZaccaroni
Copy link

When I execute the following code:

String ffmpeg = Loader.load(org.bytedeco.ffmpeg.ffmpeg.class); 
ProcessBuilder pb = new ProcessBuilder(ffmpeg, "-i", "/path/to/input.mp4", "-vcodec", "h264", "/path/to/output.mp4");

I get:

Exception
    java.io.IOException: Cannot run program "/data/data/com.lumyer.app/cache/.javacpp-root/cache/base.apk/lib/arm64-v8a/ffmpeg": error=13, Permission denied
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)

Do you know if a fix exists?

@saudet
Copy link
Member

saudet commented Jun 12, 2021

Newer APIs of Android don't support executables. Make sure to build for an older version of Android.

@saudet
Copy link
Member

saudet commented Jun 12, 2021

Duplicate of bytedeco/javacv#1410

@saudet saudet closed this as completed Jun 12, 2021
@saudet saudet marked this as a duplicate of bytedeco/javacv#1410 Jun 12, 2021
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

2 participants