Rendering Alpha Channel Matte

pmjm wrote on 5/19/2020, 10:02 PM

Hello,

My project has transparency in it, and I need to render both the RGB video file and a grayscale video that contains the matte with the transparency. This is for compatibility with other software that doesn't support transparency directly - Often times you will receive a video and a companion matte video like this:

How do I render the transparency/alpha matte video from Vegas Pro 17?

Thanks in advance!

Comments

fr0sty wrote on 5/19/2020, 10:38 PM

There's probably a much easier way to do this, but you could max out brightness/contrast on the video until it is all white against a transparent background, then drop some black solid color media from the media generators behind it to give it a back background.

Systems:

Desktop

AMD Ryzen 7 1800x 8 core 16 thread at stock speed

64GB 3000mhz DDR4

Geforce RTX 3090

Windows 10

Laptop:

ASUS Zenbook Pro Duo 32GB (9980HK CPU, RTX 2060 GPU, dual 4K touch screens, main one OLED HDR)

Former user wrote on 5/19/2020, 10:40 PM

I don't know of any current video software that doesn't support an alpha channel. Does it really need to be a separate matte video, or does it need to have an alpha channel?

pmjm wrote on 5/19/2020, 11:41 PM

@fr0styThe problem with that approach is that I'll lose the gray values where there's semitransparency.

@Former user Yes, my specifications are to deliver two separate videos, one as a matte, and not a video with alpha. It's for use in some custom app that my employers have developed.

Marco. wrote on 5/20/2020, 2:13 AM

@pmjm
One way to do is to set your preview to display the alpha channel and then use a script to export an image sequence based on the rendered preview (just like using the "Save Snapshot" button of the preview).

Another way is to use the Mask Generator FX, if your source video already uses the alpha channel. Then in the Mask Generator FX use the default setting and only set the type to "Alpha".

Both results may differ a bit. I think one outputs a premultiplied matte and the other one an unpremultiplied matte, Still investigating.

joelsonforte.br wrote on 5/20/2020, 7:50 AM

@pmjm

I made a short video on Vegas Pro 14 showing the process. It will also work on Vegas Pro 17.  

By default the Quick Time codec is disabled in Vegas Pro 17 and, if you need to render with a transparent background you will need to enable the Quick Time Codec in Options / Preferences / Deprecated Features.

pmjm wrote on 5/20/2020, 9:50 AM

@joelsonforte.br Thank you for that! The Mask Generator -> Alpha Mask effect is the key! I'll import my project into a new project and apply the effect to the whole thing. Also thank you to @marco. and everyone else who replied to this.