How do I use AVFoundation to crop a video

前端 未结 2 1658
独厮守ぢ
独厮守ぢ 2020-11-28 03:39

I\'m trying to use AVFoundation to crop videos I\'m recording. So lets say i create a AVCaptureVideoPreviewLayer and set the frame to be 300x300.

AVCaptureVi         


        
2条回答
  •  自闭症患者
    2020-11-28 04:18

    ios7 added a specific Layer instruction just for cropping.

    videolayerInstruction setCropRectangle:atTime:
    

    _mike

提交回复
热议问题