Skip to main content
heart2hack
Participating Frequently
May 21, 2019
Question

camera tracking and roto scoping

  • May 21, 2019
  • 3 replies
  • 731 views

Hello guys.

I did roto scoping and remove background form the video, in this video I want to place the flare video, so the flare move along the camera mements. I tried eveything, but don't know what I am doing wrong.

I am new to camera tracking, so I need help, to accomplish the perfect result. currently, I am getting this, when I render the video.

Video rendered.mp4 - Google Drive

please check the video, I rotoscope the video, then alpha mate it, then put the original video in the background, so all the details come again in the vidoe. then I place the flare footage between them, so that flare video display at the edge of the sea. but I am getting bad results.

please guide me what I am doing wrong.

thank you.

regards.

hasan.

This topic has been closed for replies.

3 replies

heart2hack
Participating Frequently
May 21, 2019

I am creating a screencast of how I layered the after effect and how it is not working for me.

give me a moment, please. thank you for your help

I hope to resolve the issue with perfect output, with the help of you guys.

also, the camera moves a lot and transition from one location to another, I am losing tracking point or location is that shot. I tried mocha AE too, to track and paste the position keyframes to a null and then parent the flare video to that null, so its position changes, but still no luck, the flare video do strange drops and jumps in the final video.

thank you.

here is the video of my after effect project comps and placement of footages.

https://drive.google.com/file/d/1KvBwY-uCWVp-8gkjlXgaoMVcwZPM1Fjk/view?usp=sharing

Community Expert
May 22, 2019

Your roto work is fine, and the layering is OK. What you need to do is track the movement of the horizon then add that movement to your fireworks layer.

Unfortunately, you shot probably will not Camera Track. The solution I came up with is:

  1. Split the clip twice, once where you want to see the fireworks come into the frame, then when the building obscures the sky
  2. Name the layer that is going to have the fireworks visible "stabilized" then motion stabilize that layer. The camera stays fairly level so I picked some spots as far away as possible that I thought would track, then ran the tracker until the spot became unusable, then I held down the Alt/Option key and found another point that looked like it would work. Here's what the track looks like:

    You can see the feature region around some white buildings, and you can also see where I moved the feature region to the building and then back again so I could track from the start to the end of the stabilized layer.
  3. When I applied the tracker to the shot the horizon stays put so the shot moves out of frame like this:

    But that's ok because the next step fixes the problem.
  4. Now you add a null and your Fireworks layer to the comp, then move to the first frame of the stabilized layer, position the fireworks layer somewhere close, then you parent both the fireworks layer and the stabilized layer to the null.
  5. To remove the motion stabilizing and add the movement in the shot to the fireworks layer select the null and press P to bring up the position property, then select the Stabilized layer and press A to bring up the anchor point, then Alt/Option + Click on the Position stopwatch to start an expression and drag the pickwhip to the Anchor Point of the Stabilized layer. This will remove the stabilization and add the motion to the fireworks layer.
  6. The next step is to move to an appropriate point in the timeline and fine tune the position of the fireworks layer and set position and rotation keyframes. Now you can move back and forth in the timeline and make a couple of tweaks to position and rotation to keep the fireworks layer stable. The final comp looks like this:
    I just put a red solid in the shot and drew a few masks to represent the fireworks. It only took a few keyframes to keep the layer lined up with the horizon.
  7. All that is left is to put the rotoscoped layer on top of this whole comp so your actor and the building are in front of the fireworks.

There are about a dozen ways to approach this shot. This one only took me about 15 minutes. It still needs some tweaking and the roto layer, and some better fireworks but this shows you a viable workflow.

You'll want to also add some reflections on the building. Any layer you parent to the null will follow the camera move.

Whatever workflow you choose to use the techniques are all the same:

  • Trim the shot so you are only doing roto and tracking on the frames that need it
  • Motion track the scene to give you position data that you can use to lock the effects layer to the footage
  • Apply the tracking position data to the effects (fireworks layer)
  • Create a mask for the foreground elements
  • Layer the composite

I hope this helps.

heart2hack
Participating Frequently
May 22, 2019

would you kindly connect with me?

my skype: heart2hack

name : hassan gul

let me know, I need this work to be completed ASAP.

thank you for the help, please connect with me, so we can talk.

Community Expert
May 21, 2019

The first thing to do is trim that shot so you were only tracking the part of it that will have the effect. You can just split the lawyer at that point.

I would probably motion stabilize the clip instead of camera track it. If you motion stabilize using a point on the horizon you can just add the fireworks layer as a 2D layer. Add a null, tie the position of the null to anchor point to the motion stabilized layer with a pickwhip expression, then parent the fireworks layer and the stabilized layer to cancel the stabilization and add the camera move to the fireworks layer.

If I get a little time this afternoon I can post some screenshots of how I would do it. Because the horizon is so far from the camera it’s going to be really difficult to get a good camera track and place the layer in the right place.

heart2hack
Participating Frequently
May 21, 2019

Hi there.

After applying the method you posted to me. I just get this result, check the video please,

https://drive.google.com/file/d/1L75NcG7vOgPjUE8F-ue3PWGGDtVAOpWn/view?usp=sharing

the background stays on one position and moves with the camera movement (position changes). I want the footage (Camera) to move, but the flare should look real, like stick to its own place and when the camera moves the flare should hide like in real life when camera position changes the background changes.

how can I do that?

thank you.

Mylenium
Legend
May 21, 2019

Simply seems like you are not placing the fireworks layer correctly in your 3D comp. Impossible to say without actual screenshots of your workspace.

Mylenium

heart2hack
Participating Frequently
May 21, 2019

all the comps are 2d, It is overlay over the original footage and below the roto footage. please checkout the video.

thank you.