bravobit / FFmpeg-Android

FFMpeg/FFprobe compiled for Android
https://bravobit.nl/
MIT License
733 stars 172 forks source link

Not working #171

Open pratik-tech4 opened 3 years ago

pratik-tech4 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

VineshChauhan24 commented 3 years ago

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