8 Replies Latest reply on Jul 26, 2017 9:13 AM by ImagineerSystems

    Problems with tracking

    gasparg94033917 Level 1

      Hello, I've already asked a question about that but I didn't explained very well the problem that i was facing so i'll try again.

      I have a footage of players running on a pitch :

      fghj.jpg

      My goal was to cover/remove all the guys running exept the guy in the red circle.

      I finished covering the guys on the first frame :

      disappear.jpg

      but my problem is that i tried to track the motion of this footage to apply it to the pieces that covers the players but i can't get the tracking right, i tried with moca and with the after effect tracker but it doesn't work because the camera moves in a weird way.

       

      these are the pieces :

       

      Sans titre-1.jpg

       

      and this is the footage itself :

      https://www.youtube.com/watch?v=4NMIWvlgL7E

       

      So if anyone could explain to me how to track this footage of 3 seconds it would very nice of you

       

      thanks for your time

        • 1. Re: Problems with tracking
          Jose Panadero Adobe Community Professional

          What you need is to track the planar surface and the best option for this is to send the footage to Mocha AE (include with your AE Installation). Select the Footage and go to Animation > Track with Mocha.

           

          Go to Imaginner Systems web where you can find how to use Mocha AE. There are a lot of videos covering the basics of Mocha AE.

          • 2. Re: Problems with tracking
            gasparg94033917 Level 1

            I tried in mocha ae to track it by making a rectangular shape over the small rectangle arround the goalkepper but the tracking works on the 10 first frame then it totally goes crazy

            • 3. Re: Problems with tracking
              Jose Panadero Adobe Community Professional

              You can select another area with the same perspective (coplanar surface) that has less motion and use the planar surface (the "S" icon in Mocha) to get the desired results. For Example, try it in another area where are no soccer players

              • 4. Re: Problems with tracking
                WorldSightMedia

                You might do better tracking it manually.

                 

                Make a still of the pitch with no one on it (Photoshop would be easiest) and drop it in your comp, below the moving footage.

                 

                Make a shape layer above your footage, then create an ellipse covering the player you want to keep.

                 

                Manually keyframe the position of the ellipse, every half a second or so, ensuring it always covers your player.

                 

                Set the track matte of your footage to the alpha of the shape layer above. This will mean your footage only shows where the ellipse is, with the rest of each frame being the still shot of the empty pitch below. You may want to feather the edges of your ellipse, to smooth the effect.

                 

                However you do this, though, you're going to have to mask frame by frame, when your guy passes in front of another player.

                 

                I'd be very careful where you place the final result though, unless you have bought the rights to this footage. Broadcasters pay a fortune for the right to show sports and are very protective of any breach of copyright.

                • 5. Re: Problems with tracking
                  Roei Tzoref Adobe Community Professional

                  this is no easy stuff

                   

                  to do this properly, I agree with Jose, Mocha would be the most efficient tracking tool probably. but there's more to it than that.

                   

                  the workflow is this:

                  you stabilize the footage, place a clean plate, mask out the live parts, reintroduce the motion, then duplicate the original video and roto the guy on top of it.

                   

                  Stabilize:

                  in Mocha you create multiple planes on the same track that are clean with no movement of players on top of them

                  set the planar surface on a proper perspective so you can watch the planar grid and see you are locked on the track.

                   

                  now for the export:

                  first, go to the first frame and push planar surface to corners

                   

                  when exporting, check the invert checkbox to get a stabilized shot. use the corner pin only setup

                  in Ae, go to the first frame and paste.

                  Stabilized.gif

                  stabilize is done!

                   

                  Creating a Clean Plate:

                  now for the clean plate. you export the first frame to photoshop and clean it up using the stamp tool

                  you don't bother with the goalkeeper or the assistant referee because you are going to mask them in Ae.

                   

                  when you are done bring it back to Ae and place it on top of the stabilized shot. you mask out the live parts

                  Reintroduce the motion:

                  you close this in a precomp and call it stabilized. you copy again from mocha and paste but this time no invert.

                  123.gif

                  Rotoscoping:

                  now for the fun part - ROTOSCOPING! I would maybe use rotobrush. you got some wiggle room because the background is almost the same. manual masking can work good too or a mess - need some trial an error to see what's most efficient for the user and the purpose.

                  for the ball, I would mask manually using a circle mask. maybe frame by frame since it's probably very fast and changing.

                   

                  and you're DONE!

                  2 people found this helpful
                  • 6. Re: Problems with tracking
                    gasparg94033917 Level 1

                    that was really helpfull thank you a lot

                    • 7. Re: Problems with tracking
                      Roei Tzoref Adobe Community Professional

                      you're welcome, this is good practice

                       

                      Good Luck!

                      • 8. Re: Problems with tracking
                        ImagineerSystems Level 1

                        That was a great visual explanation of Mocha AE! I would also point out that if you are using Mocha AE already, you can also use it for the garbage matting (mocha tracked shapes) that can paste into the AE layer (in Mocha AE export shape, in AE paste>paste mocha mask).

                         

                        Another very useful option is the Mocha Pro plug-in for Adobe which has the Remove Module for these kind of foreground removal projects. This video tutorial might be interesting:

                        Mocha Pro: Simplifying Complex Removes on Vimeo

                         

                        and you can find lots of Mocha AE specific tutorials here:

                        Videos « Imagineer Systems

                        1 person found this helpful