Removing unwanted objects, moving people, or burnt-in captions from videos usually requires either expensive $35/month SaaS subscriptions or hours of manual keyframing. Most affordable tools just apply a blurry smudge patch that breaks whenever the camera moves. I built GoatScrub (Magic Eraser Pro) to bring studio-grade 3D Optical Flow video inpainting and 2-Pass Pattern Repaint to creators, e-commerce sellers, and everyday users on a fair, pay-as-you-go basis—right from the browser.
What it does
GoatScrub cleans up both photos and HD videos in seconds: • 3D Dynamic Video Inpainting: Draw a bounding box around a moving object, person, or mic on a single frame, and the AI tracks it across time and space to reconstruct the true background behind it. • Per-Frame Subtitle & Overlay Removal: Box a caption zone once, and dynamic OCR + stroke isolation automatically removes changing text across the video. • High-DPI Image Pattern Repaint: Erases unwanted people, shadows, blemishes, price tags, and text from photos while weaving back natural textures (like fabric, skin pores, or foliage) without blur. • Multi-Box Timeline & Stroke Preview: Lets users stack overlapping boxes with 0.01s precision and inspect neon stroke detections before running a render. • 1-Wallet Chrome Extension: A Manifest V3 browser extension synced via Google OAuth so users can launch the studio and share credits across web and desktop browsers.
How we built it
• AI & Computer Vision Pipeline: Built on dedicated NVIDIA H100 and 48GB L40S GPUs via Modal. For video, it combines RAFT 3D Optical Flow with ProPainter Recurrent Transformers and a Foreground-Masked NCC + Sobel tracker. For images, it pairs MobileSAM segmentation and EasyOCR with a 2-pass coarse-to-fine Big-LaMa and Poisson texture synthesis pipeline. • Frontend & Browser Extension: Built a responsive web studio with an interactive frame-by-frame timeline scrubber alongside a Manifest V3 Chrome Extension (identity and storage permissions). • Backend, Auth & Billing: Powered by Supabase for real-time usage logs and 1-wallet synchronization across Web and Chrome, integrated with Google OAuth and Dodo Payments for instant micro-credit top-ups.
Challenges we ran into
• Preventing Blurry Video Artifacts: Standard 2D frame-by-frame diffusion causes flickering across video frames. Integrating bidirectional 3D optical flow allowed the model to borrow real uncovered background pixels from past and future frames. • Fair GPU Billing & Crash Protection: Video inference on 48GB GPUs is compute-intensive. I engineered a post-render billing architecture where credits are only deducted at 95% completion after the final MP4 is verified—ensuring users never lose credits if a node times out. • Overlapping Multi-Box Timelines: Built a timeline merging algorithm so overlapping bounding boxes on the same video never double-bill the user for shared seconds.
Accomplishments that we're proud of
• Achieving commercial-grade 3D video inpainting and high-DPI image restoration accessible directly inside a browser popup or web tab. • Shipping a unified 1-wallet system that syncs free daily quotas and non-expiring credits seamlessly between goatscrub.com and the Chrome Web Store extension. • Maintaining strict privacy with ephemeral GPU processing and automatic 24-hour cloud media deletion.
What's next for GoatScrub
• Adding custom credit sliders and team workspaces for agencies. • Expanding automated 1-click presets for e-commerce batch catalog cleanup and multi-track audio/video workflows.