Thanks for your reply :)
@Eugene: I included it allready with extern "C". Next time i will post
my .cpp file too. Sorry
@Mike: Yes i compiled it with the android ndk-build system. These .a
files are in "obj/local/armeabi"
I used now the source code from another project which used ffmpeg!
http://power-amp.info/
I compiled it successful and i get no "reference to" errors.
I pushed the libffmpeg.so to the /data/data/ffmpegtest/lib folder!
But now if i started the app on an emulator (2.1), then the app broke.
My .cpp file:
int FFMpegTests::showFilmInformation() {
av_register_all();
AVFormatContext *pFormatCtx;
const char* filename = "/sdcard/test.avi";
if (av_open_input_file(&pFormatCtx, filename, NULL, 0, NULL) != 0) {
return -1; //Couldn't open file
}
}
After av_open_input_file i get an "fingerprint" error from DDMS.
In the Manifest file i used the permission
"android.permission.WRITE_EXTERNAL_STORAGE"
but no success.
I hope you can help me :)
Should i open a new thread or can i use this thread?!
Thanks for your help
Alex / Berliner