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

Not working #171

Open
pratik-tech4 opened this issue Nov 19, 2020 · 4 comments
Open

Not working #171

pratik-tech4 opened this issue Nov 19, 2020 · 4 comments

Comments

@pratik-tech4
Copy link

pratik-tech4 commented Nov 19, 2020

hi,

@scmfaria , @BilalAsif25 I am testing on android 10 and its not working. I have downloaded this repository, run and checked. I have given storage permission then i run command

Error : /lib/arm64/lib..ffmpeg..so": error=2, No such file or directory

`String inputPath="/storage/emulated/0/Download/test.mp4";
String outPath="/storage/emulated/0/Download/output.mov";
String[] command = {"-i", inputPath, outPath};

    final FFtask task = FFmpeg.getInstance(this).execute(command, new ExecuteBinaryResponseHandler() {
        @Override
        public void onStart() {
            Timber.d( "on start");
        }

        @Override
        public void onFinish() {
            Timber.d("===on finish");
            Log.d("===","ffmpegTestTaskQuit onFinish ::: ");
        }

        @Override
        public void onSuccess(String message) {
            Timber.d(message);
            Log.d("===","ffmpegTestTaskQuit onSuccess ::: "+message);
        }

        @Override
        public void onProgress(String message) {
            Timber.d(message);
        }

        @Override
        public void onFailure(String message) {
            Timber.d(message);
            Log.d("===","ffmpegTestTaskQuit onFailure ::: "+message);
            ffprobeTestTaskQuit();
        }
    });`

Error : /storage/emulated/0/Download/test.mp4: Permission denied

But version command is working.

I am using bug_fix branch code : https://github.com/scmfaria/FFmpeg-Android/tree/bug_fix

please help me! Thank you!

@scmfaria
Copy link

Hi @pratik-tech4

Please, check if you add in build.gradle module app this code:

defaultConfig {
 ... 
      ndk {
           abiFilters "armeabi-v7a", "x86"
      }
}

And in AndroidManifest, add this line:

android:extractNativeLibs="true"

Please, check it and any questions call me :)

@pratik-tech4
Copy link
Author

pratik-tech4 commented Nov 30, 2020

hi @scmfaria Thank you for your response,

i have added abiFilters and android:extractNativeLibs="true". But still it is not working. I am testing on android 10.

Error :
java.io.IOException: Cannot run program "/data/user/0/packa_name/files/ffmpeg": error=2, No such file or directory

Library i used :
implementation 'nl.bravobit:android-ffmpeg:1.1.7'

@L30D3V
Copy link

L30D3V commented Nov 30, 2020

I'm having the same issue @pratik-tech4
Your problem is probably related to the issue #168

@VineshChauhan24
Copy link

bravobit/FFmpeg-Android-- this library support only build verstion upto 28 , this will be working fine when your sdk version is 28. try below answer

https://stackoverflow.com/a/59683008/8416317

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

4 participants