user-1: We have recieved 2 video files:

the video with the main character dancing in the middle
an identical file in terms of the animation but the main character is in red, whilst everything else is black.

I imagine the latter is some kind of a mask.
What we would like to do is combine them, so you can only see the bits in file #1 that overlap the red bits, whilst ignore all the black?!?! eg. Just the dancing character that we can choose a different background.
It's like the hard bits been done, we just need to combine them.
We have the full adobe suite, but if someone could point us in the right direction?
We had a play, and added both assets in Premier, and as an example set the #2 file to multiply blend mode... It's the effect we want, but obviously the main character has a red overlay.
Any ideas would be much appreciated.
Thanks

user27348: Method 1


In your timeline, stack the matte clip on top of the character clip and add the Ultra Key effect to the matte with the red color as the key.

Nest those two clips, and place another Ultra Key effect on the nest, this time keying the black.


You'll probably have to mess with the ultra key settings a bit (transparency, choke, and soften) for both applications, but after you've got that set you should have a masked clip ready to place on a new background.

Method 2
There's also a way to do this with the Track Matte Key effect that yields slightly different results, you can decide which method works best for your matte.

In your timeline, stack the matte clip on track 3, the character clip on track 2, and your new background on track 1. 

Add the Luma Key effect to the matte.

Add the Track Matte Key effect to the character clip with the Matte set to Video 3 and Composite Using set to Matte Alpha

Adjust the Threshold in the Luma Key effect in the matte clip if the keyed content is transparent, or adjust the Cutoff if you can still see the black.



I find that the first method gives more control over how the final key looks, but Ultra Key is a complicated tool and the second method is a little more straightforward.

user1950: In Premiere
To avoid the trip to AE you can do it in Premiere, but it does increase the complexity of your timeline. You use the Track Matte Key effect, plus a colour key effect. It's a little tricky, but here's the basic set-up:

start with your three layers. On the bottom, the background that the dancing man is going to be in front of. Could be empty if you just want the infinite blackness of the Void. Above that, the dancing man, and above him the red/black matte layer.
select the red/black matte layer and apply the Colour Key effect (there seems to be a bug where it's spelled Color, but Adobe refuses to do anything about it). Use the eye-dropper to select the red colour of your matte. No, actually select the black of the outline. If you turn off the video 2 visibility at this point you should see a red man dancing in front of the bg.



select the dancing man clip and apply the Track Matte Key. Set the Matte source to Video 3, the layer with the red/black matte. Nothing will happen yet, patient you must be.



the Track Matte key applies the alpha of one layer to another layer, but it uses the alpha of the layer before any effects are applied. To force it to use the alpha created by the colour key you have to nest the layer with the colour key effect. Right click the red/black matte clip and choose Nest…. This will create a sequence with just the red/black matte in it and replace the original clip with that sequence.


At this point with all the layers visible you should see you dancing man over the background layer.

In After Effects
Another way is to put do step 1 above, and then select all the clips and choose Replace with After Effects Composition. This will create an After Effects project with the 3 clips in it. In After effects you would create the composite thus:

on the second layer (dancing man) you need to set a track matte. In the modes/switches panel (if it's not visible hit f4) set the Track Matte to Alpha Matte



now you need to create the transparency for the top layer. If the layer is CGI using the Set Channels effect to use the red for the alpha. Set Source Layer 4 in the effect controls to the top layer; the red/green matte, and set Set Alpha to Source 4's to Red



since we're using the red as the alpha, we'll actually have to reverse the matte. On the second layer, change the track matte to Alpha Inverted and now you should have a dancing man over the background.

You could also use any of AE's multiple colour key effects to create the transparency if the Set Channels effect doesn't wotk. To name a few, there is a simple Colour Key effect, a Colour Range, a Linear Colour Key and Keylight, in rough order of complexity.


-1: <p>We have recieved 2 video files:</p>

<ol>
<li>the video with the main character dancing in the middle</li>
<li>an identical file in terms of the animation but the main character is in red, whilst everything else is black.</li>
</ol>

<p>I imagine the latter is some kind of a mask.</p>

<p>What we would like to do is combine them, so you can only see the bits in file #1 that overlap the red bits, whilst ignore all the black?!?! eg. Just the dancing character that we can choose a different background.</p>

<p>It's like the hard bits been done, we just need to combine them.
We have the full adobe suite, but if someone could point us in the right direction?</p>

<p>We had a play, and added both assets in Premier, and as an example set the #2 file to multiply blend mode... It's the effect we want, but obviously the main character has a red overlay.</p>

<p>Any ideas would be much appreciated.</p>

<p>Thanks</p>
 27348: <p><strong>Method 1</strong>
<a href="https://i.stack.imgur.com/POpVH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/POpVH.png" alt="Image of Premiere timeline with labeled clips."></a></p>

<ol>
<li>In your timeline, stack the matte clip on top of the character clip and add the <code>Ultra Key</code> effect to the matte with the red color as the key.
<a href="https://i.stack.imgur.com/f2glq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f2glq.png" alt="Image of Ultra Key effect with red color set as key."></a></li>
<li>Nest those two clips, and place another <code>Ultra Key</code> effect on the nest, this time keying the black.
<a href="https://i.stack.imgur.com/cRVOp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cRVOp.png" alt="Image of Ultra Key effect with black color set as key."></a></li>
</ol>

<p>You'll probably have to mess with the ultra key settings a bit (transparency, choke, and soften) for both applications, but after you've got that set you should have a masked clip ready to place on a new background.</p>

<hr>

<p><strong>Method 2</strong></p>

<p>There's also a way to do this with the <code>Track Matte Key</code> effect that yields slightly different results, you can decide which method works best for your matte.</p>

<ol>
<li><p>In your timeline, stack the matte clip on track 3, the character clip on track 2, and your new background on track 1. </p>

<p><a href="https://i.stack.imgur.com/5l8mf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5l8mf.png" alt="enter image description here"></a></p></li>
<li><p>Add the <code>Luma Key</code> effect to the matte.
<a href="https://i.stack.imgur.com/SWJ39.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SWJ39.png" alt="enter image description here"></a></p></li>
<li>Add the <code>Track Matte Key</code> effect to the character clip with the <code>Matte</code> set to <code>Video 3</code> and <code>Composite Using</code> set to <code>Matte Alpha</code>
<a href="https://i.stack.imgur.com/OGGBT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OGGBT.png" alt="enter image description here"></a></li>
<li>Adjust the <code>Threshold</code> in the <code>Luma Key</code> effect in the matte clip if the keyed content is transparent, or adjust the <code>Cutoff</code> if you can still see the black.
<a href="https://i.stack.imgur.com/7y8vW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7y8vW.png" alt="enter image description here"></a></li>
</ol>

<hr>

<p>I find that the first method gives more control over how the final key looks, but Ultra Key is a complicated tool and the second method is a little more straightforward.</p>
 1950: <h2>In Premiere</h2>

<p>To avoid the trip to AE you can do it in Premiere, but it does increase the complexity of your timeline. You use the <a href="https://helpx.adobe.com/premiere-pro/how-to/add-track-matte-key.html" rel="nofollow noreferrer">Track Matte Key</a> effect, plus a colour key effect. It's a little tricky, but here's the basic set-up:</p>

<ul>
<li>start with your three layers. On the bottom, the background that the dancing man is going to be in front of. Could be empty if you just want the infinite blackness of the Void. Above that, the dancing man, and above him the red/black matte layer.</li>
<li>select the red/black matte layer and apply the <strong>Colour Key</strong> effect (there seems to be a bug where it's spelled Color, but Adobe refuses to do anything about it). Use the eye-dropper to select the red colour of your matte. No, actually select the black of the outline. If you turn off the video 2 visibility at this point you should see a red man dancing in front of the bg.</li>
</ul>

<p><a href="https://i.stack.imgur.com/zhOJX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zhOJX.png" alt="enter image description here"></a></p>

<ul>
<li>select the dancing man clip and apply the <strong>Track Matte Key</strong>. Set the <strong>Matte</strong> source to Video 3, the layer with the red/black matte. Nothing will happen yet, patient you must be.</li>
</ul>

<p><a href="https://i.stack.imgur.com/uBn99.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uBn99.png" alt="enter image description here"></a></p>

<ul>
<li>the Track Matte key applies the alpha of one layer to another layer, but it uses the alpha of the layer <em>before</em> any effects are applied. To force it to use the alpha created by the colour key you have to <em>nest</em> the layer with the colour key effect. Right click the red/black matte clip and choose <strong>Nest…</strong>. This will create a sequence with just the red/black matte in it and replace the original clip with that sequence.</li>
</ul>

<p><a href="https://i.stack.imgur.com/ldkUg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ldkUg.png" alt="enter image description here"></a></p>

<p>At this point with all the layers visible you should see you dancing man over the background layer.</p>

<p><hr></p>

<h2>In After Effects</h2>

<p>Another way is to put do step 1 above, and then select all the clips and choose <strong>Replace with After Effects Composition</strong>. This will create an After Effects project with the 3 clips in it. In After effects you would create the composite thus:</p>

<ul>
<li>on the second layer (dancing man) you need to set a track matte. In the modes/switches panel (if it's not visible hit <kbd>f4</kbd>) set the Track Matte to <strong>Alpha Matte</strong></li>
</ul>

<p><a href="https://i.stack.imgur.com/W02FD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W02FD.png" alt="enter image description here"></a></p>

<ul>
<li>now you need to create the transparency for the top layer. If the layer is CGI using the <strong>Set Channels</strong> effect to use the red for the alpha. Set <strong>Source Layer 4</strong> in the effect controls to the top layer; the red/green matte, and set <strong>Set Alpha to Source 4's</strong> to <strong>Red</strong></li>
</ul>

<p><a href="https://i.stack.imgur.com/14PVG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/14PVG.png" alt="enter image description here"></a></p>

<ul>
<li>since we're using the red as the alpha, we'll actually have to reverse the matte. On the second layer, change the track matte to <strong>Alpha Inverted</strong> and now you should have a dancing man over the background.</li>
</ul>

<p>You could also use any of AE's multiple colour key effects to create the transparency if the <strong>Set Channels</strong> effect doesn't wotk. To name a few, there is a simple <strong>Colour Key</strong> effect, a <strong>Colour Range</strong>, a <strong>Linear Colour Key</strong> and <strong>Keylight</strong>, in rough order of complexity.</p>

<p><a href="https://i.stack.imgur.com/0b1YT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0b1YT.png" alt="enter image description here"></a></p>
