How to make a video from set of images in android like flipagram

前端 未结 2 1047
梦谈多话
梦谈多话 2021-01-15 12:36

I have searched for the solution and found - Java CV - FFmpeg

Need step by step to integrate them like this

2条回答
  •  醉话见心
    2021-01-15 13:03

    Steps for Integrating FFMPEG

    (1.) Download ffmpeg from here: http://bambuser.com/opensource. It contains scripts to build ffmpeg for android.

    (2.) Modify build.sh. Replace "com.bambuser.broadcaster" with your package name. You also need to set the ffmpeg flags to enable to codecs you're interested in.

    (3.) Run build.sh, and copy the build/ffmpeg directory into your apps jni/lib directory.

    (4.) Use fasaxc's makefile from the SO post.

    (5.) Create a native.c file in your jni directory and a java wrapper. To start with you can model it after hello-jni in NDK samples (/samples/hello-jni).

    (6.) Include headers in your native.c file like this: #include "libavcodec/avcodec.h". And call the functions you need: avcodec_register_all(), etc...

    (7.) Include the native libraries in your root activity by adding: static { System.loadLibraries(""); }

    Besides, there is an important link of Liu Feipeng's Blog - http://www.roman10.net/how-to-build-ffmpeg-for-android/

提交回复
热议问题