문제

I try to crop a video in square with AVFoundation which I follow the tutorial from this web site http://www.netwalk.be/article/record-square-video-ios.

My question is how to crop a square video with an area that I selected (like when you select a photo in UIImagePicker or like in instagram). The example gives me a square video but cropping from the center.

Thank you for your advice.

도움이 되었습니까?

해결책

Notice in the // rotate to portrait portion of the code they're making affine transformations. Modify those transformations to align the video how you want.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top