Decoding Video Using Ffmpeg For Android
Solution 1:
Looking at the instruction causing problem...
$ rasm2 -a arm -d 4ff0e92d stclcs 0, cr15, [r9, #316]!
stc instruction documentation.
Searching for it, it might not be possible to do that from user space: Getting ILL_ILLOPC (illegal opcode) when trying to execute MRC or MCR instructions on Android
Then however this shouldn't be really your problem right? :)
Try to just print some logging messages in native (or at least do that before av_register_all()), don't add any other extra library, and see if you get that right.
Solution 2:
I think you built FFmpeg with compiler options not suitable for Android.
I would recommend to follow android-ffmpeg-tutorial, it has working example for FFmpeg on Android. It has reference to article about building FFmpeg for Android as well.
You also may want to have a look at much more advanced Android code with FFmpeg player AndroidFFmpeg, it works OK even in Genymotion emulator, I tested. Detailed instructions how to build, worked from the box.
Your code uses deprecated FFmpeg calls, code from the links above was updated for that matter.
Post a Comment for "Decoding Video Using Ffmpeg For Android"