havlenapetr / FFMpeg

this is port of ffmpeg for android (this is app, but in future i will do android lib from it and then system will be able to convert videos automatically)
883 stars 420 forks source link

Couldn't load lib #67

Open anxiaoyi opened 10 years ago

anxiaoyi commented 10 years ago

I download your project and rebuild jni on my machine with NDK-9, finally it generate three .so files, then I run this app on my Android phone, when I try to open .mp4 file, Elipse logcat:log :

06-15 12:36:58.180: D/FFMpeg(16706): Couldn't load lib: jniaudio - Cannot load library: reloc_library[1306]: 171 cannot locate '_ZN7android10AudioTrack3setEijiiijPFviPvS1_ES1_iRKNS_2spINS_7IMemoryEEEb'... 06-15 12:36:58.180: D/FFMpeg(16706): Couldn't load lib: jnivideo - Cannot load library: link_image[1891]: 171 could not load needed library 'libsurfaceflinger_client.so' for 'libjnivideo.so' (load_library[1093]: Library 'libsurfaceflinger_client.so' not found) 06-15 12:36:58.190: D/FFMpeg(16706): Couldn't load lib: ffmpeg_jni - Cannot load library: link_image[1891]: 171 could not load needed library 'libjniaudio.so' for 'libffmpeg_jni.so' (find_library[1201]: 171 'libjniaudio.so' failed to load previously) 06-15 12:36:58.190: D/FFMpegPlayerActivity(16706): Error when inicializing ffmpeg: Couldn't load native libs

I want to know how to solve this problem ? My Andorid phone is Android4.1 System, and my OS is Windows 7

liugb commented 10 years ago

Current version do'nt support android 4.1.You must replace jniaudio & jnivideo.

ashish12s3 commented 9 years ago

Couldn't load libjniaudio from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/cz.havlena.ffmpeg.ui-1.apk"],nativeLibraryDirectories=[/data/app-lib/cz.havlena.ffmpeg.ui-1, /vendor/lib, /system/lib]]]: findLibrary returned null

dlopen failed: could not load library "libjniaudio.so" needed by "libffmpeg_jni.so"; caused by cannot locate symbol "_ZN7android10AudioTrack12sharedBufferEv" referenced by "libjniaudio.so"...

please explain in steps what to do.

Thanks

Horopter commented 8 years ago

Does it support android kitkat and above?

Gateway11 commented 8 years ago

Problem solved?I also encountered the same problem.