I want to capture videos with iOS camera with 1:1 aspect ratio.
I tried with UIImagePickerController, but it don't provide changing aspect ratio. Could anyone give me ideas?
Additionally, iPhone app "Viddy" provides 1:1 aspect ratio video capturing http://gyazo.com/1ccba9990bb589961f1d5df23b71b84b.png?1364791668
Thanks!
Note:
_preview's videoGravity and the videoSettings AVVideoScalingModeKey should be same to get the output as 320 x 320.
I don't think it's possible to do so without help of some app, or even if it's possible with an app, you can capture video then crop it to 1:1
where
asset
is the input movie file.cropRegion
is the area to crop.movieUrl
is the target url to save the cropped movie.