If you are new to AE, then you really need to start here. AE is an incredible program, but it has a steep learning curve and and it’s not a program where you can run before you walk.
All that being said, I understand that sometimes you have to figure it out as you go, so to address your question, there are multiple ways to approach this shot. If I was doing this project, I think I would try to pull a key off that window. I think I would use the luma key effect, set Key Type to “Key Out Brighter” and start the threshold at 250 and see how that works. Then fill the hole in the background with the outside shot you would like. You might have to add a layer on top, with some mask around the window frame if the luma key cuts some of it out.
Another approach(more difficult) would be to use a mask around the window & curtain, set it to subtract, and use a couple of keyframes to follow the camera movement. That will cut a hole in your video and you can put your replacement video into that hole, by placing the replacement layer underneath your video.
Another approach would be to use Mocha to track your shot, but that’s probably overkill for this shot.
Now you would add another layer of video on top and either use masks to put the women back into the shot or use the rotobrush to replace the woman.
Johnny Cuevas, Editor
Thinkck.com
“I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work.”
—THOMAS EDISON on inventing the light bulb.