Decoding Video using FFMpeg for android

后端 未结 2 1979
清歌不尽
清歌不尽 2020-12-29 07:47

I tried to decode video using FFMpeg library from the sample examples available on internet, i figure it out with new version of ffmpeg, here is the code which I called from

相关标签:
2条回答
  • 2020-12-29 08:20

    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.

    0 讨论(0)
  • 2020-12-29 08:25

    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.

    0 讨论(0)
提交回复
热议问题