How do you track a mask???

I have TrackX and some of Pixel Film Studios Tracking plugins but none of them seem to simply let me track an object and assign a MASK to that tracking data. I can do this by hand but it is time consuming and inaccurate and jumpy, not happy at all with the results and yet it is pretty simple. When you do a track manually using keyframes, FCPX does not seem to let you control the ramp speed of the track so it's movement never matches that of the camera movement that you may be trying to mimic. Tracking frame by frame is the only way I see to overcome this and I am not doing this manually when I know it can be tracked. So how do I go about doing this or am I missing something?


In this clip I am trying to get the name of the ranch to reveal itself as I come up over the roof line. Yu can see that the name is not appearing in concert with the roof line. I only used 2 keyframes, one at the start and at the end. If you use more than 2 keyframes then you get this constant speed ramping motion in the track of the mask.


https://youtu.be/6H630mqN_S4


Many thanks,

Houston



Posted on Jan 7, 2020 6:03 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 7, 2020 11:55 PM

This is a very difficult clip to mask. I tried tracking the several points in the scene and not one of them would take past the appearance of the sun. Manual tracking is made difficult for several reasons: the roof line is not horizontal (and wavers slightly). It is also difficult because at a critical time in the transition, you lose contrast between the roof line and the background landscape. (The appearance of the setting sun really messed up Motion's tracker.)


Try using Draw Mask on the Title (set Invert Mask). Make it four corner — two points at the bottom — two points for the roof line. Set a keyframe at the point before the text is supposed to appear. Move the playhead to the point at which the text is fully revealed. Move the playhead to about halfway between the keyframes and line up the top two points across the roof line. Then, as needed, do "half-betweens" to make any fine tunings to the top two points (I think you'll find that this goes pretty quickly). I believe this will be the fastest way to mask this particular scene.


As a tip: Apply some kind of Contrast or Color correction (temporarily) to increase the contrast of the roof line (increasing the saturation might help). Create your Mask, then turn off the "correction". A crisp edge will be easier to mask.


Hope this helps...

6 replies
Question marked as Top-ranking reply

Jan 7, 2020 11:55 PM in response to htown

This is a very difficult clip to mask. I tried tracking the several points in the scene and not one of them would take past the appearance of the sun. Manual tracking is made difficult for several reasons: the roof line is not horizontal (and wavers slightly). It is also difficult because at a critical time in the transition, you lose contrast between the roof line and the background landscape. (The appearance of the setting sun really messed up Motion's tracker.)


Try using Draw Mask on the Title (set Invert Mask). Make it four corner — two points at the bottom — two points for the roof line. Set a keyframe at the point before the text is supposed to appear. Move the playhead to the point at which the text is fully revealed. Move the playhead to about halfway between the keyframes and line up the top two points across the roof line. Then, as needed, do "half-betweens" to make any fine tunings to the top two points (I think you'll find that this goes pretty quickly). I believe this will be the fastest way to mask this particular scene.


As a tip: Apply some kind of Contrast or Color correction (temporarily) to increase the contrast of the roof line (increasing the saturation might help). Create your Mask, then turn off the "correction". A crisp edge will be easier to mask.


Hope this helps...

Jan 8, 2020 3:01 PM in response to htown

I don't use TrackX (and won't!) but if I understand how it's used, let me try to make a suggestion. (This is assuming that once a track is made, it is not retracked... if you know what I mean).


If you can get a Shape (Shape Generator) to track the roof, particularly the roof line, you can turn it into a Mask. Using The Simple Tracker, try and get a Rectangle Shape to track the roof. Then, if you Add your Text under the Shape generator and apply Compositing > Blend Mode > Silhouette Alpha to the shape generator, it should reveal the text as the shape moves with the roof. Then, select the Text and the Shape generator and make a Compound Clip. Will that work?? [Silhouette and Stencil blend modes "cut" all the way through the storyline no matter how many layers of objects are used, but they can be "stopped" within a compound clip.) Depending on how TrackX really works, you may need to include a duplicate of the original video clip with the compound setup. (Hope I'm making sense here...)

Jan 8, 2020 6:40 AM in response to htown

Tracking and masking isn't really a strong point for FCP, With this shot my immediate thought was Mocha/Mocha AE. I live primarily in Final Cut, but I often jump into After Effects whenever I need to do anything beyond cutting, color correction and transitions.


Your best bet to accomplish this in FCP is doing it by hand. It's time consuming but since it's a short clip, it shouldn't be too bad...

Jan 8, 2020 10:51 AM in response to htown

If you had a distinctive contrast between the roof and the background, a Color Mask (chroma key) would have been ideal, and easy, requiring no tracking or keyframes whatsoever. But the roof color and the background landscape practically blend at one point.


Let us know if you have better luck in After Effects, but I don't see how it would be possible with this particular clip.

Jan 8, 2020 8:22 AM in response to dre2k25

As I had mentione in my OP, trying to do this by hand does not produce good results as FCPX does not allow you to control the speed. I am not sure how to really say waht i am talking about but it is much like you move something across the screen with keyframes and if you want, you can tell FCPX what type of transition you want between keyframes, Linear or Smooth. You don't get this option when moving a mask by manually when using keyframes and it seems to be stuck in SMOOTH so you get this horrible speed ramp effect which in this case is not acceptable to me. So that means I would have to keyframe EVERY frame and its not worth it to me.


This is something I am exploring and do not intend on doing it in this particular project I'm thinking more of future projects and trying to reduce my time editing and looking for a more automated way to do this.


I appreciate the input. Looks like I will need to jump into After effects.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do you track a mask???

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.