Is there possibility to compress audio and video file in android programmatically?

浪子不回头ぞ 提交于 2019-12-24 10:11:08

问题


As I record the video file for 1min it take 3mb of size as i want to post this file to server it is taking more time.So I need to decrease the time by compassing the recorded video file and send it to server.Is there possibility to compress the video file programmatically. Thanks in advance. Teja.


回答1:


Note that simply compressing it with some zip-algorithm (relatively easy to do in Java) wouldn't help you much. Try compressing the file yourself. (If it did make the file smaller, it would most likely already be a part of the video-file format, wouldn't it :-)

If you want to compress the video, you have to re-encode it with a lower bit-rate / lower resolution or something similar.



来源:https://stackoverflow.com/questions/7103852/is-there-possibility-to-compress-audio-and-video-file-in-android-programmaticall

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!