Algorithm Overview and Methodology
Removing a watermark from an encoded video is essentially an inverse image problem: you are trying to reconstruct pixel values that were overwritten by a graphic layer (a logo, timestamp, or username).
| Criteria | FFmpeg Delogo | OpenCV Inpaint (Telea) | Gaussian Feather Blur |
|---|---|---|---|
| Primary Mechanism | Bilinear Spatial Interpolation | Fast Marching Method (FMM) | Pixel Kernel Convolution |
| Processing Speed | Ultra Fast (Hardware Accelerated) | Moderate (Frame-by-frame) | Fast |
| Texture Reconstruction | Smooth gradient synthesis | Contour & gradient propagation | Zero (destructive blur) |
| Best Use Case | Corner logos, TV channel bugs, stamps | Complex, patterned backgrounds | Opaque solid boxes, badges |
1. FFmpeg Delogo: The Professional Standard
The FFmpeg Delogo filter is widely regarded as the industry standard for removing corner station marks. It operates by analyzing a 1-pixel border surrounding the defined bounding box. It then computes a continuous surface across the hole using two-dimensional bilinear interpolation.
Because it works natively within the FFmpeg filter graph, it requires zero external image serialization and runs at blazing speeds—frequently exceeding 60 to 120 FPS on modern CPUs.
2. OpenCV Inpainting: Fast Marching Method
For textured scenes (such as moving water, grass, or crowded backgrounds), simple interpolation can look overly flat. OpenCV's implementation of Alexandru Telea's Fast Marching Method solves this by calculating image gradients along the boundary of the mask.
It propagates pixel values inward from outside the watermark along lines of equal intensity (isophotes). While it takes slightly longer per frame than delogo, it creates convincing organic continuity on intricate textures.
3. Why Gaussian Blur Should Be Your Last Resort
Gaussian blur does not attempt to reconstruct missing information; it merely spreads existing high frequencies into an unreadable smear. Unless feathered gently, blurring highlights the presence of a watermark rather than disguising it.
Conclusion: Which Should You Choose?
For 90% of videos (corner date stamps, station identifiers, broadcast bugs, opaque marks), FFmpeg Delogo provides the cleanest, fastest, and most natural-looking result. If your video has high texture behind the watermark, choose OpenCV Inpaint.