简体   繁体   English

没有MediaCodec的视频压缩

[英]Video Compression without 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. 我如何尝试过在MediaCodec上尝试过降低视频质量,然后再将其上传到iOS中的UIIMagePickerController视频质量之类的服务器之前降低视频质量? Please help. 请帮忙。

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 . 如果您希望使用平台的内置功能(并利用设备上的硬件加速功能),则必须使用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. MediaCodec实现与内置相机应用程序使用的实现相同,因此框架内不应存在巨大的性能问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM