Movie sprite
One character picture in. A transparent idle loop out.
movie-sprite · Page · Contract
The picture is fitted on a green plate and sent once to a video model, with the same picture at both ends. The take is finished locally: keyed to transparency, the face held still so blinks and mouth shapes can be added separately, the loop closed, and every frame checked.
Steps
| Step | Node types |
|---|---|
| Fit onto a green plate The character's visible silhouette is cropped, scaled uniformly into the take's frame with a margin, and composited onto flat green. The plate is both ends of the take, so its pixels are part of the paid request. | Fit onto a green plate movie_sprite/plate |
| Write the motion brief The standing-idle template, then your direction, the motion you ask for and your constraints. With no direction at all, a quiet listening idle is asked for. | Write the motion brief movie_sprite/brief |
| Generate a take One video call animates the plate, with the same picture at both ends. A new take is a deliberate new draw (a reroll), never a silent retry; a run that stops while the clip renders collects it next time instead of paying for it again. | Generate a take movie_sprite/take |
| Key, loop and verify Free and local: green is removed, the face is held to the first frame, the loop is closed by optical flow, and every frame is decoded again and checked. Changing only the finishing settings reruns only this step. | Key, loop and verify movie_sprite/finish |
Outputs
| outputs/loop.mkv | The loop: lossless, with transparency |
| outputs/canonical.png | Its exact first frame, for the face workflow |
| outputs/preview.mp4 | A quick preview on a dark background, without transparency |
| outputs/contact_sheet.png | Sampled frames on light, dark and checkerboard grounds |
| outputs/manifest.json | Size, frame count, playback rate and digests |
| outputs/report.json | The settings used and a hash of every frame |
| outputs/frames.zip | Every frame as a numbered PNG, when the finishing settings export them |
Try it
An original geometric actor, as a still and as a lossless clip, with the inputs that use them, written by uv run python src/fx_games/workflows/movie_sprite/inputs/supplied_clip/make_inputs.py out/movie-sprite-input (the clip needs FFmpeg)
uv run python -m grida.fx plan movie-sprite --inputs out/movie-sprite-input/take.yaml uv run python -m grida.fx run movie-sprite --inputs out/movie-sprite-input/clip.yaml --deliver loop=out/movie-sprite-try/loop.mkv --deliver canonical=out/movie-sprite-try/canonical.png uv run python -m grida.fx inspect movie-sprite --verify
Examples
| Yuzu idle | yuzu-idle | made with an earlier version |