How to record filtered video for iPhone?

It is easy to record video in two ways: UIImagePicker or ALAssetLibrary.

But if I want to process each frame using an image effects filter, save the result as a video, how to do it? I can use AVCaptureVideoDataOutput to process each frame and save the filtered frame to a still image, but I cannot save them to video, my question is how to save them to video. If you use AVCaptureMovieFileOutput, it’s easy to record the camera in video, but you cannot put a filter on each frame.

Thanks for any tips or comments.

+7
source share
2 answers

Like others, OpenCV may be a good choice, unfortunately it is very slow on iphone compared to other technologies, try using the GPUImage infrastructure from Brad Larsons.

You can find here

+1
source

I would strongly suggest using OpenCV, which now supports the iPhone. You can find the routes here: http://www.computer-vision-software.com/blog/2009/04/opencv-vs-apple-iphone/

The advantage of OpenCV is that you can use a fairly large set of functions and convert it out of the box.

0
source

All Articles