How to add a tilt-shift miniature with Claude

Half a second in, the top and bottom of the shot melt into blur while a narrow sharp strip across the bottle's label stays crisp and the colors get richer, so the set looks like a tiny model.

Get this effect

  1. Switch to Code in your Claude Desktop App

  2. Install the skill (once)

    Show the prompt
    Install the Recharm video effects skill: download https://recharm-growth-staging.s3.us-east-2.amazonaws.com/website/downloads/recharm-video-effects.zip and unzip it into ~/.claude/skills
  3. Ask for the effect

    Add a tilt-shift miniature to input.mp4
    Where the sharp band starts and ends, as shares of the frame height from the top: 0.45, 0.68
    Share of the frame height over which the blur fades up to full strength on each side: 0.15

Several videos, several effects, one ask

Put your clips in the folder, mention them with @, and ask for everything at once. Claude runs one tested script after another on each clip, then joins them.

Add a tilt-shift miniature to @clip1.mp4, put a sale badge on @clip2.mp4, give @clip3.mp4 a VHS look, then join all three with crossfades.

Settings you can change

Ask Claude to change any of these, or edit them at the top of the command.

SettingDefaultWhat it does
BAND_TOP, BAND_BOTTOM0.45, 0.68Where the sharp band starts and ends, as shares of the frame height from the top.
FEATHER0.15Share of the frame height over which the blur fades up to full strength on each side.
BLUR18Blur sigma in pixels at the top and bottom. Higher looks smaller.
SATURATION1.5Color boost (1 is unchanged).
CONTRAST1.1Contrast boost (1 is unchanged).
START0.5Second the miniature look starts fading in.
RAMP0.5Seconds it takes to reach full strength.

Without the skill

Don’t want to install the skill? Paste this prompt into Claude Code and Claude writes the command itself.

Show the prompt
In input.mp4 (540x960), add a tilt-shift miniature look with ffmpeg. Boost the whole picture first (eq saturation 1.5, contrast 1.1). Keep a horizontal band from 45% to 68% down the frame (y 432 to 653) fully sharp; above and below it, blend in a Gaussian-blurred copy (sigma 18 px) whose opacity rises linearly from 0 at the band's edge to 100% at 15% of the frame height away from it (so fully blurred above 30% down, y 288, and below 83% down, y 797), across the full width. Before 0.5 seconds leave the video untouched; fade the miniature look in over the original from 0.5s to full strength at 1.0s and keep it to the end. Keep the size, 30fps, 6 seconds and the audio. There's no text to draw, but if you add any, draw it with Pillow, not ffmpeg's drawtext. Encode H.264 yuv420p and save it as output.mp4.

Run it without Claude

This is the exact command we tested. Save it as tilt-shift-miniature.sh and run:

sh tilt-shift-miniature.sh input.mp4 output.mp4
Show the command
#!/bin/sh
# Tilt-shift miniature: a sharp band across the middle, the top and bottom blurring away and colors boosted, so the scene looks toy-sized.
# Usage: sh tilt-shift-miniature.sh input.mp4 output.mp4
# Needs ffmpeg.
set -e
IN="$1"; OUT="$2"
BAND_TOP=0.45      # where the sharp band starts (0-1 down the frame)
BAND_BOTTOM=0.68   # where the sharp band ends
FEATHER=0.15       # share of the frame height over which the blur fades up to full strength
BLUR=18            # blur sigma in pixels at the top and bottom edges
SATURATION=1.5     # color boost (1 = unchanged); toy scenes look extra vivid
CONTRAST=1.1       # contrast boost (1 = unchanged)
START=0.5          # second the miniature look starts fading in
RAMP=0.5           # seconds it takes to reach full strength

ffmpeg -y -v error -i "$IN" -filter_complex "
  [0:v]eq=saturation=$SATURATION:contrast=$CONTRAST,split=3[sharp][b][m];
  [b]gblur=sigma=$BLUR[blurred];
  [m]format=gray,geq=lum='255*min(1,max(0,max($BAND_TOP-Y/H,Y/H-$BAND_BOTTOM))/$FEATHER)'[mask];
  [blurred][mask]alphamerge[edges];
  [sharp][edges]overlay,format=yuva420p,fade=t=in:st=$START:d=$RAMP:alpha=1[mini];
  [0:v][mini]overlay,format=yuv420p[v]" \
  -map "[v]" -map 0:a? -r 30 -c:v libx264 -crf 18 -c:a copy "$OUT"

Find 3x winning ads

Recharm cuts your ad footage into tagged, searchable clips: hooks, testimonials, product shots. Find the shots that win, add the effect with Claude, and ship 3x more ad edits.

Start 14-day free trial