mifi / editly

Slick, declarative command line video editing & API
MIT License
4.64k stars 295 forks source link

Post processing using webgl #241

Open bezzee opened 1 year ago

bezzee commented 1 year ago

Firstly thanks for this wonderful app. I'm new to JS and learnt a lot of things thru editly and TBH it's overwhelming.

My requirement is to use image filters of canvas some of which are written in glsl. I looked into videoframesource.js where the filters can be applied, but since the canvas used in editly is 2D context, how do I convert the canvas to webgl and do the post processing, convert it back to 2d before returning the frame?

I checked glframesource where the shader is run directly, but I prefer to use the filters workflow of canvas to do the job.

Thanks