I read in another post about masking the glasses on a new layer but I am unsure how to exactly do that.
- Keep the keyed layer
- Duplicate it and remove the keying effect on the TOP layer
- Double-click on the top layer, opening it in the layer window
- Use the pen tool to create a mask
- Click the stopwatch on the Mask Path property
- Move down the timeline and reposition the mask when necessary
- Be prepared for working a long time, and splitting the top layer several times if necessary
This is After Effects 101-type stuff. You should know that if you're doing this for a paying customer, you have no business offering your services as an AE practitioner. You don't jump into the AE Pool using the diving board, you start in the AE Kiddie Pool to learn the basics. There are simply too many ways AE can hose and frustrate the uninitiated to do anything else. This a fine place to get started:
This is good, too, but you don't get the benefit of always having project files to work with:
This is also good:
...and don't worry if this link uses an versions than yours, the principles remain the same.
- Keep the keyed layer
Well, I'm not sure there is a problem to "fix". If you were filming him against a brick wall, you would see the brick wall warped in his glasses.
The chromakey making that part transparent is how it should work. The only thing you'll be missing is the warping cause by the lens.
Here's the fix. You need to do some tracking, duplicate and mask the background, add some distortion to the masked copy of the background, and then composite. and color match.
On the top copy of the footage you need to track the movement of the glasses and apply the tracking data to a null.
Now you need to mask just the glasses, pull a key of the distorted area and and layer in a distorted copy of the background layer to the glasses.
Once you have a good replacement for the glasses tie the background and the distortion to the null so that it moves when the actors head moves.
Now pull a key from the bottom copy of the background layer. The top keyed copy will replace the glasses on the bottom copy and you'll end up with something like this:
I used bulge to distort the moved and scaled background. You can see the bulge effect. To complete the composit tie the position of the distortion effect to the null with the tracking data with an expression.
Next time, either use flat glass in the frames or remive the glass entirely.
Here's a comp w/o footage or tracking data to get you started.