2

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

Need step by step to integrate them like this

M. Usman Afzal
  • 103
  • 1
  • 2
  • 8

1 Answers1

1

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/

bonnyz
  • 13,458
  • 5
  • 46
  • 70