11 Replies Latest reply on Aug 22, 2009 11:31 AM by yenaphe

    Mask and replace object on a moving item

    Alex DeJesus Level 1

      I am new to CS4, and not too familiar with Photoshop or After Effects, and I was wondering how would be best to do this:

       

      1 - I need to mask the label on the cover of the Blush jar, where it says "MICA BELLA cosmetices" and replace it with another name. The photo moves from left to right in the video so whatever change I make has to move with it. In fact there are a few photos in which I need to do the same, and the jars are at different locations and angles.

       

      2 - Also, at the botton of the pic, below the white line I need to put another word to cover "MICA BELLA" and I'm wondering how best to copy the color scheme across the lettering.

       

      I do not know how the original was created.

      Blush Full.jpg

        • 1. Re: Mask and replace object on a moving item
          Adolfo Rozenfeld Adobe Employee

          Aldeco:

          The task you need to accomplish can be achieved by using perspective motion tracking, either with the built-in motion tracker in AE or the bundled Mocha AE application. Unfortunately, motion tracking and other compositing tricks that may be needed in this particular case are rather advanced operations for a beginner.

          Here is the After Effects help section on Tracking and stabilizing motion. Pay special attention to the parts on 4-point tracking and references to Mocha AE.

          • 2. What Mocha? Not on disk
            Alex DeJesus Level 1

            I own CS4 but Mocha is not installed nor is it on the install disks. How do I get it - download? I couldn't even find it online

            • 3. Re: What Mocha? Not on disk
              Adolfo Rozenfeld Adobe Employee

              It's installed automatically in the same folder as After Effects, if you entered a retail serial number for the suite or application.

              • 4. No solution yet: Mask and replace object on a moving item
                Alex DeJesus Level 1

                I got no helpful answers, yet and I have not found a tutorial that addresses my task. Traking and stabilizing is for smoothing out shaky video, but I'm not even to that point, yet. I need to first remove the black background from the attached image and place the white lettering on the jar lid, but the original grey should still be there. I tried the "change to color" effect to make the black background match the original grey jar cap, but that effect does not work for some reason. I use eyedropper for the from and to colors, but absolutely nothing happens.

                I have never even heard of Mocha until I entered this post. It doesn't look like something I can learn in a few hours or days.  What I need to do seems like a simple task, but I'm not getting it. Does the clone tool in AE serve the same function as that in Photoshop? I can clone the lid on the makeup jar, but only for one frame at a time. Each stroke that I cloned created a layer in the timeline. What am I supposed to do with that?

                Once I have accomplished that, then I have to make whatever I did move along and fade with the video. 

                • 5. Re: No solution yet: Mask and replace object on a moving item
                  Andrew Yoole MVP & Adobe Community Professional

                  Stabilization is the process of stabilizing footage, tracking is the process of synchronizing/adding elements to moving footage.

                   

                  Sorry if the answers so far are not what you wanted to hear, but the reality is that, althought it might SEEM like a simple task, tracking replacement content into moving footage can be quite complex.  There are huge teams of specialists dedicated to this very task on many TV commercials and films these days.  It's crazy to think you can attain that level of skill with a tutorial and a couple of hours.

                   

                  In my opinion, so long as there's not too much dimensional distortion in the camera move, the easiest way to achieve a basic result would be this:

                   

                  Export a frame to Photoshop and clone out the text on the lid.  Then select the whole face of the lid and place it on a new layer.

                   

                  Picture 2.png

                   

                   

                  Save the layered PSD and import to your AE project.  Place the "clean lid" layer into your comp and align it perfectly over the old lid.

                   

                  Now it's your choice - learn how to motion track, or simply move through frame by frame and adjust the position of the clean lid at every frame.  If you set a start position and an end position, hopefully the lid will be in almost the right position throughout the move, and you'll only need to make small corrections.

                   

                  When you're happy with the result, add your text layer, use Corner Pin to alter the perspective, and attach it to the Clean Lid layer using parenting.  You might want to use a Transfer Mode like Screen to make it blend more realistically with the light falling on the lid.  (You might prefer to skip that step and just add the text to the lid in Photoshop, if there's no prespective change during the camera move.)

                   

                  Use masking to remove the coloured text in lower frame.  Use Layer Styles to create a matching gradient on your replacement text/log

                  • 6. Re: No solution yet: Mask and replace object on a moving item
                    Alex DeJesus Level 1

                    Disregard - another message follows

                    • 7. Re: No solution yet: Mask and replace object on a moving item
                      Alex DeJesus Level 1

                      My stupidity is obvious. After 4 hours of exporting, cloning and importing, I ended up with a layer with a gray circle over a white background. There were too many import and export format choices at every step, layered, merged, etc. so I tried everything.

                       

                      I now need to make the white background transparent, which is killing me.

                       

                      THEN, I need to place a text logo on the jar lid and track it as it moves across the screen. I am hoping I can merge those together (lid and logo) to re-use.

                       

                      Next Challenge - that jar label shows up in other short clips - in different positions, sizes and perspectives. I assume I can use a 3D effect?

                      • 8. Re: No solution yet: Mask and replace object on a moving item
                        yenaphe Level 4

                        In photoshop have you created your gray circle on a new layer or directly on the white background ?

                         

                        If you've done it on a separate layer, then import you psd as composition cropped layers and your PSD will be imported as a composition inside AE. In the project panel find your psd layer with only your gray circle on it and drag it on your composition.

                         

                        If you've done your cicrle on the white bckground inside Ps, they you will need to mak or key it.

                         

                        To mask it select the elipse tool one the toolbar and create & adjust an elipse around your gray circle in the timeline.

                        or you can key it:

                        To Key it, you can go to Effect > Keying and select a color key to pull out the white of your layer.

                        • 10. Re: No solution yet: Mask and replace object on a moving item
                          Alex DeJesus Level 1

                          I need to match the gray to different shades due to lighting as this lid appears in several different photos in the video. Some of them pan a little, fade out, and they all appear in different angle perspectives. So once I get the new logo on there, I need use some kind of 3D effect. Any suggestions?

                           

                          On the 3d stuff, I can use the "transform" effect under the "Plug-in effects".  But I don't know how to change the orientation point to the center of the circle. It is now on the outside.

                          • 11. Re: No solution yet: Mask and replace object on a moving item
                            yenaphe Level 4

                            You have to enable the 3D switch of your layer in order to shift it's perspective, and for that you'll probably want to add a camera.

                             

                            Then you can use lights to adapt the lightning of your circle to the one of your video, match the paning & rolling with tracking, match the motion blur and match the grain too.

                             

                            You have to work on each shot independantly. To change the center of rotation you'll need to change the anchor point of the layer.

                             

                            Once again, what you try to do is not easy stuff, and acheiving a good look is really hard if you don't have an intermediate level. Sadly it's not something your are going to acheive in a day or two, so all I can recommend you is to watch/reproduce a ot of tutorials to train yoursefl, watch the basic tut at videocopilot to learn how to use the software.