Decoding Video using FFMpeg for android

浪子不回头ぞ 提交于 2019-11-30 05:05:09
auselen

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!