没有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.
更多推荐
发布评论