How to change video orientation for AVCaptureVideoDataOutput

后端 未结 2 1733
一向
一向 2020-12-28 20:02


Here\'s the problem. I am using AVCaptureVideoDataOutput to get video frames from camera and make video from them with AVAssetWriter. Its working OK, but the video that

2条回答
  •  忘掉有多难
    2020-12-28 20:36

    From here: http://developer.apple.com/library/ios/#qa/qa1744/_index.html#//apple_ref/doc/uid/DTS40011134

    Currently, the capture outputs for a movie file (AVCaptureMovieFileOutput) and still image (AVCaptureStillImageOutput) support setting the orientation, but the data output for processing video frames (AVCaptureVideoDataOutput) does not.

提交回复
热议问题