1

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.

panchapol
  • 493
  • 1
  • 5
  • 15
  • please share with me a demo if you have achieved this. Would be of great help mate or help me with this. http://stackoverflow.com/questions/43451879/square-video-using-avfoundation – Ankit Kumar Gupta Apr 17 '17 at 12:54

1 Answers1

0

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.

jgh
  • 2,017
  • 14
  • 13