没有MediaCodec的视频压缩(Video Compression without MediaCodec)

编程入门 行业动态 更新时间:2024-10-17 14:14:47
没有MediaCodec的视频压缩(Video Compression without MediaCodec)

如何在上传到服务器之前降低视频质量,如iOS中的UIIMagePickerController视频质量?我尝试过MediaCodec,但需要很长时间。 请帮忙。

How to lower the quality of video before uploading to server like UIIMagePickerController video quality in iOS?I have tried MediaCodec but it is taking long time. Please help.

最满意答案

如果您希望使用平台的内置功能(并利用设备上的硬件加速功能),则必须使用MediaCodec 。 MediaCodec实现与内置相机应用程序使用的是相同的,因此在框架内不应该有巨大的性能问题。

If you wish to use built-in capability of the platform (and also take advantage of hardware acceleration on the device) then you have to use MediaCodec. The MediaCodec implementation is the same thing used by the built-in camera app, so there shouldn't be a huge performance problem within the framework.

更多推荐

本文发布于:2023-08-03 21:25:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1398938.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:视频压缩   MediaCodec   Compression   Video

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!