开发者

iPhone:Effects for recorded video?

I have a program to allow user to record the video. I have to provide options like Black&White, Crystal etc. like how "Viddy" iPhone appl开发者_如何学JAVAication does for setting more Effects to the recorded video. How can i achieve it programmatically?

Please guide me.

Thank you!


Here's one way:

  1. Start capturing video frames with AVCaptureSession+AVCaptureVideoDataOutput
  2. Convert the frames to OpenGL textures for display
  3. Write GLSL shaders for each desired effect and apply to textures from step 2
  4. Read back textures + effect and write to movie file
  5. Optimise until performance is adequate
  6. goto 5

5 is probably the most important step. You'll need to tune and tweak the algorithm, video quality, texture size, frame rates, shaders, etc.

Enjoy!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜