IPhone: effects for recorded video?

I have a program that allows the user to record video. I have to provide options such as Black & White, Crystal, etc., Like how the iPhone “Viddy” application does to set more effects for the recorded video. How can I achieve this programmatically?

I beg you, please.

Thanks!

+4
source share
1 answer

Here is one way:

  • Start capturing video frames with AVCaptureSession + AVCaptureVideoDataOutput
  • Convert frames to OpenGL textures for display
  • Record GLSL shaders for each desired effect and apply to textures from step 2
  • Reading textures + effects and writing to a movie file
  • Optimize until performance is adequate.
  • goto 5

5 is probably the most important step. You will need to configure and configure the algorithm, video quality, texture size, frame rate, shaders, etc.

Enjoy it!

+7
source

All Articles