I am trying to record video in my iPhone app using AVFoundation. But whenever I click the Record button app crashes with this message
-[AVCaptureMovieFile
I had the same problem while changing videoDevice activeFormat and later wanted to record video. Because I was using best quality video I had to set sessionPreset to high, like following
_session.sessionPreset = AVCaptureSessionPresetHigh;
and it worked for me! :)