项目作者: ltebean

项目描述 :
A demo project demonstrating how to add filter, drawing, and text to a video
高级语言: Swift
项目地址: git://github.com/ltebean/LTVideoRecorder.git
创建时间: 2018-12-29T08:34:56Z
项目社区:https://github.com/ltebean/LTVideoRecorder

开源协议:

下载


This project demonstrates how to use CoreImage to add filter, drawing, and text to a video.

The flow is:

  • for every frame, get CVPixelBuffer from a AVCaptureSession, convert it to a CIImage instance
  • add filter to the CIImage
  • add drawing and text layer to the CIImage
  • render the CIImage to the screen
  • write the CIImage to the file