Takahiro Ishihama
Takahiro Ishihama

Reputation: 49

AVFoundation & iOS - AVAssetWriterInput Captures And Crop A Square Video With Selected Position (Not Center Position)

Thank you for seeing this question. I faced a problem that try to crop a square with selected place. I completed to make a square capture, but I gave up to crop favorite place. AVAssetWriterInput alway capture the square at "Center"

In my opinion, AVAssetWriterInput's transform is a key to solve this problem, but I couldn't complete, even I tried any pattern which I could imagine.

I understand transform can control rotate of video, but can it control position?

Please help me to work out this problem. Thank you.

purpose style

Upvotes: 0

Views: 389

Answers (1)

jgh
jgh

Reputation: 2027

CGAffineTransformMakeTranslation will make a transform that can change the position for you.

Upvotes: 1

Related Questions