Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transcode/Convert Video to Mp4 on Android

Tags:

android

video

I've a requirement where I need to transcode small video clips shot from Native camera app to lower bitrate/resolution Mp4 which is shreable via email etc.

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

p.s. I know this is an overkill for the device but client leaves me with no option. He doesn't care about battery or time it takes. I'm targeting this for quad-cores, where CPU is not a problem.

like image 974
Taranfx Avatar asked Apr 27 '12 06:04

Taranfx


1 Answers

Your best bet would be to use something like ffmpeg which has been ported to Android (see this SO post: ffmpeg for a android (using tutorial: "ffmpeg and Android.mk") and the ffmpeg port for android which is here: http://bambuser.com/opensource). You'll have to use JNI etc, but that will save you the hassle of dealing with the byte stream yourself.

like image 81
Chris Thompson Avatar answered Sep 23 '22 13:09

Chris Thompson