I am having a problem getting a resolution of 1280x960 while using this for video on the front facing camera. It's necessary for a face finder and eye biometrics we are running that we have a wider field of view at the absolutely highest resolution, and this at 30 frames per second.
The frames being delivered are coming in at 1000x750, while the documentation claims it should be 1280x960. I know we were once getitng this higher resolution but it seems like an update reduced the preview frame size. I am guessing this was switching to iOS 9.
iPhone 5/5C/5S/6/6+
FRONT camera
- AVCaptureSessionPresetPhoto = 1280x960
- AVCaptureSessionPresetHigh = 1280x720
- AVCaptureSessionPresetMedium = 480x360
- AVCaptureSessionPresetLow = 192x144
- AVCaptureSessionPreset640x480 = 640x480
- AVCaptureSessionPreset1280x720 = 1280x720
- AVCaptureSessionPreset1920x1080 = not supported
So to make sure it wasn't something we were doing in our code, I modified the RosyWriter sample app and just switched to the front facing camera and set the preset
_captureSession.sessionPreset = AVCaptureSessionPresetPhoto;
I also added a nsnotification block to receive information about the port when it changed, and it claims the resolution is 1280x960 but the delegate callback clearly reports 1000x750
- (void)captureOutput:(AVCaptureOutput *)captureOutput
didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
fromConnection:(AVCaptureConnection *)connection
What is going on?