Sign up and get 15% off the four courses and Lifetime.

Playbooks for products, screens and stills

AI toolkit

Before and after, and unboxing

Lesson 2 of 9 in Playbooks for products, screens and stills.

Checked against the makers' documentation on 4 November 2026.

Lesson

Measures how well a before and an after line up, then builds a split screen or a labelled speed-up out of one unbroken take.

# How far apart are the before and the after? 0 means identical.
ffmpeg -i before.png -i after.png -filter_complex "[0:v]format=gbrp[a];[1:v]format=gbrp[b];[a][b]blend=all_mode=difference,format=gray,signalstats,metadata=print:key=lavfi.signalstats.YAVG" -f null - 2>&1 | grep -o "YAVG=[0-9.]*"

# The difference as a picture: anything that moved shows as a bright edge

This is for members.

Become a member to open every Claude skill, prompt and workflow.

$19₹999 + GST, a single payment.

Elsewhere in the library