Ask Your Question

skwirl42's profile - activity

2013-01-26 16:21:48 -0600 answered a question iOS video processing tutorial problem

What device are you running this on? I ran into the same problem when running it on my iPhone 3GS. I believe the problem is that it's trying to access the "front" camera when my phone doesn't have one. So this line:

self.videoCamera.defaultAVCaptureDevicePosition = AVCaptureDevicePositionFront;

Needs to change to:

self.videoCamera.defaultAVCaptureDevicePosition = AVCaptureDevicePositionBack;

And if that doesn't help, try changing the session preset to something more generic, like AVCaptureSessionPresetMedium.

HTH!