2

I have a camera set up in a room. I take a picture without any foreground as a clean slate. Then, I record a video with a moving foreground while the camera stays in the same position.

Is there any way I could use Adobe Premiere Pro or After Effects to "subtract" the clean slate from the footage so that it would key the background out, leaving only the foreground?

3 Answers 3

2

Haven't tried it, but this might work by dragging both shots in after effects, setting the layer with the subject to "difference", which shows the parts that are different. You can then pre-compose both layers, drag in the footage with the subject again, put it on top of the precomp and then add levels to the precomp, dragging the rgb curve up so that the image becomes only fully black and fully white, giving you the luma-mask for the subject. If you now set this precomp as the luma-mask for the shot with the subject, it should subtract only the subject and cut out the background.

Here are some reasons why this shouldn't be an alternative to greenscreens:

  • You really need to make sure that the camera, as well as the background stays exactly the same for both shots. Any difference will produce bits you need to mask out using a garbage-mask.

  • Because nearly all cameras compress the captured images, those blocky compression-artifacts will get masked out as well. This might result in messy edges and ugly smudges, especially while moving rapidly.

  • When for example a hand is in rapid motion, the background will shine through the blurry hand, because the difference will detect it as if its a completely opaque foreground.

Now some reasons for why you should use it under some circumstances:

  • You won't have to deal with "spill", which is the color of the key-screen (usually green) that gets bounced onto your subject. Cleaning up spill isn't magic, but not having to think about this issue might save you some time.
  • You don't need to buy and set up a proper greenscreen, which - especially for indie-filmmakers - can be a pain in the rear.

I hope I was able to help :)

2
  • Thanks for the response! Damn, that is annoying. So it'll only subtract if the camera is completely still (which I'm afraid won't be possible). There isn't any sort of tracking thing that allows for small camera movements and still a decent key? Commented Mar 6, 2019 at 23:45
  • You can try to stabilize the footage using the warp stabilizer or a simple 2D tracker that is set to "stabilize". However, the movement in the initial footage will cause some blur and smears during movement, which will most likely show up in the difference comp as well. If you're planning on doing the same thing in the future, make sure to lock the camera down on a tripod (preferably a good, heavy one like the ones from manfrotto), and make sure not to move the camera at all. Commented Mar 7, 2019 at 7:15
0

There's a built-in effect called "Difference Matte" which does what Florian describes.

Another one for the list of reasons not to use it: any foreground areas that are close in colour to the background will be partially (or fully) transparent. E.g. you have someone wearing a white shirt against a white wall—it's not going to work. Skin tones are pretty close to a lot of other colours in common environments, and things like highlights and shadows will also cause problems, because they tend towards white and black, just like the highlights and shadows in the BG plate.

There's a reason why green screen is much more commonly used than difference mattes. A bit more trouble to set up, but a lot better result.

0

Another reason not to do it is noise - all video signals contain noise - if you look closely at a zoomed in image of a video clip, you will see that even areas that appear to be solid colours contain small variations over time, due to many different factors. So even if two images seem similar, there will be constant small changes, making it harder to subtract the two images.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.