Fix a bad AI video clip from the first wrong frame instead of rerolling
Find the exact frame where an AI clip goes wrong, keep everything before it, and change one thing to fix the rest — instead of rerolling the whole shot.
What to do first
- Do not press Generate again yet. Make a contact sheet of the clip and find the first frame where something is wrong.
- Everything before that frame is usable footage. Save the last good frame as a still image.
- Decide the fix from two facts only: when the clip breaks and what kind of break it is. Then change one thing and generate a short piece, not the whole shot.
Most bad AI clips are not bad from start to finish. A typical 5-second generation looks right for two or three seconds, then a hand grows a sixth finger, the logo turns into soup, or the camera swings somewhere you never asked for. The usual reaction is to reroll the whole thing and hope. That throws away the good seconds, costs a full generation each time, and teaches you nothing — the next clip may break somewhere else for a different reason.
This guide is about one clip and one sitting: find where it breaks, name the break, keep what works, and fix only the rest. It sits next to stopping regenerate loops, which covers retry caps and team rules. Here the focus is narrower — reading the clip itself.
Step 1 — Find the first wrong frame, not the worst one
People describe a failed clip by its worst moment: “the face melts at the end”. The worst moment is not useful. The first wrong frame is, because it tells you how much of the clip you can keep and what started the failure. By the worst moment, the model has already been building on its own mistake for a second or more.
A fast way to find it:
-
Make a contact sheet. One image with a thumbnail every half second lets you scan the clip in a few seconds instead of scrubbing back and forth. With ffmpeg installed:
ffmpeg -i clip.mp4 -vf "fps=2,scale=320:-1,tile=4x3" contact.pngThat gives 12 thumbnails — enough for a 6-second clip. Raise
fpsfor short clips or fast action. -
Find the pair. Look for the last thumbnail that is fully right and the first one that is not. The real first wrong frame is somewhere between them.
-
Step frame by frame between those two. Open the clip in a player that steps single frames (in VLC press
E; in mpv press.to step forward and,to step back) and stop on the first frame you would not publish. Write down its timestamp. -
Export the last good frame as a full-size still:
ffmpeg -ss 2.9 -i clip.mp4 -frames:v 1 last-good.pngUse the timestamp just before the first wrong frame. This still is the most valuable thing the failed clip gave you.

The melted bottle at 3.5 s is what everyone notices; the scrambled label half a second earlier is where the fix has to aim.
Be strict about “wrong”. Anything you would have to explain or hide in the edit counts: a small identity change, a logo letter that flickers, a background object that pops in. Small breaks grow; treat the first one as the break.
Step 2 — Use the timestamp to choose the size of the fix
Where the clip breaks matters more than how bad it looks. The same failure — say, a face that drifts — needs a different fix at 0.8 seconds than at 4.5 seconds. Measure the break against what the edit actually needs, not against the clip’s full length.

“Enough seconds” is set by the edit: a 1.5-second insert shot is finished the moment it has 1.5 good seconds.
The middle case is where most of the savings are, so here is how it works in practice. Say the shot needs 4 seconds, and the clip is good until 2.9 seconds:
- Trim the good part and keep it:
ffmpeg -i clip.mp4 -t 2.9 -c:v libx264 -crf 18 part-a.mp4. - Use
last-good.pngas the start image for a new image-to-video generation, with a prompt that only describes what should happen next. Most current video generators accept a start image; some also have an “extend” button or accept an end frame. Check what yours offers. - Generate the shortest duration your tool allows. You only need the missing seconds, and short clips drift less.
- Join the two parts in the editor. If the join shows a small jump, a short cross-dissolve or a cut to a different angle hides it better than another generation would.
One limit: restarting from a still loses motion. If the subject was moving fast at 2.9 seconds, the new clip may start from a standstill. Prompt the motion explicitly (“continues walking left at the same pace”), or cut on the action so the viewer does not compare speeds.
When the break is in the first third, the input itself is usually the cause — the prompt asks for too much, the reference image is weak, or the shot is too long for the action. Do not try to rescue the footage. Fix the input and regenerate a shorter clip. The storyboard step is often where this should have been caught.
Step 3 — Name the break, then change exactly one thing
The timestamp tells you how much to redo. The kind of break tells you what to change in that redo. Most failures fall into a few types, and each has a change that tends to work better than the others.

Start with the first change on each card. If it fails twice, the shot itself needs a rethink, not a third prompt.
Some notes the board does not have room for:
- Identity drift gets worse with length. A clip that holds a face for 3 seconds may not hold it for 8. Cut long shots into two short ones from the same reference image, and see keeping identity across shots for multi-shot work.
- Garbled text is the one type where retrying is almost never the answer. Video models still struggle with letters that stay stable across frames. Generate the shot with a blank label or sign, then add the text in the editor as a tracked overlay. It looks sharper and you can change the wording later. The overlay steps are in text and logos in the editor.
- Missing action — the person never picks up the cup, the door never opens — usually means the prompt asked for two events in one shot. Split it: one clip for the reach, one for the lift. Each prompt then describes a single movement.
- Unwanted camera moves come from prompts that never say what the camera does. If you want a still camera, say so plainly (“static shot, locked-off tripod, no camera movement”). If you want a move, name one move only.
Keep a short note for each fix: the clip name, the first wrong timestamp, the break type, and the one thing you changed. After a dozen notes you will see which break your prompts cause most often, and you can fix it in your shot prompt library before it costs another generation.
A worked example
A 6-second shot for a product video: a hand lifts a cosmetics bottle from a marble table, the camera pushes in slowly, and the brand name on the label stays readable.
- First attempt. The contact sheet shows the shot is good until 2.4 seconds. At 2.5 seconds the label letters start to shift; by 4 seconds the fingers merge into the bottle.
- What a reroll would do. Spend another full 6-second generation, likely with a new random failure somewhere else — maybe the push-in becomes a pan.
- What the first-frame method did. Two separate breaks were named: garbled text (the first one, at 2.5 s) and hands merging (later, at 4 s). The text fix was to stop generating text at all: the start image was edited to a blank label, and the brand name went on as an overlay in the editor. The hand fix was to split the action. The good 0–2.4 seconds became shot A (hand reaching). A new 3-second clip, started from the edited still, became shot B (lifting, with the hand partly out of frame).
- Result. One short extra generation instead of an open-ended run of full rerolls, and a label that stays sharp because no model drew it.
The timestamps and the break types are from a typical case, not a benchmark. Your clip will break somewhere else. The method is the same.
Before you call it fixed
Check the repaired shot the way a viewer will see it, not the way you made it:
- Watch at full speed, at the size it will be published, with sound if it has sound. Many joins that look obvious when stepping frames are invisible at full speed — and the other way round.
- Watch the join three times and look only at the subject’s edges, the light direction, and the background. These are the things that jump between two generations.
- Check the first wrong frame is really gone. It is easy to fix the late failure and keep a small early one you got used to seeing.
- Run the final pass from QA gates before final render once the whole sequence is cut.
Common mistakes
- Rerolling with a “stronger” prompt. Adding words like “perfect hands, high quality” rarely fixes a structural problem such as two actions in one shot. Change the shot, not the adjectives.
- Changing three things at once. If you change the prompt, the duration, and the reference image together and it works, you do not know why — and you cannot repeat it next time.
- Keeping footage past the first wrong frame because the break is “only small”. A viewer who notices a flicker in a logo stops trusting the rest of the video.
- Asking for long clips by default. Longer clips give the model more time to drift. Generate the shortest length that covers the shot, and build length in the edit.
- Throwing away the failed clip. Even a clip with a bad second half often gives you a usable opening and a good start frame. Save both before you delete anything. For the budget side of this, see cost control for AI video generation.
You are done when the shot plays cleanly at full speed, you know which frame went wrong and why, and your note says what you would change in the prompt so the next shot does not break in the same place.
Share