Transcode / Convert Video to Mp4 on Android

I have a requirement when I need to transcode small videos shot from my own application for the camera for a lower bitrate / resolution Mp4, which can be edited by email, etc.

What is the best way to transcode / convert video on the device itself. FFMPEG or any other library?

ps I know that this is too much for the device, but the client leaves me with no choice. He does not care about the battery or the time it takes. I am aiming for this for quad processors where CPU is not a problem.

+8
android video
source share
3 answers

It is best to use something like ffmpeg ported to Android (see this post SOF: ffmpeg for android (using the tutorial: "ffmpeg and Android.mk";) and the ffmpeg port for android, which is here: http: // bambuser.com/opensource ). You will need to use JNI, etc., but it saves you the trouble of talking to a byte stream.

+5
source share

Did not try this on Android by myself, so YMMV:

Is there a Java API for mp4 files?

http://code.google.com/p/mp4parser/

-one
source share

If you are recording to a device, why not set the expected format from your code? It looks like api allows you to set the video size, frame rate, etc. In the class MediaRecorder .

-one
source share

All Articles