Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Motion detection with still background, moving subject

  • Motion detection with still background, moving subject

    Posted by Hyung jin Lee on September 11, 2009 at 1:10 am

    Hi,

    I have a footage with a completely static background and a subject that moves about. I need to mask the subject out from the background so that I can add effects to the background.

    Because of poor lighting, the contrast between the edge of the subject and the background isn’t too good at times, and motion tracking points around the edge of the subject fails because of that.

    I wonder if there is another tool to accomplish this? I can’t imagine this is very difficult, at least in terms of the algorithm involved — say, if a pixel (or an area of the video) remains constant from one frame to the next, then consider it as part of the background; otherwise, if the pixel changes, consider it as part of the subject. Something along those lines.

    So far the only option I had was to manually mask the subject; however, with 12 seconds of footage at 30 fps, you could imagine that the progress isn’t very satisfactory.

    Any suggestions would be very much appreciated.

    Kim Segel replied 16 years, 8 months ago 3 Members · 2 Replies
  • 2 Replies
  • Stuart Elith

    September 11, 2009 at 4:39 am

    Unfortunately, the general consensus seems to be that rotoscoping (masking) is your best option in these circumstances. There is an effect, Difference Matte, which tries to do what you are saying by comparing pixels, but it doesn’t provide good results usually, for many reasons. Most people don’t bother with it.

    Many will suggest you go for a reshoot for best results, with a greenscreen background you can key out. It certainly makes things less painful… otherwise, I think you’re stuck with roto.

    But you will find that 12 seconds actually doesn’t take that long… and you will learn through the process, roto does get a lot quicker once you get into it (though it is always a manual procedure).

  • Kim Segel

    September 16, 2009 at 3:14 am

    Try the “Time Difference” effect.

    Paint out any leftover stuff and you might add a garbage matte to help.

    Good luck…

    A computer once beat me at chess, but it was no match for me at kick boxing.

    –Emo Philips

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy