Skip to content

Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.

docs(video-loop): a frame between that shows a picture beside it again is refused (held), in loop-repair section 7, video-pipeline and SKILL.md

Soohong Kimb215980b6886
diff --git a/SKILL.md b/SKILL.md
index 7249378..8ddc10d 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -131,7 +131,7 @@ Use existing automatic pipeline stages for background removal, extraction, align
For attack repeat coverage, observed one-shot returns and structured loop failure reports, follow [video-pipeline](docs/video-pipeline.md#one-shot-actions----cycle-autoperiodicone-shot).
-Every cut is read for held cells (neighbour cells showing the same picture), and by default they are filled with RIFE's frames between and the cut read again (`video-loop --fill-held auto`; `off` cuts as filmed). Tell the user each motion's poses over cells in one line from `held_fill` (`poses/cells`, before and after, e.g. `24/27` to `27/27`). A cut wanted above its clip's rate is given with `--out-fps`, frames between, never repeats. Details in [loop repair](docs/loop-repair.md#7-held-cells-a-picture-shown-again-and-a-cut-at-a-higher-rate).
+Every cut is read for held cells (neighbour cells showing the same picture), and by default they are filled with RIFE's frames between and the cut read again (`video-loop --fill-held auto`; `off` cuts as filmed). Tell the user each motion's poses over cells in one line from `held_fill` (`poses/cells`, before and after, e.g. `24/27` to `27/27`). A run whose frames between were all refused stays as filmed and is named in a `warning:` line: say so with its poses over cells. A cut wanted above its clip's rate is given with `--out-fps`, frames between, never repeats. Details in [loop repair](docs/loop-repair.md#7-held-cells-a-picture-shown-again-and-a-cut-at-a-higher-rate).
A move played once (a jump, a vault: `once`, `once-return`, `one-shot`) carries its root motion in the strip sidecar by default, the cells unchanged: `root_motion` gives each cell's root (the body's mass centre, cell px), what it stands on, and each air's take-off, landing, seconds and apex; a game reads `root` to place each cell and moves the body on its own physics. A move cut out of a longer motion is named with `video-loop --cycle once --start S --length L`, a hand on something the clip does not draw with `--contact hand=A:B`, metres with `--meters-per-px`. To give the air its own length, gravity and speed, `--air-retime gravity=G,air=T,speed=V` redraws it on that parabola with RIFE's frames between; contacts and the take-off and landing stay as filmed. Tell the user each air in one line, its seconds and its apex (the summary's `air`, e.g. `air 0.42 s, apex 0.21 m`). Details in [video-pipeline](docs/video-pipeline.md#root-motion--a-cut-played-once-where-the-body-is-what-it-stands-on-its-air).
diff --git a/docs/loop-repair.md b/docs/loop-repair.md
index 2f63c90..ba792b3 100644
--- a/docs/loop-repair.md
+++ b/docs/loop-repair.md
@@ -2788,6 +2788,7 @@ plays the clip's filmed frames, none made between two others, and names a run it
| Kept: a loop's last cells | A run that ends on a loop's last cell | Its next pose is across the wrap: made, the last cell would change and with it the wrap. A run that opens a loop is made (its first cell stays). A periodic cut chooses its wrap where the steps either side read alike, so a held run seldom closes it; a fixed cut whose last cells are held keeps them, and its wrap then steps from a held picture (cut it elsewhere, or `--fill-held off` to keep the whole cut as filmed). |
| A frame made, judged | `align.measure_made` and `interpolation_quality.faults` (smear, outline, ghost, hole, doubled), the alignment's own | One acceptance policy for every frame RIFE makes (section 4). |
| A part standing still, kept still (`still_kept`) | The outline pixels both frames draw in one place in one colour (solid at alpha 128, within 24 levels) must be drawn there in the frame made, within a pixel, for at least `STILL_KEPT_MIN` 0.8 of them in every window a tenth of the body high that holds 12 or more; else the fault `contact` | A foot planted or a hand on a ledge stays where it stood. A synthetic in-between that drags a planted foot 3 px along the floor keeps 0.50 of its window; one off by a pixel, 1.00. |
+| A picture of its own (`same_picture`) | The frame made must not read as the same picture (the reading above) as either frame it is made between or as the cell delivered before it (in a run of three, or at `--out-fps`, that can be a frame made too); else the fault `held` | An interpolator that gives back a frame it was handed, or one picture at two times, makes no frame between. Taken, the cell would be counted as made and still show the picture beside it. On a synthetic stalled walk (runs of two and three cells) whose interpolator gives back the frame before, both runs are kept as filmed (24/27 poses/cells), each first cell tried at its own time and at every other fraction within half a cell, and `warning:` lines name cells 5-6 and 14-16. A synthetic fall that sinks less than a pixel in half a frame shows the frame before it again at 0.4, 0.45, 0.5 and 0.55, and is made at 0.6. |
| A frame refused | Made again at the fraction of `RETIME_T` nearest its own within half a cell of it, its ghost band under `RETIME_WINDOW_MAX` (section 4's bar for a frame made off its time); else the run is kept as filmed, with a warning naming the cells and the faults | A frame half way that RIFE cannot draw is often clean nearer one side. |
| Whole or not at all | A run is made whole or kept whole | Half made, it would step back to the held picture and on again. |
| Order | After the anchor and `source_projection`, before the ghost screen, the wrap blend, the part pop and the jump repair | Everything that reads the flow and the wrap reads the cut as it will play. |
@@ -2805,12 +2806,13 @@ its drawings on its own cells, not on the clip's hold.
time of its own, made by RIFE between the frames beside it, judged as the fill's frames are, never showing a frame
again. A loop has round(L x F / fps) cells over its cycle's seconds, at times k x L / cells; a cut played once runs
from its first frame to its last, round((L - 1) x F / fps) + 1 cells, each 1/F. A cell on a frame's time is that
-frame; one between two frames showing one picture (a hold kept) is that picture; one no frame made is taken for is
-the nearer frame, named (`out_fps.shown_again`). `cycle/` holds every cell; the strip holds them up to its cell and
-width caps, subsampled past them as any strip is (`subsampled`). The strip metadata says `out_fps` and `source_fps`,
-and `source_cut.times` in place of `samples`. With no RIFE the cut is delivered at its own rate with a `warning:` line
-and `out_fps.applied` false. `video-cycle-align` and `video-stop` refuse such a loop (each makes its own frames
-between from the cut at the clip's rate), and restoration reads it as `source-processing-unsupported`.
+frame; one between two frames showing one picture (a hold kept) is that picture; one no frame made is taken for (a
+fault, or `held`: the frame shows the picture of a frame beside it, or of the cell before it, again) is the nearer
+frame, listed in `out_fps.shown_again` and named in a `warning:` line. `cycle/` holds every cell; the strip holds them
+up to its cell and width caps, subsampled past them as any strip is (`subsampled`). The strip metadata says `out_fps`
+and `source_fps`, and `source_cut.times` in place of `samples`. With no RIFE the cut is delivered at its own rate with
+a `warning:` line and `out_fps.applied` false. `video-cycle-align` and `video-stop` refuse such a loop (each makes its
+own frames between from the cut at the clip's rate), and restoration reads it as `source-processing-unsupported`.
Where sprite-gen gives frames at a higher rate than it was given them:
@@ -2836,6 +2838,7 @@ Where sprite-gen gives frames at a higher rate than it was given them:
| Solid pixels | `legs.LOW_ALPHA` | |
| The window a tenth of the body high | `rife.GHOST_BAND` | |
| The same picture (`same_steps`) | New | A distance over the mass (`nonloop.STABLE_MAX`, `held.measure`'s steps) reads a one-pixel move of a small part as held; `held.measure` reads a rhythm of redrawn drawings, not a frame shown again. |
+| Whether a frame made shows a picture of its own (`same_picture`, the fault `held`) | `same_steps`, the reading above, on each pair | |
| A part standing still (`still_kept`) | New | `rife.hole` reads a hole through a limb, `inspect-motion` a foot's place in spans a person marks; neither reads whether an in-between keeps what both its frames hold still. |
| The times of a higher rate (`times`, `upsample`) | New | `align.resample` resamples a loop as a ring to a length; a cut played once runs from its first frame to its last. |
diff --git a/docs/video-pipeline.md b/docs/video-pipeline.md
index d87a9ed..d6d01d0 100644
--- a/docs/video-pipeline.md
+++ b/docs/video-pipeline.md
@@ -406,12 +406,13 @@ picture (a frame shown twice or three times: a model that stalls, a rate carried
stops on it as it plays. `video-loop` reads each cut it makes for them (loop, one-shot, once, once-return, so every
cut of `video-set` and of a clip from `video`) and by default makes each run of them again with RIFE's frames between
the pose before and the pose after (`--fill-held auto`), the cut's length, beat, first and last cells and wrap kept,
-a part standing still in both kept still; a run longer than three cells, the ends of a cut played once, a loop's
-last cells and a cut drawn on twos or threes (limited animation, `held_fill.drawn`) stay as filmed. Then it reads the
-cut again. The report and the strip metadata record the held runs (first cell, how many) and the poses over the
-cells (`held_fill`); tell the person that one line: `poses/cells`, e.g. `24/27` before and `27/27` after. With no
-RIFE the cells are delivered as filmed and a warning names the motion and the install line; `--fill-held off` cuts
-as before. A cut asked for above its clip's rate (`--out-fps 60` on a 24 fps clip) is made of frames between, never
+a part standing still in both kept still; a run longer than three cells, the ends of a cut played once, a loop's last
+cells and a cut drawn on twos or threes (limited animation, `held_fill.drawn`) stay as filmed, and so does a run no
+frame between is taken for (a fault, or a frame that shows the picture beside it again), named in a warning. Then it
+reads the cut again. The report and the strip metadata record the held runs (first cell, how many) and the poses over
+the cells (`held_fill`); tell the person that one line: `poses/cells`, e.g. `24/27` before and `27/27` after. With no
+RIFE the cells are delivered as filmed and a warning names the motion and the install line; `--fill-held off` cuts as
+before. A cut asked for above its clip's rate (`--out-fps 60` on a 24 fps clip) is made of frames between, never
frames shown again ([loop repair](loop-repair.md) section 7).
**The fundamental period: recorded, never cut on the pixels' word.** A motion that repeats every