There is nothing that would allow you to do this directly. But you can very easily use the UIImagePickerController startVideoCapture to start capturing, and then call stopVideoCapture after 5 seconds, for example using [picker performSelector:@selector(stopVideoCapture) withObject:nil afterDelay:5] .
Or you can do basically the same with AVFoundation, in particular with the AVCaptureMovieFileOutput startRecordingToOutputFileURL:recordingDelegate: and stopRecording .
source share