Next steps, or first steps - drone shot remove

I’ve got a drone shot (not 360) that I want to remove all the vehicles from and thought it would be a straightforward remove.

This is a low-res version just so you can see the shot. I’m working in 4k.

Unfortunately the track on the moving red car goes completely out of whack in the first few seconds.

I thought perhaps I should stabilize the shot first and was able to get a beautiful stabilized view in Mocha by tracking one of the buildings but I’m kind of lost at that point.

Was stabilization the right way to go or should I have gone down another path?

Is there a good description or set of existing tutorials that I can follow to get from the starting shot to one with no vehicles?

I’m using Resolve but can do all the work in Mocha if that would make make the remove more straightforward.

Hi there!

You do not have to stabilize this, unless you want to! If you just need to remove the cars, the better approach would be to use some mix of Remove module & Megaplate techniques. I’ll explain in more detail below

Remove module can be handy for removing the red car specifically. It analyzes the shot, then automatically fills the hole where the unwanted object was, by taking patches from other frames. Here’s the tutorial that covers that how that works Mocha Pro Tips: How to Remove a Moving Object - YouTube

But here you also have a lot of static cars. Remove module would not be able to create a patch for them, because they are static and there’s nothing to restore from. So you just have to paint the Clean Plate manually in some other software (e.g. Photoshop or Silhouette). This is where you would want to use Mega Plate! Track the whole ground, generate a Mega Plate, use it for painting out the vehicles, then feed it back into Mocha into Remove module as a Clean Plate! Here’s a link to step by step guide 21 Using Megaplates for Remove [Mocha Essentials] - YouTube

Thank you Elizabeth.

I managed to track the car to the end and started to do the remove. It went about 1/8th the way and then threw up an error dialog containing just “Unknown error”

The log contains

Dec 19 18:56:24 (mochaui) Successfully initialized OpenCL device: NVIDIA GeForce RTX 3060
Dec 19 18:57:14 (mochaui) [LCAM_Exception] Warn: ===> Unknown error
Dec 19 18:57:14 (mochaui) [LCAM_Exception] Warn: File: :0:
Dec 19 18:57:14 (mochaui) [LCAM_Exception] Warn: Context: Unknown error
Dec 19 18:57:14 (mochaui) [LCAM_Exception] Warn: Message: Unknown error
Dec 19 18:57:14 (mochaui) [LCAM_Exception] Warn: <===
Dec 19 19:00:54 (mochaui) [LCAM_Exception] Warn: ===> Unknown error
Dec 19 19:00:54 (mochaui) [LCAM_Exception] Warn: File: :0:
Dec 19 19:00:54 (mochaui) [LCAM_Exception] Warn: Context: Unknown error
Dec 19 19:00:54 (mochaui) [LCAM_Exception] Warn: Message: Unknown error
Dec 19 19:00:54 (mochaui) [LCAM_Exception] Warn: <===
Dec 19 19:00:54 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:00:57 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:00:57 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:00:57 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:00:57 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:00:57 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:00:57 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:00:57 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:00:57 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:00:57 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:00:59 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:01:06 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:01:22 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:03:05 (mochaui) Mocha shut down (mpp-ofx)
Dec 19 19:03:05 (mochaui) [RepriseLicenseManager]: checking in bundleao-bcc-mocha-sapphire-r1
Dec 19 19:03:06 (mochaui) SentryCrashReporter: closed

Though I was able to close the Mocha window at this point, Resolve was completely hung with a solid white screen and had to be killed through task manager.

I’m going to reboot and try again to see if the GPU driver’s in a bad state

Tell me how it goes.
Was that 1/8th of the remove successful and looking fine?

After a reboot I got almost to the end and it died again with

Dec 19 19:09:38 (mochaui) ***************** GPU Settings ******************
Dec 19 19:09:38 (mochaui) Texture RAM Allocation: 1024
Dec 19 19:09:38 (mochaui) VSync: On
Dec 19 19:09:38 (mochaui) Offscreen Buffers: On
Dec 19 19:09:38 (mochaui) GPU: On
Dec 19 19:09:38 (mochaui) Used for: Track Remove ImageProc
Dec 19 19:09:38 (mochaui) GPU Selected: NVIDIA GeForce RTX 3060
Dec 19 19:09:38 (mochaui) Unsupported: Off
Dec 19 19:09:38 (mochaui) *************************************************
Dec 19 19:09:39 (mochaui) TaskManager: checking internal task status (0)
Dec 19 19:09:40 (mochaui) Using at most 80 percent of system memory
Dec 19 19:09:40 (mochaui) Checked for software updates: Success
Dec 19 19:10:23 (mochaui) Successfully initialized OpenCL device: NVIDIA GeForce RTX 3060
Dec 19 19:28:50 (mochaui) SentryCrashReporter: logged exception [type: “Exception: std::exception”, value: “STL: OpenGL error: ‘0x505’”]
Dec 19 19:28:50 (mochaui) [std::exception] Fatal: STL: OpenGL error: ‘0x505’
Dec 19 19:28:59 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:28:59 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:00 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:01 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:01 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:01 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:01 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:01 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:01 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:01 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:01 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:01 (mochaui) GLFrameBufferObject: failed to construct FBO, error:GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Dec 19 19:29:06 (mochaui) Mocha shut down (mpp-ofx)
Dec 19 19:29:06 (mochaui) [RepriseLicenseManager]: checking in bundleao-bcc-mocha-sapphire-r1
Dec 19 19:29:06 (mochaui) SentryCrashReporter: closed
Dec 19 19:29:13 (mochaPro_plugin) Using at most 80 percent of system memory
Dec 19 19:29:16 (mochaPro_plugin) Successfully initialized OpenCL device: NVIDIA GeForce RTX 3060

I think I’ll try again using Mocha standalone rather than the plugin version.

Each time things looked really good up until the error appeared. Near-perfect removes.

[edit, actually maybe I’ll try the disabling GPU first before going standalone]

That might be a known bug, but I need to clarify one thing. Do you use Preprocessing? If so, does the issue remains if you turn it off?

Could you please attach the full log.txt file so that can be shared with the team.

Thanks Elizabeth.

I’m not doing any preprocessing.

Running that clip through standalone mocha resulted in it finishing. It did manage to use about 110GB out of my 128GB. When running from Resolve it quickly shot up to 127G and then fluctuated between that and 123G before failing.

Here’s the full log file.

mocha.zip (220.8 KB)

1 Like

Hm, filling 110 GB of memory sounds like a lot. Glad that you was able to achieve the remove in Standalone. Thanks for sharing the log!