Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Tracking with Mocha for screen replacement.

Explorer ,
Feb 25, 2018 Feb 25, 2018

Hi,

I'm trying to track below with Mocha. I've seen tutorials and nothing seems to be as smooth as Iv'e seen on you tube.

I'm curious on what certain lines are.  I know the x-spline (Red) and "show planer" (Blue) and try to understand what they do. I'm trying to replace the screen with an image. What would be the best way to track this in mocha?

Please help! I have to turn this in tomorrow with out hours of constant correction.

Capture.JPG

4.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 26, 2018 Feb 26, 2018

Take a look at this tutorial. It quickly shows you how to use a track matte in Mocha. This is the technique you should be using for this shot. I should emphasize that each shot presents different problems and each problem may require a different technique.

I tried your shot and got a good result with the following setup. Added a spline around the entire screen keeping it close to the edges of the computer. Added a second spline to the screen layer inside the frame that was just smaller than the s

...
Translate
Community Expert ,
Feb 25, 2018 Feb 25, 2018

The Red lines are the shapes where mocha looks for transformation (tracking data). The planar surface (blue lines) is the corner pin data. By default Mocha assigns the movement of the shape tracking data to the planar surface, but you can change the planar surface movement inside the Adjust Track tab.

Anyway, I recommend you to learn the basics of Mocha. Borisfx.com has a lot of tutorials in their website. It is a very recommendable resource.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 26, 2018 Feb 26, 2018

There is no way that a single spline around the screen and the girl is going to give you a good track. There are too many planes in the shot.

You first have to track the girl. You can just create a spline around her and manually animate the spline. Then you lock the spline for the girl.

Then you should create a spline for the surface of the computer. If the image changes on the computer you will need to eliminate the screen so a good approach would be to put two or three splines around the edge of the computer using the add spline tool. If the camera moves a lot you should also track perspective. When you get a good track you adjust the surface to fit the screen and check that.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Feb 26, 2018 Feb 26, 2018

What Rick said but essentially you need to look for tutorials to track an object with something in the way that's moving (the girl).  By tracking her, you will "exclude" her from tracking when you track the screen since the screen is what you want to track.

Eric

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 26, 2018 Feb 26, 2018

Hi all

Thank you for your replies! I will check these out and report back. I have tracked the girl and I'm now starting to get drift towers the end on the bottom right. (I will check out the keywords looking for that type of tutorial. Just a few questions before I go forward.

So if the mask around the girl is tighter will the track be more accurate? Also when adding more planes, would I use "Add more x-splines" the (X-) button?

Also would adding more tracking data planes be more useful?

Thank you.

Capture.JPG

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Feb 26, 2018 Feb 26, 2018

It's hard to know just how much movement you have but assuming very little as she's working there, to exclude her is just a simple loose matte around her to ensure she is not considered when you track the screen.  After that, track the screen.

Now, this could be complicated if there is some drastic movement so I'm basing it on what I see.

Obviously, you have a second task to mask or roto her out in order to replace the screen.  There are sure to be differing methods, using Mocha or just rotoscoping in AE, all depending on the level of movement.

Do you have a video link to get a better understanding?

Eric

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 26, 2018 Feb 26, 2018

Thanks Eric, I will upload now. give me a few mins and Ill be right back.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 26, 2018 Feb 26, 2018

If you can give us the stock number for that clip I can show you how I would set up the tracking. I looked for it for a couple of minutes but there are thousands of girl with computer stock clips. Just post a link or the full clip number. I only know it is Adobe Stock 868____

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 26, 2018 Feb 26, 2018

https://youtu.be/A81EZ9QqdFA - That is uploaded to my youtube account.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 26, 2018 Feb 26, 2018

I didnt realize I could give a stock ID. I have posted a link for the clip. Its unlisted. So you would have to let me know if that link works. Standing by.

Thank you for all your help fellas.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Feb 26, 2018 Feb 26, 2018

I didn't know it was stock footage to begin with.

But, I see what's going on now, feels like it's on a curved slider, orbiting around a bit.  Smooth motion but I'd approach it myself in the manner I described above, then try something else if that didn't work.  For me:

1.  Track girl to exclude from screen track.

2.  Track the screen.

3.  Roto scope or mocha mask the girl out.

4.  Insert the screen after #2 or #3.

Eric

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 26, 2018 Feb 26, 2018

Hmmmm, okay ill try and smooth the mask around the girl again and pay more attention to the mast as its tracking her. If that is still rough, I will then try and rotoing her out. I will report back.

Thanks everyone for your help!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 26, 2018 Feb 26, 2018

Also what about the adjust track? Ive tried to correct the drift, but there I end up using multiple reffs. Should use just one reff or keep adding new reffs?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 26, 2018 Feb 26, 2018

Take a look at this tutorial. It quickly shows you how to use a track matte in Mocha. This is the technique you should be using for this shot. I should emphasize that each shot presents different problems and each problem may require a different technique.

I tried your shot and got a good result with the following setup. Added a spline around the entire screen keeping it close to the edges of the computer. Added a second spline to the screen layer inside the frame that was just smaller than the screen. Added a new layer for the girl. Manually tracked the girl using just a few keyframes because it was faster than tracking her. Set view matte, edited matte color and set the matte mode for the bottom layer (screen) to track matte. I got a decent track with only 2 keyframes. Checked it using the 16 X 16 grid.

Here's what the tracking setup looks like:

Screen Shot 2018-02-26 at 1.51.29 PM.png

You will also need to roto the girl so you would probably be better off tracking the girl and exporting a matte for her, but that is another lesson.  You can find good tutorials on the Borris FX site that will help you create a decent matte for the girl. If you have a reasonable machine and have the technique down the Mocha work will probably take you about an hour.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 26, 2018 Feb 26, 2018

Stock ID - AdobeStock_86811800

Thank you Rick.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 27, 2018 Feb 27, 2018

Hi Rick,

I have imitated what you have done and it seems to be slipping around hereCapture.JPG

and toward the end its really bad hereCapture.JPG

Could the mask around the girl be throwing it off?

Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 27, 2018 Feb 27, 2018
LATEST

Hi Rick,

I have solved the problem using your technique! ! Thank you for your help, and your time. Now I can complete this project.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines