Image is stretched after applying tracking data in After Effects

I am tracking a super easy track of a guy holding up a clearly defined sign. Mocha has zero problems tracking it - no drift, etc…
The problem comes when I paste the tracking data (Corner Pin) into the layer I specified in After Effects. I have made sure that my comp layer is the exact same size and aspect ratio.
However, it always “stretching to fit” I am having to compensate for this by “squeezing” my graphic so that it displays correctly. It seems odd and incorrect that you need to do this.
The footage I am working with is 1280x720 square pixel.
What am I missing?

Ross,

I uploaded the files and sent you an email as well.

Thanks for taking a look at this.

Ian

I am tracking a super easy track of a guy holding up a clearly defined sign. Mocha has zero problems tracking it - no drift, etc…

The problem comes when I paste the tracking data (Corner Pin) into the layer I specified in After Effects. I have made sure that my comp layer is the exact same size and aspect ratio.

However, it always “stretching to fit” I am having to compensate for this by “squeezing” my graphic so that it displays correctly. It seems odd and incorrect that you need to do this.

The footage I am working with is 1280x720 square pixel.

What am I missing?

The two comp setup yields the same results. The ONLY way I have been able to get rid of the squeezing, is to go inside the pre comp and scale it (in my case) on the x axis. In effect squeezing the image in.
The thing I don’t understand, is why when I paste the keyframes from the clipboard, it distorts the image. Yet, I can take the exact same comp, apply the corner pin effect to it inside of AE, and I get no no distortion?
It is leading me to believe there is an issue with the generated corner pin effect out of Mocha.

The two comp setup yields the same results. The ONLY way I have been able to get rid of the squeezing, is to go inside the pre comp and scale it (in my case) on the x axis. In effect squeezing the image in.

The thing I don’t understand, is why when I paste the keyframes from the clipboard, it distorts the image. Yet, I can take the exact same comp, apply the corner pin effect to it inside of AE, and I get no no distortion?

It is leading me to believe there is an issue with the generated corner pin effect out of Mocha.

Ross,
I uploaded the files and sent you an email as well.
Thanks for taking a look at this.
Ian

This is a common question, I just handled a similar query on CreativeCOW:
http://forums.creativecow.net/thread/241/1343
Hope this helps,
J-P

This is a common question, I just handled a similar query on CreativeCOW:

http://forums.creativecow.net/thread/241/1343

Hope this helps,

J-P

Possibly the PAR settings in mocha are not set to HD?

If you would like to post your AE project, source file and mocha project to our FTP, I can take a look.

It is unlikely that the issue is with mocha. More often than not, it is some kind of mis-match in settings.

ftp.imagineersystems.com
user: mocha
pw: 12345678

Please email direct if you do post the footage:
rosss@imagineersystems.com

Possibly the PAR settings in mocha are not set to HD?
If you would like to post your AE project, source file and mocha project to our FTP, I can take a look.
It is unlikely that the issue is with mocha. More often than not, it is some kind of mis-match in settings.
ftp.imagineersystems.com
user: mocha
pw: 12345678
Please email direct if you do post the footage:
rosss@imagineersystems.com

Ian,
When I take the footage and your track into AE and paste it onto a
solid, the track lines up perfectly, confirming the track data from
mocha is dead on.
You have a text element in your precomp that is at normal aspect,
while the sign you tracked is longer and thinner than the comp aspect.
This is why you see distortion on the text layer.
When I removed the mocha track data and simply apply the AE Corner Pin
and manually adjust, I get the same results. The solid is tracked
properly and the text is distorted due to the aspect.
If your issue is that the text appears distorted, this is because the
aspect of the actual sign is different than the composition and
layers. The solution is to scale the text layer (before the pre-comp)
to adjust for the distortion. This is normal.
Another way to do this is to use the the Align Surface method:
Create your text layer and coner pin it in AE to the exact
relationship on the sign that you like. No keyframes.
Precomp that layer.
Back in mocha, select the layer and in upper left under layer controls
“align surface”
Make sure that you do this on the same frame that you positioned your
text. I would use frame 1 here.
Now export the track data.
This is an alternate method and quite useful if you want to track
something in context such as paint or a clean plate that is already
positioned in perspective.
Lastly, you canlook into the Red Giant Warp plug-in that has source
and target pins that allow manual interaction to deal with source
inserts that are at different aspects. Not at all necessary, but quite
a useful plug-in.
I hope this helps!
-Ross

Ian,

When I take the footage and your track into AE and paste it onto a
solid, the track lines up perfectly, confirming the track data from
mocha is dead on.

You have a text element in your precomp that is at normal aspect,
while the sign you tracked is longer and thinner than the comp aspect.
This is why you see distortion on the text layer.

When I removed the mocha track data and simply apply the AE Corner Pin
and manually adjust, I get the same results. The solid is tracked
properly and the text is distorted due to the aspect.

If your issue is that the text appears distorted, this is because the
aspect of the actual sign is different than the composition and
layers. The solution is to scale the text layer (before the pre-comp)
to adjust for the distortion. This is normal.

Another way to do this is to use the the Align Surface method:

Create your text layer and coner pin it in AE to the exact
relationship on the sign that you like. No keyframes.
Precomp that layer.
Back in mocha, select the layer and in upper left under layer controls
“align surface”
Make sure that you do this on the same frame that you positioned your
text. I would use frame 1 here.
Now export the track data.

This is an alternate method and quite useful if you want to track
something in context such as paint or a clean plate that is already
positioned in perspective.

Lastly, you canlook into the Red Giant Warp plug-in that has source
and target pins that allow manual interaction to deal with source
inserts that are at different aspects. Not at all necessary, but quite
a useful plug-in.

I hope this helps!
-Ross