BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.22k stars 4.62k forks source link

How to create VHS effect using GPUImage #2491

Open sebastian-gil opened 7 years ago

sebastian-gil commented 7 years ago

Hi everyone,

I am trying to make a VHS effect for an iOS app, just like in this video: https://www.youtube.com/watch?v=8ipML-T5yDk

Basically what I need is to change the color levels, change Sharpen parameters, and add some gaussian blur + blend a video with VHS glitch footage or generate those glitches directly using GPUImage.

I am having three problems: 1) To generate a cheesy 80s effect, I need to crank up the RGB levels. The way they do it usually is to duplicate three times the video, and put Red to 0 on one video, blue to 0 on another one, and green to 0 on the last one, and blend them together (just like in the tutorial). But doing this in an iPhone would be too CPU consuming.

Any idea how to achieve the same effect withtout having to duplicate the video and blend it =

2) I can create the glitches by blending a video with VHS glitch on it. I also read I can generate glitches directly, maybe using a shader. Any idea how to achieve that ?

3) I also want to add some noise but do not know which GPUImage effect to use. Any idea on this one too ?

Thanks a lot,

Sébastian