Removing objects from the background

JohnJ wrote on 1/24/2016, 12:09 PM
I have a clip of a train moving across a scenic background. In this background there is an object I have removed using a bezier mask. I have created a lower video track with something more suitable which appears "through the hole". The problem I have is that when the train passes this point the infill is superimposed on the train. I don't know if it is possible to overcome this but I would be grateful for any advice. As this is my retirement project and I do not have great technical knowledge it may be too complex for me but I'm willing to give it a shot.


john_dennis wrote on 1/24/2016, 12:50 PM
Have you considered splitting the clip into three segments using the "s" key?

Segment 1 = Mask Present

Segment 2 - Delete Mask at the first frame where the train appears at the edge of the unwanted background item.

Segment 3 = Mask Present at the first frame where the train leaves the edge of the unwanted background item.

I'm sure you could accomplish this by key frames but it would take longer to describe.

My main system:
Motherboard: ASUS ProArt Z790-CREATOR WIFI
CPU: Intel Core i9-13900K - Core i9 13th Gen Raptor Lake 24-Core (8P+16E) P-core Base Frequency: 3.0 GHz E-core Base Frequency: 2.2 GHz LGA 1700 125W Intel UHD Graphics 770 Desktop Processor - BX8071513900K
GPU: Currently intel on-die video adapter
RAM: CORSAIR Vengeance 64GB (2 x 32GB) 288-Pin PC RAM DDR5 5600 (PC5 44800) Desktop Memory Model CMK64GX5M2B5600C40
Disk O/S & Programs: WD Black SN850 NVMe SSD WDS100T1X0E - SSD - 1 TB - PCIe 4.0 x4 (NVMe)
Disk Active Projects: 1TB & 2TB WD BLACK SN750 NVMe Internal PCI Express 3.0 x4 Solid State Drives
Disk Other: WD Ultrastar/Hitachi Hard Drives: WDBBUR0080BNC-WRSN, HGST HUH728080ALE600, 724040ALE640, HDS3020BLA642
Case: LIAN LI PC-90 Black Aluminum ATX Full Tower Case
CPU cooling: CORSAIR - iCUE H115i RGB PRO XT 280mm Radiator CPU Liquid Cooling System
Power supply: SeaSonic SS-750KM3 750W 80 PLUS GOLD Certified Full Modular Active PFC Power Supply
Drive Bay: Kingwin KF-256-BK 2.5" and 3.5" Trayless Hot Swap Rack with USB 3
Sound card: Realtek S1220A on motherboard. Recording done on another system.
Primary Monitor: Asus ProArt PA248q (24" 1920 x 1200)
O/S: Windows 10 Pro 10.0.19045 Build 19045

Camera: Sony RX10 Model IV

Tim Stannard wrote on 1/24/2016, 4:54 PM
I think you've made it a little more difficult on yourself by putting the "main video" with a hole on the upper track.
Whenever I do this I do the reverse: Put your "main video" on the lower track and the piece you want to "cover" the blemish on the upper track - so rather than filling a hole that you created with a mask, you are "papering over" the "blemish" with a bit of "paper" that you have created using a mask.
It then becomes fairly simple to keyframe the shape of that mask as the train rolls into it, then move the mask (or make its opacity 0%) whilst the train is over the "blemish", then turn up the opacity and keyframe the mask again once the train has passed.
Rory Cooper wrote on 1/26/2016, 4:45 AM
use a difference mask. take a snap edit remove glitch = use this as a backdrop

Tim Stannard wrote on 1/26/2016, 10:18 AM
Great "how to" by Ron Scott (and it is a "how to" rather than an explanation) Thanks for the link. Not sure about your suggestion though if I've understood correctly - a still image for the backdrop?
Rory Cooper wrote on 1/27/2016, 12:35 AM
yes you can use a still that has been edited as a back drop where the camera was locked down and you want to remove something in the background. so much depends on your original clip.
Boris Red does the same and in older versions of Vegas works on the timeline as a plugin
has a motion key that will remove objects from the clip but the image behind is static
behind the mask
Grazie wrote on 1/27/2016, 2:59 AM
I've used the still image technique to eradicate a visually distracting, annoying plastic vertical blind that was gently flexing due to a draught. Very simple but effective.

JohnJ wrote on 2/1/2016, 5:05 AM
Thank you everybody, I managed to do it successfully