Cropping AVAsset video with AVFoundation not working iOS 8

狂风中的少年 提交于 2019-12-04 11:57:27
bevbomb

So it turns out that if you try setting the exporter's outputUrl to the same as the asset your editing like I did it doesn't edit it, so stupid! so for future referencing, outputUrl should be set to a new unique one

I can't give you exact answer because i use C# (Xamarin) for iOS programming. But i use setCropRectangle for cropping video. In C# it looks like this:

layerInstruction.SetCrop (new CGRect (_cropMove, 0, _width / 2, height), transformTime);

Look at the documentation: setCropRectangle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!