how to make color of a video transparent, chroma

Hi,

I need to aply tranparence to a video at unity.

I can make the video with alpha channel or make the video with a color like Green chroma.

can anyone help me?

Thanks a lot.

Use a shader that does it for you.
Create an alpha blending shader that will detect the color you want to remove and set Alpha according to that.

To detect the color, i’d recommend converting the pixel color to HSL space and doing it there. Your video will most likely be compressed and thus some color errors will appear. By calculating a distance from your desired hue, saturation and lightness, and running it through some function that would map an alpha to it you may be able to create desired results.

Another option would be to have a separate video texture that would act as an alpha map, but that would mean playing two videos at the time, so definitely more expensive.