I'm creating the camera app for ios with live video features by importing GPUImage framework.I used this framework for live photos it was working good.I used the following code for live video with the reference of Brad github,
videoCamera = [[GPUImageVideoCamera alloc] initWithSessionPreset:AVCaptureSessionPreset640x480 cameraPosition:AVCaptureDevicePositionBack];
videoCamera.outputImageOrientation = UIInterfaceOrientationPortrait;
startfilter = [[GPUImageFilter alloc] init];
outputView = [[GPUImageView alloc] initWithFrame:CGRectMake(0.0, 0.0,self.view.frame.size.width,self.view.frame.size.height)];
[self.image_view addSubview:outputView];
[startfilter removeAllTargets];
// Add the view somewhere so it's visible
[startfilter forceProcessingAtSize:outputView.sizeInPixels];
[videoCamera useNextFrameForImageCapture];
[videoCamera addTarget:startfilter];
[startfilter addTarget:outputView];
[videoCamera startCameraCapture];
MY doubt : How to save the video to the photo gallery.I reviewed other blogs they are using the urls, I'm not sure how to implement the url for photo gallery. I used the following code to save the live video to the photo gallery, but I couldnt find the video capture.
[videoCamera stopCameraCapture];
UISaveVideoAtPathToSavedPhotosAlbum(pathToMovie, nil, nil, nil);
I want to know, how to find pathToMovie?
please help.Thanks in advance.