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

前端 未结 2 1037
梦谈多话
梦谈多话 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 12:58

    If you can target latest API (4.1 to 4.3) you should try to play with this: http://developer.android.com/reference/android/media/MediaCodec.html

    From changelog:

    Android 4.1 (API level 16) added the MediaCodec class for low-level encoding and decoding of media content. When encoding video, Android 4.1 required that you provide the media with a ByteBuffer array, but Android 4.3 now allows you to use a Surface as the input to an encoder. For instance, this allows you to encode input from an existing video file or using frames generated from OpenGL ES.

    Otherwise, If you want a fully custom solution, you could try the native way and implement your encoder using JNI and libwebm (from Google) http://www.webmproject.org/code/

提交回复
热议问题