ffmpegandroidlibrary icon indicating copy to clipboard operation
ffmpegandroidlibrary copied to clipboard

java.lang.UnsatisfiedLinkError

Open Ramnath85 opened this issue 6 years ago • 2 comments

I have added implementation 'com.madhavanmalolan.android:ffmpegandroidlibrary:0.0.4' in my dependencies and jcenter under repositories.

I tried to do a simple test as below:

try {
                Controller.getInstance().run(new String[]{
                            "-y",
                            "-i",
                            mp4_location,
                            "-vcodec",
                            "copy",
                            "-an",
                            mux_location
                });
            } catch (Exception er) {
                System.out.println("failed: "+er);

And got the below error: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.tabaud.musik-K25pRG8-9drkRBScyQosFw==/base.apk", zip file "/data/app/com.tabaud.musik-K25pRG8-9drkRBScyQosFw==/split_lib_directories_apk.apk", zip file "/data/app/com.tabaud.musik-K25pRG8-9drkRBScyQosFw==/split_lib_resources_apk.apk"],nativeLibraryDirectories=[/data/app/com.tabaud.musik-K25pRG8-9drkRBScyQosFw==/lib/x86, /data/app/com.tabaud.musik-K25pRG8-9drkRBScyQosFw==/base.apk!/lib/x86, /data/app/com.tabaud.musik-K25pRG8-9drkRBScyQosFw==/split_lib_directories_apk.apk!/lib/x86, /data/app/com.tabaud.musik-K25pRG8-9drkRBScyQosFw==/split_lib_resources_apk.apk!/lib/x86, /system/lib, /system/vendor/lib]]] couldn't find "libffmpeg.so"

Am i missing any additional configuration here? please suggest.

Ramnath85 avatar Jul 24 '18 06:07 Ramnath85

this lib is compiled for arm but i can see your phone architecture as x86, meaning you will have to compile ffmpeg to support x86...

duncanokeyo avatar Sep 02 '18 06:09 duncanokeyo

hello

i build .so file for all architecture. now i can not get how to build libffmpeg.so for run ffmpeg command. can you please give me some brief idea about it

mansiJspaceo avatar Jan 10 '20 12:01 mansiJspaceo