问题描述
当我录制视频文件1分钟时,它占用3mb的大小,因为我想将此文件发布到服务器上需要花费更多时间.因此,我需要通过罗盘录制的视频文件并将其发送到服务器来减少时间.是否可以通过编程方式压缩视频文件.提前致谢.特雅
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.
推荐答案
请注意,仅使用一些zip算法(在Java中相对容易实现)压缩它不会对您有太大帮助.尝试自己压缩文件. (如果 did 使文件更小,则很可能已经是视频文件格式的一部分了,不是吗:-)
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.
这篇关于有可能以编程方式压缩android中的音频和视频文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!