跨code /视频转换的MP4在Android [英] Transcode/Convert Video to Mp4 on Android
问题描述
我有一个要求,我需要跨code小短片拍摄的原生相机应用程序,以较低的比特率/分辨率的MP4是通过电子邮件等shreable
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.
什么是反式code的最佳方式/转换的视频设备本身。 FFMPEG或任何其他库?
What is the best way to transcode/convert the video on device itself. FFMPEG or any other library?
P.S。我知道这是一个矫枉过正的设备,但是客户端留给我没有其他选择。他不关心电池或需要时间。我针对这对于四核处理器,其中CPU是没有问题的。
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.
推荐答案
您最好的选择是使用类似的ffmpeg已经被移植到Android(见本SO帖子:<一href="http://stackoverflow.com/questions/2645041/ffmpeg-for-a-android-using-tutorial-ffmpeg-and-android-mk">ffmpeg对于一款Android(使用教程:&QUOT; ffmpeg的和Android.mk&QUOT;)和FFmpeg的端口为Android这是在这里:的 http://bambuser.com/opensource )。你必须使用JNI等,但是,将节省您处理的字节流自己的麻烦。
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.
这篇关于跨code /视频转换的MP4在Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!