Giter Club home page Giter Club logo

awemelike's Introduction

AwemeLike

项目是仿照抖音的特效相机,基本功能是使用相机拍摄短视频,然后在视频的基础上添加一些视频特效。

已实现功能

  • 磨皮、美白
  • 瘦脸大眼、唇彩、腮红等脸部处理
  • 2D动态贴纸
  • 分屏
  • 转场
  • 常用滤镜,比如抖动、摇摆、毛刺等
  • 多段视频合并

待完成

  • 变速播放和倒放
  • 3D贴纸

存在的问题

由于项目播放器的解码部分是由AVAssetReader完成的,而AVAssetReader并不适合用来做这种可以重置播放进度的实时视频播放,因为对于AVAssetReader来说,重置播放进度都是一个非常耗时的操作,而且视频文件越大耗时越多,当耗时多了就会导致声音出现噪音。

所以编辑的视频最好是在1分钟以内,这样播放时可能偶尔才会有噪音出现,不仔细听其实是很难发现的。 这个问题好像是很难避免的,一种更好的方式是,使用FFmpeg解封装,然后使用VideoToolBox解码视频帧,后面有时间会切换到这种方式。

关于face++的授权

使用前需要替换Face++的key和secret,就是下面的两个宏,在项目中,它的文件路径是Face++/MGNetAccount.h

// 访问 https://www.faceplusplus.com.cn, 登录后在控制台生成对应的 key 和 secret 填写到下面的字符串中


#define MG_LICENSE_KEY      @"" // api_key
#define MG_LICENSE_SECRET    @"" // api_secret


#endif /* MGNetAccount_example_h */

然后调用授权方法,授权成功之后才能使用face++的人脸检测

[[FaceDetector shareInstance] auth];

效果展示

美颜

设置特效

生成的视频文件

相关文章

视频播放器的实现

大眼瘦脸的实现

awemelike's People

Contributors

zzzzou avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.