madhavanmalolan / ffmpegandroidlibrary

One line integration for FFMPEG Library in Android
MIT License
90 stars 15 forks source link

java.lang.UnsatisfiedLinkError #31

Open Ramnath85 opened 6 years ago

Ramnath85 commented 6 years ago

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.

duncanokeyo commented 5 years ago

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...

mansiJspaceo commented 4 years ago

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