Public-domain match cut
A match cut keeps one visual anchor fixed while everything around it changes: a clock face becomes a plate, then the Moon, then a painted halo. This skill builds one from images that are free to reuse, and renders it without a video editor.
Method adapted from the 4-step thread by Simplifying AI (@simplifyinAI, original post). The thread's idea: restrict the agent to ten free image libraries, describe the cut in one sentence, and let the agent search, line up the shapes and render. This version adds a licence check on every image, a credits file, and a tested alignment-and-render script.
Ground rules
- Only the ten libraries, only public-domain or CC0 items. A library being "open" does not make every item free. Record the licence the item's own page states, and drop anything else.
references/sources.mdlists the libraries, download rules and their traps. - Never invent a licence or a source link. If the page does not state one, the image is out. Write a canonical licence string the build script accepts (CC0, Public domain, Public Domain Mark, PDM, Public domain (NASA), No known copyright restrictions); mixed sentences such as "public domain in some countries" are rejected.
- Say what you did not check. If a library's API was unreachable (some block automated requests), report it and use the others.
Steps
- Pin the brief. Get the anchor shape (circle by default; triangle, star, arch or rectangle work the same way), the length (default 5 seconds), the shape of the frame (default 1080x1080), and the number of shots (default 12, so each shot is about 0.4 seconds). An optional end card (
end_card.text, default 2 seconds) can hold a title such as a site name. Do not ask more than that; choose defaults and say them. - Fix the source list. Write down, and keep to, this list as the only allowed libraries: Wikimedia Commons, Europeana, Internet Archive, Library of Congress, Smithsonian Open Access, Rijksmuseum, The Met, New York Public Library, NASA Image Library, National Gallery of Art.
- Search for the shape. Query each reachable library for objects that contain the shape (plates, clocks, coins, planets, windows, wheels for circles). Use
references/sources.mdfor endpoints, download rules and the licence field to read. Aim for 2 to 3 times as many candidates as shots, and spread them across at least four libraries so the cut feels varied. - Download and vet. Keep a file per candidate and the facts that go in the credits: title, creator, library, licence text, page URL. Follow the download notes in
references/sources.md(User-Agent and throttling on Commons, https on NASA, per-object checks at the Met, trusted collections on the Internet Archive). Discard anything with a non-public-domain licence, a failed Pillow open, a visible watermark, people-as-subjects where a model release could matter, or a shape that is cropped by the frame edge. Clean creator strings (strip HTML; collapse doubled Commons labels such as "Unknown artistUnknown artist"). - Locate the anchor in each image. Open each kept image and record the shape's centre (cx, cy) and radius r in source pixels of the file you downloaded, not the original's listed size. For a non-circle, use the bounding-circle that contains the shape. Follow
references/alignment.mdfor how to estimate this and how to order shots (alternate dark and light, vary the scene scale, put the strongest image last). - Write the manifest. Save
manifest.jsonnext to the images in the format documented at the top ofscripts/build_match_cut.py. One entry per shot, every field filled in. If the brief needs a title card, addend_cardthere. Then runpython scripts/preview_anchor.py manifest.jsonand nudge any circle that does not hug the shape; a 3% miss shows as drift. - Check, then render. Needs
ffmpegand Pillow (pip install pillow). Runpython scripts/build_match_cut.py check manifest.json. Fix every FAIL (it rejects non-public-domain licence strings, missing files, centres outside the image, and too many shots for the length). Treat coverage WARNs seriously: a lowtarget.r(default 0.38) leaves a sharp photo rectangle on a blurred backdrop. Then runpython scripts/build_match_cut.py render manifest.json. It places each image so its shape lands on the same spot at the same size, fills uncovered edges with a blurred copy of the picture, appends the end card if one is in the manifest, and writes the mp4 plus<output>.credits.md. - Look at it before handing it over. The render command prints mid-shot frame numbers. Pull those three frames with ffmpeg (
ffmpeg -i out.mp4 -vf "select=eq(n\,N1)+eq(n\,N2)+eq(n\,N3)" -fps_mode passthrough frame%d.png) and confirm the shape sits in the same place in each. Do not use the first frame of a shot, which can land on a cut. If one drifts, correct its cx, cy, r, re-run the preview, and re-render. - Report. Give the video path, the credits file, how many images came from which library, any library that could not be reached, and the swap line: change the shape word in step 1 to make another cut.
Reading the references
references/sources.md: open before step 3, for each library's search method, download rules, the licence field to trust, and known traps.references/alignment.md: open before step 5, for estimating the anchor, the default target, previewing and pacing.
Boundary
Owns: sourcing public-domain images around one shape and rendering a silent match cut, with an optional end card. Stops at the mp4 and credits. Music, captions, colour grading and posting are the user's choice or another tool's.
