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

android Q run error error=13, Permission denied #140

Open
sirius770 opened this issue Nov 4, 2019 · 11 comments
Open

android Q run error error=13, Permission denied #140

sirius770 opened this issue Nov 4, 2019 · 11 comments

Comments

@sirius770
Copy link

Cannot run program "/xxx/ffmpeg": error=13, Permission denied
i had do many test : at the android 9 is ok , but android 10 is error.
i think google change the "Runtime" user permission .
Can you fix this ?

@salahhammouda
Copy link

did you find a solution for this issue ?

@joshuamking-driveclutch

Duplicate of #126

@gowthami77
Copy link

did you got the solution for this one
@whwei2008

@Aditya94A
Copy link

Is there any solution for this? This is extremely significant.

If we can't work around this, then ffmpeg is mostly dead on Android.

cc @Brianvdb

@alexcohn
Copy link

@AdityaAnand1

Is there any solution for this? This is extremely significant.

See #130

@BilalAsif25
Copy link

Its been almost 8 months, is this still not fixed yet ?

@Ravipatel401
Copy link

@BilalAsif25 I am still waiting and finding...

@cirilobido
Copy link

cirilobido commented Oct 18, 2020

Apparently in Android that does not allow to execute the FFmpeg codes.
Try this:
Change your API to 28

Or if you need to keep running your app with API> = 29, try using this library: MobileFFmpeg

Important: If you are going to use READ or WRITE permissions, don't forget to use android:requestLegacyExternalStorage="true" in your android manifest.

@ppranav164
Copy link

Right now we can't upload to play store console if we set API Back to 28 from 29 , otherwise use the library as mentioned by @cirilobido

@vijay-pal
Copy link

vijay-pal commented Feb 14, 2021

Create a new resources directory in main in below hierarchy-

main
---> resources
      ---> lib
            ---> arm64-v8a
                   ---> ffmpeg
            ---> armeabi-v7a
                   ---> ffmpeg
            ---> x86
                   ---> ffmpeg

and to modify two methods of FIleUtils class

static File getFFmpeg(Context context) {
        File folder = context.getFilesDir();
        return new File(folder, FFMPEG_FILE_NAME);
    }

    static File getFFprobe(Context context) {
        File folder = context.getFilesDir();
        return new File(folder, FFPROBE_FILE_NAME);
    }

to 

static File getFFmpeg(Context context) {
        File folder = new File(context.getApplicationInfo().nativeLibraryDir);
        return new File(folder, FFMPEG_FILE_NAME);
    }

    static File getFFprobe(Context context) {
        File folder = new File(context.getApplicationInfo().nativeLibraryDir);
        return new File(folder, FFPROBE_FILE_NAME);
    }

and also remove ffmpeg from assets.
Use the branch
https://github.com/vijay-pal/FFmpeg-Android/tree/AndroidQ

@proyo-code
Copy link

Create a new resources directory in main in below hierarchy-

main
---> resources
      ---> lib
            ---> arm64-v8a
                   ---> ffmpeg
            ---> armeabi-v7a
                   ---> ffmpeg
            ---> x86
                   ---> ffmpeg

and to modify two methods of FIleUtils class

static File getFFmpeg(Context context) {
        File folder = context.getFilesDir();
        return new File(folder, FFMPEG_FILE_NAME);
    }

    static File getFFprobe(Context context) {
        File folder = context.getFilesDir();
        return new File(folder, FFPROBE_FILE_NAME);
    }

to 

static File getFFmpeg(Context context) {
        File folder = new File(context.getApplicationInfo().nativeLibraryDir);
        return new File(folder, FFMPEG_FILE_NAME);
    }

    static File getFFprobe(Context context) {
        File folder = new File(context.getApplicationInfo().nativeLibraryDir);
        return new File(folder, FFPROBE_FILE_NAME);
    }

and also remove ffmpeg from assets.
Use the branch
https://github.com/vijay-pal/FFmpeg-Android/tree/AndroidQ

tried this on R android 11 still not working

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

No branches or pull requests