iOS's tip to capture image from streamed video

17 Apr 2012

I am building a custom camera, and what I have noticed is that the capture image from the video output is not as sharp as the one in the `AVCaptureVideoPreviewLayer`.

The difference is almost unnoticeable.

I have figured out, after googling around, that it is because of the frame rate.

Therefore, you should set the video's output frame duration to:

videoOutput.minFrameDuration = CMTimeMake(5,1);

I am not sure what it means… but from this trying-to-understand-cmtime-and-cmtimemake, it means that the duration is 5 seconds. It couldn't be correct.

Give it a kudos