A four-and-a-half-minute clip of five people dancing. Eight hundred thousand views in a few days.
The first reaction is: I could make that. The reaction contains an error. The 800,000 belongs to the original, not to the copy. It took off because the people in it were Musk, Jensen Huang, Altman and Zuckerberg — what went viral was those people dancing, not five people dancing.
Swap the faces out and you have swapped out the reason it worked.
So what’s left? Two things, one borrowable and one not. The format is borrowable — the beat count, the cuts, the moment that stops a thumb. The footage and the faces are not.
And the pipeline itself is genuinely general: take a clip and replace the cast. It has a more accurate name than “face swap” — it is re-rendering that clip from a reference image.
Which is what the title means. One frame per scene, not per shot. You are not retouching a face frame by frame. You are handing over one complete piece of evidence about what this scene looks like.
It isn’t face swapping
Face swapping means aligning two faces, blending them, patching the seam. That’s a different technique with a characteristic failure: edges that shimmer, expressions that freeze, a face that collapses the moment the head turns.
This pipeline does something else. It hands over the whole frame and has the model re-render the scene — same person, same clothes, same pose, same camera.
The difference is how many sources are in play:
- Face swap: two sources (the original face and yours) fighting over the same pixels
- Whole-person transfer: one source (your reference) decides what this person looks like
That’s why “keep the reference’s clothes, not the original’s” isn’t fussiness. You either migrate the whole person or you let two sources fight — and the fight shows up worst with sunglasses, jewellery and complicated hair, because those eat the face.
Three layers, not one
Most tutorials start at the key frame. But there’s a layer above it, and that layer decides everything downstream.
| Layer | The question it answers | What comes out |
|---|---|---|
| Cast | Who replaces them — and why should anyone care? | One frontal, clean, reproducible character reference |
| Frame | In this scene, which frame carries the most information? | One image per scene state |
| Generate | How many segments, how long each, what do the prompts say? | A per-segment prompt table |
The first layer is the easiest to fake. The second is the easiest to get wrong. The third takes the most time.
Cast: where the replacement comes from
This is the only layer with no criteria. The other two have tests; this one has judgement.
A usable replacement has to be two things at once: renderable, and worth watching.
Renderable is a technical condition: frontal, clear features, nothing covering the face, no heavy ornament. It’s the same requirement as building a character-sheet — a reference image isn’t for the audience, it’s how the model recognises someone.
Worth watching is the creative condition, and it’s much harder. Swap in a random character and you get five people dancing. Swap in a character that means something and you get a point of view. The difference isn’t in the render quality; it’s in the choice.
Any image model that accepts a reference will generate this (GPT-Image 2.5, Jimeng, and so on). The job is to nail down the variables so it can’t improvise:
A studio portrait of <age, gender, hair, facial features, clothing>,
facing the camera straight on, neutral relaxed expression,
mouth closed, shoulders level,
even soft frontal light from the camera side,
plain mid-grey seamless background, head centred with even margin,
no accessories, no eyewear, no jewellery, no logos, no text,
sharp focus, natural skin texture, 2:3 vertical frame
mouth closed and no accessories are not optional. The first makes the image usable as a rest state; the second stops ornament from eating the face later. Both were learned the hard way on a different pipeline: the anchor had an open mouth, so every segment opened with an open mouth.
Frame: one per scene
This is the part worth the whole article. Four criteria, in order of importance:
- Most people in frame — one five-person wide shot also covers the close-up (three of them), the side angle (two plus a shoulder) and the wide
- Wide, with background — the model needs to know what the room looks like
- Frontal — this one is not negotiable
- Matching light and colour temperature — frames from the same scene should look like each other
Why frontal is non-negotiable: if the reference is a profile, the model has no front face for that person. The moment the character turns toward camera, it guesses. The guessed face is not the one you used elsewhere — and that is how consistency dies, silently, in a shot that otherwise looks fine.
So the rule isn’t one image per shot. It’s one image per scene state. If the scene and the blocking don’t change, one is enough — even if it spans three shots and three segments.
And the inverse: if the scene or the blocking changes, you need a new image. The test is the background and where people stand, not whether the shot cut. That distinction is the practical one — a cut inside the same setup needs no new reference; a character walking to a new position does, even with no cut.
Replace: migrate the whole person
With the reference frame and the character image in hand, what’s left is an image edit. But every line of the prompt is blocking a specific failure:
Replace all <N> people facing the camera in image 1 with the person in image 2.
1. There are <N> people, and each is a different person — do not replace the same person twice
2. Replace them completely; do not keep the original faces or bodies
3. Clothing follows image 2, not the original frame
4. Keep the original's grade, look, poses and composition
5. No sunglasses, jewellery or accessories on the characters
6. Left-to-right order in the original matches the order I uploaded the references
7. Resolution 1920×1080
8. No subtitles, watermarks or logos in the frame
Why each one is there:
- 1. Leave the count out and the model will often replace the same person twice. It’s the most common failure and the cheapest to prevent.
- 2. “Replace completely” and “swap the face” are different instructions. Say which one you want.
- 3. Clothes travel with the person. Keeping the original costume puts two sources back in conflict.
- 4. This is the only line asking it to hold still. Grade and poses belong to the original clip; the person is the only thing changing.
- 5. Sunglasses are the single biggest killer of faces. They hide information and they become an extra object to render.
- 6. With several people, order is the only correspondence you have. Leave it out and left and right will swap.
- 8. Subtitles and watermarks fall under “don’t draw what I didn’t ask for”. It’s the same mechanism as negative-prompt: to exclude something you have to name it, and naming it puts it in the vocabulary. So this isn’t a long list of prohibitions — it’s one statement of what should not survive from the original.
Segments: a VRAM equation
Three numbers are tied together: resolution, segment length, VRAM. Move one and the other two have to give.
| VRAM | Resolution | Max per segment | Inside the model’s optimal duration |
|---|---|---|---|
| 32 GB (measured) | 1920×1080 | 6 s | ✓ |
| 32 GB (measured) | 1920×1080 | 8–10 s | ✗ out of memory |
| 16 GB (extrapolated) | 1920×1080 | ~2 s | ✗ below optimal |
| 16 GB (extrapolated) | 1280×720 | 5–6 s | ✓ |
Only the 32 GB rows are measured. The 16 GB rows follow the same curve — don’t quote them as data.
The important relationship is between the third and fourth columns: shorter is not better. The model has an optimal generation duration, and below it quality drops. So “if VRAM is tight, chop it finer” is the wrong instinct — at two seconds you may not even hold quality.
The real trade is resolution for duration. On 16 GB, 1080p gives you two seconds (already outside the window); 1280×720 gives you five or six, back inside it. Resolution sets the picture, segment length sets the VRAM, and you only get to pick a combination your card can actually hold.
Then count segments:
segments = ceil(total ÷ segment length) + 1
The +1 is the overlap bill. Adjacent segments share 5 frames (about 0.2 s); eight segments have seven seams, roughly 1.4 s — nearly half a segment, so you buy one more.
48 s ÷ 6 s = 8 segments, +1 = 9.
What the 5-frame overlap is for: giving the seam somewhere to happen. It’s the same conclusion as on a different pipeline — a seam needs time, and if you don’t give it any, it jumps on your face. There the number was a four-frame dissolve; here it’s a five-frame overlap. Same order of magnitude, and not by coincidence: both are about 0.2 s at 24 fps.
Prompts: let an agent write them per segment
Nine segments means nine prompts, which nobody writes by hand. The move is to have an agent generate them — provided it has the model’s prompt spec loaded (a skill or spec file). Without it you get generic prose, not the syntax this model reads.
Give it everything, especially the numbers:
Attachments: the reference clip (segment <i>), and the storyboard frame for that segment
Task: use the storyboard frame as the character reference and replace the cast
in the reference clip. Everything else follows the original.
Keep: action, rhythm, camera movement, composition, cut points
Remove: logos, watermarks, subtitles from the original
Do not change: the characters' actions or poses — this is a reskin, not a re-performance
Parameters:
- Original length <X> seconds
- <N> segments, each ≤ <L> seconds
- Adjacent segments overlap by 5 frames
- Output: one paste-ready prompt per segment
The numbers have to be in there, for a plain reason: the model will not divide 47 by 6 for you. Leave it out and it picks a number, and you get eight prompts for a nine-slot workflow.
What comes back is a segment table plus nine prompts. Don’t read the whole thing — read the segments you’re about to paste. Your job is filling in blanks, not copy-editing.
What went viral, and what can be borrowed
Back to the number.
Take the people out of the original. What’s left?
If the answer is nothing, it’s celebrity-dependent. The entire content of “Musk is dancing” is the mismatch between Musk and dancing. Swap the person and the mismatch is gone; the clip is worth zero. That’s this clip — and the bigger it got, the less reproducible it is.
If what’s left is a rhythm — a count of bars, a pattern of cuts, the turn at second three — it’s structural. Structure can be borrowed, and borrowed cleanly: you don’t need the footage, you need a beat sheet extracted from it.
Which makes borrowing the format not just safer but a better deal:
- Borrow the footage: you get a clip that looks like someone else’s, and both the algorithm and the audience can tell
- Borrow the format: you get your own clip, with a rhythm that has already been validated
One caveat, though. The algorithm only proved the stop, not the stay. The original’s completion rate proves this opening stops a thumb. It says nothing about whether your content holds attention. The first three seconds are the format’s credit; second thirty is the content’s.
So there’s a test more direct than any metric: would someone who saw the original watch yours?
Without an addition, no — they’ve seen this dance. Three ways to add something:
- Substitute with meaning: executives for workers, real people for your own IP. The swap itself is the point.
- Change the context: the same dance where it has no business being.
- Make the process the content: how the clip was made is itself the piece.
The third is the safest and the least like re-uploading, because it doesn’t pretend to be the original.
What you can do, and what you can publish
Three things to keep apart. Lumped together they become “mind the copyright”, which is the same as saying nothing.
Footage: formats aren’t protected by copyright; expression is. The same dance and the same beat sheet, shot or generated by you, is your work. Re-rendering someone else’s frames and posting them is a different act. The line isn’t technical — it’s whether you used their footage.
Faces: replacing a real person out of a frame and putting one in carry very different risk. The first removes; the second manufactures something they never did. This clip is on the safe side of that line precisely because it takes people out.
Platforms: the major ones require synthetic content to be labelled; check the current terms for whichever you publish on. And one more: that instruction to keep the original’s logo and subtitles out is, mechanically, asking the model to strip a watermark. That is a separate risk from replacing characters, and it doesn’t even improve the result — anywhere the watermark would have been, the audience can still tell whose clip it is.
One sentence: being able to do it is not the same as being allowed to post it. The best use of this pipeline is on footage you own — at which point it isn’t a remix, it’s a reshoot.
One page
Three layers
Cast: frontal, clear features, nothing covering the face, no ornament
Frame: one per scene state, not one per shot
Generate: segments = ceil(total ÷ segment) + 1
Four criteria for the frame
Most people · wide with background · frontal · matching light
A profile can't be the master frame: when the head turns, there's no front face
New scene or new blocking → new image; a cut inside the same setup → no
Eight lines for the replacement
State the count, all different · replace completely, don't swap faces
Clothing follows the reference · keep grade, poses, composition
No sunglasses or jewellery · left-to-right matches upload order
1920×1080 · no subtitles, watermarks or logos
The VRAM equation
Trade resolution for duration; shorter is not better
Below the model's optimal duration, quality drops
32 GB / 1080p → 6 s; 16 GB / 1080p → 2 s (outside) → 720p gets back to 6 s
5-frame overlap between segments
What to borrow
Celebrity-dependent doesn't transfer; structural does, and needs no footage
The algorithm only proved the stop, not the stay
Test: would someone who saw the original watch yours?
The line
Formats aren't copyrightable, expression is
Replacing out vs replacing in are different risks
Label synthetic content; stripping a watermark is a separate problem
character-consistency covers keeping one person stable across shots. This is the same reference logic pointed the other way: putting a person into someone else’s shots.