Transparent video using shaders ?

I tried this question somewhere else before, but now lets try it in here.

Is there a way to create some kind of transparent video using shaders in unity3d ?

I know everything is compressed to ogg theora and theora doesn’t support alpha channel, but maybe there is a way so that I can render my video with the traditional gree or bluescreen and then have these colors be made transparent by a shader ?

i really hope that this would be possible, or else I don’t see a solution untill Unity Technologies can implement transparent video into the core of unity.

One thought that comes to mind is to make two movies - one color, and one grayscale (for alpha), and use a shader that takes two textures and puts one into color channels, and the other into alpha.

…or try to do green/blue color masking in the shader, but that is possibly hard to do in a shader alone (unless your background is very uniform single color).

The video would be extremely uniform since its rendered movies and the video is almost everywhere 100% same color if I render without AA

Having 2 movies seems very difficult for me since I can’t find any way to sync these in unity.

Then it’s possible with a shader.

Since both of them would run according to the same clock, I think they should be in sync. Didn’t try that in practice though.

Does anyone has this shader for share? (2 videos in sync for transparency)