I’d like to implement chroma keying on videos, but none of the shaders seem to apply properly. There are no compile errors and videos are loaded with raw = false. All shaders work properly with images and rects but not videos.
What I’ve tried so far:
- passing the video as a texture => has no texid() method => throws an error
- using my other shaders, none of them work
- copy-pasted the shader, shader:use and load_video parts from the scheduled player package, still nothing, however, when I change the sensitivity to 1.0 I get a black texture (works properly on framegrabs from the same video)
I don’t know what I’m doing wrong.
My video files are encoded with h264, resolution doesn’t matter.