以黑白录制视频 [英] Recording video in Black and White
本文介绍了以黑白录制视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在创建一个使用 AVFoundation
和 AVCaptureSession
来录制视频的应用。我想在实时或 AVExportSession
时以黑白方式录制视频。如何才能做到这一点?我已经在8mm和UberCam的应用程序中看到了它。
I am making an app that uses AVFoundation
and an AVCaptureSession
to record video. I would like to record the video in black and white either in real time or at the time of the AVExportSession
. How can this be done? I've seen it in a few apps already like 8mm and UberCam.
推荐答案
我认为这个帖子将对您有所帮助。它有Brad Larson的示例代码,它使用着色器来实现不同的效果。
I think this post will help you. It has sample code by Brad Larson which uses shaders to achieve different effects.
编辑: 这个链接有一些关于快速灰度的东西可能有用。
This link has some stuff on fast grayscaling which may be of use.
希望帮助!
这篇关于以黑白录制视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文