As far as I know, the only way is to use an external library like ffmpeg. To do this, you need to compile it using the NDK (because it is written in C), and then use it via JNI links. I have tried this for the last 3 (full) days, and if you don't know anything about C, it's just awful ...
elgui source
share