开发者

Is it possible to use a quality between AVAssetExportPresetMediumQuality and AVAssetExportPresetHighestQuality with AVAssetExportSession?

开发者 https://www.devze.com 2023-02-17 21:02 出处:网络
I am using AVAssetExportSession to export a video out of my iOS app, like this: AVAssetExportSession *exportSession=[AVAssetExportSession exportSessio开发者_开发技巧nWithAsset:composition presetName:

I am using AVAssetExportSession to export a video out of my iOS app, like this:

AVAssetExportSession *exportSession=[AVAssetExportSession exportSessio开发者_开发技巧nWithAsset:composition presetName:AVAssetExportPresetMediumQuality];

I want to upload the exported video, therefore size does matter. The problem is: The medium quality is a real bad quality and the AVAssetExportPresetHighestQuality is fine, but about 5 times larger than the medium one.

So, is there a way to create a video with a quality in between, lets say with 2 times the size?

Is this possible with AVAssetExportSession?

If not, is it possible with AVAssetWriter?

Thanks in advance,

best regards,

Walchy


The answer is:

No. Not possible with AVAssetExportSession.

But yes. It is possible with AVAssetReader/AVAssetWriter.

0

精彩评论

暂无评论...
验证码 换一张
取 消