Decoding Video using FFMpeg for android

后端 未结 2 1980
清歌不尽
清歌不尽 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: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.

提交回复
热议问题