Skip to main content
Participating Frequently
July 23, 2018
Answered

tracking to automate resizing and position ?

  • July 23, 2018
  • 2 replies
  • 1442 views

Hello,

This is my first post here and I am pretty new to AE (but got the basics).

I have several shots done on a tripod of someone drawing onto a wall but as the drawing is evolving the tripod was put a little bit further and further away.

What I need is to track the video and put every shots on the same size in order to be able to zoom out at a desired speed. (additional problem as it's a drawing the tracking has difficulties to recognize the points between 2 shots and to enlarge the trackingzone really slows down the process...any idea ?)

I also tried to do it manually on premiere but it was really time consumming ( and I have several videos like this).

So what do I have to do ? I did a tracking on AE and attached it to a null object but then I don't know  what is the best thing to do and how do it ?

Add a camera and link it to the null object ?

Thanks in advance !

This topic has been closed for replies.
Correct answer Rick Gerard

I hope the original footage is at least 2X the final comp size.

All you have to do is line up the images on top of each other, start at the bottom, when you get to full wide turn on the next image, switch the difference or overlay or multiply blend mode so you can easily see the overlapping pixels and scale or position the next layer in 3D space. Personally, I'd probably stack everything up in 3D space and move the camera. No tracking required just careful placement and a well-timed move.

2 replies

Rick GerardCommunity ExpertCorrect answer
Community Expert
July 24, 2018

I hope the original footage is at least 2X the final comp size.

All you have to do is line up the images on top of each other, start at the bottom, when you get to full wide turn on the next image, switch the difference or overlay or multiply blend mode so you can easily see the overlapping pixels and scale or position the next layer in 3D space. Personally, I'd probably stack everything up in 3D space and move the camera. No tracking required just careful placement and a well-timed move.

Participating Frequently
July 25, 2018

Ok, so the same thing I initially done in Premiere but in 3D in AE ? right ?

I think it's nice, how would you set up the camera lens in AE?

Community Expert
July 25, 2018

The camera setup is just simple math. If you shot the footage with a pretty normal lens I'd pick the 50mm preset, depth of field off and two node camera:

Note the zoom value. That is the distance this camera will be placed from comp center when it is created.

Now set up your composition. In this example, the sample footage layers (Image 1, 2, 3 & 4) are all 2X larger than the composition. Make all layers 3D, reveal the zoom value of the camera by pressing A twice, select it and copy it. Next, select footage layer 2, 3 and 4, reveal the position property by pressing P, double-click on the Z value and paste the zoom value to the Z position. Now go to footage layer 3, double-click the Z value, press the right arrow key to move to the end of the z value and type *2 to multiply the value by 2. Repeat for Image 4 except type *3. This will line your images up in z space so that the images will be at an effective 100% scale when the camera moves, in this case, 2666.6667 pixels from the next layer. Add a null and parent all of the Image layers to the null then animate the position of the null. The setup would look like this:

As long as your images are properly sized and lined up so that when the camera is at the effective 100% scale position you can just cut set the out point for each successive layer at the match point and the transition will be seamless. You can use a blend mode to precisely line up each successive image. When you get the images to match up return the blend mode to Normal. The comp would look like this before you changed the blend mode back to normal so you could see that the images are lined up.

Because you always cut at an effective 100% scale and the images perfectly line up at that point you should only need 2 position keyframes and an easy ease applied to make a nicely timed zoom in on the shot. Just back the null up until the first image fills the frame to start.

It's all pretty simple once you have the footage prepared. Getting the layers properly lined up in Z space so the scale is accurate is just simple arithmetic and lining them up in X and Y is simplified by temporarily using blend modes.

Mylenium
Legend
July 24, 2018

So what do I have to do ?

Plain and simple: Use another tool. This is beyond what you can do with any of AE's built-in trackers. What you need is something like SynthEyes or Nuke that allows manual placment of track markers, multiple solves and then tools to correlate the markers in different shots for a full on scene/ shot reconstruction.

Mylenium

Participating Frequently
July 24, 2018

isn't it a little bit too radical ? As I only have 2 d tracking (and resizing) I am sure there is a workaround

In Premiere what I started to do was to cut every shots appart,to put each one on a different layer then to juxtapose the first frame (of the shot) on the last frame of the previous one and by transparency resize and center it ...as you guess it's really time consummng and there always some small scale percentage issues that mess everything....so it's almost working.

I am not  an expert but I guess it will be simplier and more effective to do it on AE, isn't it ?

Let' s say I adjust the null object manually on track motion with scale....once it's done what do I do in AE to make it centered on one point and resizing it automatically  ?

Kyle Hamrick
Community Expert
Community Expert
July 24, 2018

It's possible you could use the Warp Stabilizer to help unify these shots, but depending on how different they are, you may just need to do it manually.

The "Difference" blending mode is excellent for this kind of stuff. You could place each shot atop the previous one, set to Difference, and you'll be able to see the adjustments needed to make it match perfectly. It's likely even an automated tool will only get you close, and you may need to take this approach to make it perfect.