How The Prompted Greenscreen Memes were made (No Editing Software, Just Code)
You've probably seen them in the feed by now the American Psycho business card scene, but the cards are Prompted entries. Mr. Incredible judging posts. Trump looking outside to see prompted. Doakes staring down the leaderboard. The John Wick contest roster.
Here's the thing: not a single one of these was made in a video editor. No After Effects,
no Premiere, no keyframing. The entire pipeline is a script that takes a classic
greenscreen meme template and automatically drops our own content onto the green — frame by frame — then stitches it back into a video. Once it's built, making a new meme is basically "swap the template, swap the content, hit run."
Here's how it actually works:
1. Start with a greenscreen template. These
memes already exist with a green rectangle
where the "content" goes (the business card,
the phone screen, the thing being held up).
We just grab the clip.
2. Generate the content as branded cards.
Instead of screenshotting the site, we draw
the cards in code — a clean bone-colored card
with the post title, the @username, and
"June $1,000 Creator of the Month" footer in
Georgia serif. Same for the leaderboard, roster, the feed mockups. Everything is rendered from a little JSON file, so changing a title is a one-line edit, not a redesign.
3. Export the video into frames. The clip
becomes a folder of PNGs (one per frame, at
23.976 fps).
4. Find the green automatically. A script
scans every frame pixel-by-pixel looking for
"true green" (green channel way higher than
red and blue). It draws a tight bounding box
around the green region — so it knows exactly
where the card needs to go on every single
frame, even as the meme moves, tilts, or
zooms.
5. Composite. For each green pixel, it swaps
in the matching pixel from our card (scaled
and centered to fit the box). It also kills
the faint green "fringe" around the edges —
the classic greenscreen spill — so the card
edges look clean instead of glowing green.
/*
The American Psycho scene was the fun one:
that shot shows two cards side by side ("look
at that subtle off-white coloring..."), so
the script detects two separate green regions
per frame and drops a different creator's
entry into each one — never the same creator
back-to-back.
*/
6. Stitch it back into a video. The
composited frames get re-encoded into the
final MP4. Done.
The payoff: the whole thing is reusable. New
meme template + new content = a fresh video
in minutes, all generated, no manual editing.
That's how we've been pumping these out.
---
Tools We Used
- FFmpeg — splitting the meme clips into frames and re-encoding the finished frames back into video.
- PowerShell + .NET (GDI+ / System.Drawing) — the engine for everything: rendering the branded cards, the chroma-key green detection, and the
frame-by-frame compositing/despill. No paid software, ships with Windows.
- A bit of JSON — content for the cards and feed mockups lives in small data files, so swapping titles/usernames is trivial.
- Claude Code — wrote the entire pipeline (the green-detection math, the two-region American Psycho logic, the despill, the render scripts).
No video editor. No subscriptions. Just a chroma-key compositor we built ourselves. As always with my builds, links to a github design doc you can clone and start building!
💚
Tech stack
- Claude
- Claude Code
Links
Prompt
I want to make a greenscreen meme video — replacing the green area of a
meme clip with my own image, entirely in code (no video editor).
Read the design doc in this folder first:
GREENSCREEN_MEME_DESIGN_DOC.html
It's a complete spec written for you: the pixel-level green-detection
thresholds, the full PowerShell compositor, the ffmpeg commands, the
two-region (American Psycho) variant, and a tuning cheat sheet. Follow it.
What I'm giving you:
- Greenscreen template clip: <path to video, or "I'll paste it">
- Image to drop on the green: <path to image, or describe it>
- (Optional) if you should render a branded card instead of using a raw
image, here's the text: title = "<...>", @username = "<...>"
How I'd like you to work:
1. Check ffmpeg/ffprobe are available. Probe the clip for fps + size.
2. Extract frames, then run a SCAN-ONLY pass first and tell me: how many
frames have green, the box size, and whether any frame has two regions.
Wait for my OK before compositing if anything looks off.
3. Composite, despill the edges, re-encode at the exact source fps with the
original audio, and show me the result.
4. If the edges glow green, nudge the d…
10 likes · 4 comments · 14 views
Comments (4)
This is way cooler than using a video editor.
Claude helping build the whole pipeline is wild.
The fact that it's all reusable is the best part.
loser