是否有可能以编程方式压缩Android中的音频和视频文件?
当我录制视频文件 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请注意,简单地使用一些 zip 算法对其进行压缩(在 Java 中相对容易实现)不会对您有太大帮助。尝试自己压缩文件。 (如果它确实使文件更小,那么它很可能已经成为视频文件格式的一部分,不是吗:-)
如果您想压缩视频,您必须重新压缩- 使用较低比特率/较低分辨率或类似的方式对其进行编码。
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.