Takes 10 s from 0:15 of an old camera AVI, fills 1920×1080, blurs out a burned-in logo or date stamp by interpolating its rectangle from the surrounding pixels, and converts the odd camera frame rate to a steady 29.97 fps with motion interpolation. The patch works best on flat backgrounds; on detailed footage it shows as a soft smudge.

The command

ffmpeg -ss 15 -i input.mp4 \
  -vf "scale=1920:1080:force_original_aspect_ratio=increase,crop=1920:1080,delogo=x=597:y=490:w=279:h=163,minterpolate=fps=29.97,setpts=N/(29.97*TB)" \
  -r 29.97 -t 10 \
  -c:a aac -b:a 192k \
  -c:v libx264 -crf 20 -pix_fmt yuv420p -preset ultrafast \
  output.mp4

What each part does

-ss 15 -t 10           use 0:15–0:25 (drop both to process the whole file)
scale=1920:1080:force_original_aspect_ratio=increase,crop=1920:1080
                       fill 1080p first, so the delogo box is in output
                       coordinates
delogo=x=597:y=490:w=279:h=163
                       the rectangle to remove (top-left x/y, size).
                       Find it by grabbing a frame
                       (stills-and-gifs/extract-frame-jpg.sh) and
                       measuring, or add :show=1 to draw the box while
                       adjusting
minterpolate=fps=29.97,setpts=N/(29.97*TB) -r 29.97
                       steady 29.97 fps without changing speed
-c:a aac -b:a 192k -c:v libx264 -crf 20 -pix_fmt yuv420p -preset ultrafast

When to use it

Use this when old camera footage has a burned-in logo or date stamp in a fixed spot and a soft blur is better than the mark. delogo doesn't recover what was under the logo. It fills the rectangle from the surrounding pixels, so the patch looks clean on sky or walls and like a smudge on detailed footage. It won't follow a mark that moves, because the box is fixed for the whole clip. The header explains each flag.

To adapt it:

  • Set the delogo box for your footage. Grab a frame with ../stills-and-gifs/extract-frame-jpg.sh and measure it, or add :show=1 to see the box.
  • Drop -ss 15 and -t 10 once the test clip looks right.
  • For a different target rate, change 29.97 in all three places.

If the patch misses the logo, make sure you measured on a 1920×1080 frame. The box is in output coordinates, after the scale and crop, so values measured on the original frame need converting. Warping or ghosting around fast motion comes from minterpolate, not delogo.

Notes

Source
ffmpeg-utilities/notes/commands2.txt (two versions: a 10 s test and the full file)
Changed
minterpolate='fps=29.97' → minterpolate=fps=29.97