I have set up the input, and the output for the AVCapture session and also the delegate
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection
is getting called. How do I convert the frames to a mp4 video file and save it?