GPUImage フレームワークをインポートして、ライブ ビデオ機能を備えた ios 用のカメラ アプリを作成しています。このフレームワークをライブ写真に使用しました。うまく機能していました。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];
私の疑問: ビデオをフォト ギャラリーに保存する方法。URL を使用している他のブログを確認しましたが、フォト ギャラリーの URL を実装する方法がわかりません。次のコードを使用して、ライブ ビデオをフォト ギャラリーに保存しましたが、ビデオ キャプチャが見つかりませんでした。
[videoCamera stopCameraCapture];
UISaveVideoAtPathToSavedPhotosAlbum(pathToMovie, nil, nil, nil);
知りたいのですが、pathToMovie を見つける方法を教えてください。
助けてください。よろしくお願いします。