-
Notifications
You must be signed in to change notification settings - Fork 420
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
Unable to dlopen so #4
Comments
you must rebuild libjnivideo.so for eclair it is in my android_framework |
Hi havlenapetr, D/dalvikvm( 321): Added shared lib /data/data/cz.havlena.ffmpeg.ui/lib/libjniaudio.so 0x43e380c8 D/dalvikvm( 321): No JNI_OnLoad found in /data/data/cz.havlena.ffmpeg.ui/lib/libjniaudio.so 0x43e380c8, skipping init D/dalvikvm( 321): Trying to load lib /data/data/cz.havlena.ffmpeg.ui/lib/libjnivideo.so 0x43e380c8 D/dalvikvm( 321): Added shared lib /data/data/cz.havlena.ffmpeg.ui/lib/libjnivideo.so 0x43e380c8 D/dalvikvm( 321): No JNI_OnLoad found in /data/data/cz.havlena.ffmpeg.ui/lib/libjnivideo.so 0x43e380c8, skipping init D/dalvikvm( 321): Trying to load lib /data/data/cz.havlena.ffmpeg.ui/lib/libffmpeg_jni.so 0x43e380c8 D/dalvikvm( 321): Added shared lib /data/data/cz.havlena.ffmpeg.ui/lib/libffmpeg_jni.so 0x43e380c8 I/ffmpeg_onLoad( 321): loading . . . I/ffmpeg_onLoad( 321): Registering com/media/ffmpeg/FFMpeg natives I/ffmpeg_onLoad( 321): Registering com/media/ffmpeg/FFMpegAVFormatContext natives I/ffmpeg_onLoad( 321): Registering com/media/ffmpeg/FFMpegAVCodecContext natives I/ffmpeg_onLoad( 321): Registering com/media/ffmpeg/FFMpegAVRational natives I/ffmpeg_onLoad( 321): Registering com/media/ffmpeg/FFMpegAVInputFormat natives I/ffmpeg_onLoad( 321): Registering com/media/ffmpeg/FFMpegUtils natives I/ffmpeg_onLoad( 321): Registering com/media/ffmpeg/FFMpegAVFrame natives I/FFMpegPlayer-JNI( 321): register_android_media_FFMpegPlayerAndroid I/ffmpeg_onLoad( 321): Registering com/media/ffmpeg/FFMpegPlayer natives I/ffmpeg_onLoad( 321): loaded I/FFMpegPlayer-JNI( 321): native_init I/FFMpegPlayer-JNI( 321): native_setup I/FFMpegMediaPlayer( 321): setListener I/FFMpegPlayer-JNI( 321): set fields.context 1093023620 I/FFMpegPlayer-JNI( 321): get fields.context 1093023620 I/FFMpegPlayer-JNI( 321): setDataSource: path /sdcard/Cam26-0.mp4 I/FFMpegMediaPlayer( 321): setDataSource(/sdcard/Cam26-0.mp4) I/ActivityManager( 60): Displayed activity cz.havlena.ffmpeg.ui/.FFMpegPlayerActivity: 2092 ms (total 2092 ms) I/FFMpegPlayer-JNI( 321): get fields.context 1093023620 I/SurfaceWrapper( 321): registering video surface I/SurfaceWrapper( 321): registered I/AudioTrackWrapper( 321): registering audio track I/AudioTrackWrapper( 321): registered I/FFMpegPlayer-JNI( 321): get fields.context 1093023620 I/FFMpegMediaPlayer( 321): prepareVideo I/FFMpegMediaPlayer( 321): prepareAudio E/FFMpegMovieViewAndroid( 321): Couldn't prepare player: null Could you please kindly give me any suggestion about this issue? Thanks |
Hi havlenapetr, please give a step wise or give me any ref to follow. Thanks |
here are libs and you must compile them against android source tree https://github.com/havlenapetr/android_frameworks_base/tree/froyo/native |
Hi havlenapetr, I downloaded the files and i did as following Created a new android sample project in eclipse -> created a JNI folder in root folder->copied your native folder here -> Created Android.mk file in JNI folder and added this text include $(all-subdir-makefiles) After doing this Please let me know
Im very beginner to this JNI. so please help me out. Thanks for ur help |
you must build it against android source tree code!!!(download it from aosp and add my jni libs to it and build it all, than grab builded libs into your ndk project and build it) |
Hi havlenapetr, Im getting this error when compiling on cygwin, after add your files to android project api 1.6. Please let me know how to solve this issue Praveen@vensi-1 /cygdrive/d/workspace/android/nativefiles Thnaks |
Oh Thanks havlenapetr, In that link i see, Im not sure abt how i can build aosp files on windows xp. Actucally i need to convert .aac format and play on any android version device. If you have any idea please let me know. Thanks for your help |
sorry I am not windows user |
Hi praveen, I hope you already resolved your problem. If you are still curious, note that you do not need to build AOSP to compile these jniaudio and jnivideo libraries. You need the header files, namely for audio: for video: Also, you need the libraries for your platform. You can pull them with adb from your device' /system/lib directory. For audio: For video: |
Hi alex, Actually due to lack of support i left ffmpeg support project and moved to Thankyou for your reply. :) On Thu, May 12, 2011 at 3:55 PM, alexcohn <
With regards, |
Hey.. can you please tell me how to rebuild it for android api 14. |
Hi havlenapetr,
First of all, thanks a lot for your great job, it’s really helpful.
I compiled your source code successfully and run it on 2.1 emulator.
But when I choose a file, the screen crashed and return the file explorer screen.
Following is log information from DDMS logcat:
09-29 02:49:12.747: DEBUG/dalvikvm(654): Trying to load lib /data/data/cz.havlena.ffmpeg.ui/lib/libjniaudio.so 0x43d0b8d8
09-29 02:49:12.778: DEBUG/dalvikvm(654): Added shared lib /data/data/cz.havlena.ffmpeg.ui/lib/libjniaudio.so 0x43d0b8d8
09-29 02:49:12.878: DEBUG/dalvikvm(654): No JNI_OnLoad found in /data/data/cz.havlena.ffmpeg.ui/lib/libjniaudio.so 0x43d0b8d8
09-29 02:49:12.997: DEBUG/dalvikvm(654): Trying to load lib /data/data/cz.havlena.ffmpeg.ui/lib/libjnivideo.so 0x43d0b8d8
09-29 02:49:13.028: INFO/dalvikvm(654): Unable to dlopen(/data/data/cz.havlena.ffmpeg.ui/lib/libjnivideo.so): Cannot load library: link_image[1721]: 30 could not load needed library 'libsurfaceflinger_client.so' for 'libjnivideo.so' (load_library[1051]: Library 'libsurfaceflinger_client.so' not found)
09-29 02:49:13.068: DEBUG/FFMpeg(654): Couldn't load lib: jnivideo - Library jnivideo not found
09-29 02:49:13.087: DEBUG/dalvikvm(654): Trying to load lib /data/data/cz.havlena.ffmpeg.ui/lib/libffmpeg_jni.so 0x43d0b8d8
09-29 02:49:13.238: INFO/dalvikvm(654): Unable to dlopen(/data/data/cz.havlena.ffmpeg.ui/lib/libffmpeg_jni.so): Cannot load library: link_image[1721]: 30 could not load needed library 'libjnivideo.so' for 'libffmpeg_jni.so' (find_library[1156]: 30 'libjnivideo.so' failed to load previously)
09-29 02:49:13.247: DEBUG/FFMpeg(654): Couldn't load lib: ffmpeg_jni - Library ffmpeg_jni not found
09-29 02:49:13.278: DEBUG/FFMpegPlayerActivity(654): Error when inicializing ffmpeg: Couldn't load native libs
I’v put libjniaudio.so libjnivideo.so libffmpeg_jni.so under folder libs/armeabi/.
I found it crashed when load native library.
FFMpeg.java.
Could you please kindly give me any suggestion about this issue?
Thanks again.
The text was updated successfully, but these errors were encountered: