Skip to main content
GDT
SkillFreeBy GameSkillGameSkill original

Video to Sprite Sheet (AI clip to looping game sprites)

/video-to-sprite-sheet

A GameSkill original that turns a short clip of one character on a plain background, such as an image-to-video result, into a game-ready sprite sheet: automatic key colour, despill, hard alpha, an automatically found seamless loop, one crop box for every frame so nothing jitters, bottom-centre anchor, fixed cells and an optional colour budget or palette. Exports PNG, JSON and a Godot 4 SpriteFrames .tres. Python 3 standard library plus ffmpeg.

License
MIT
By
By GameSkill
Download ZIP

Tested by GameSkill

27/27 checks passed on ffmpeg 7.1 + Python 3, sheet loaded in Godot 4.7.2 (2026-11-09): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.

Test report

GameSkill's tested copy

Written and tested by GameSkill for gameskill.dev. The ZIP holds the whole skill: SKILL.md and its Chinese version, scripts, a runnable example, tests, the self-check list and our test report.

Download tested ZIP (45 KB)Roadmap: Art assets

A GameSkill original, released under MIT. The ZIP keeps LICENSE and CREDITS.md, which lists the workflow inspiration, the CC0 test assets and the third-party libraries with their licenses.

Video to Sprite Sheet (AI clip to looping game sprites)

Self-check

  • 接缝 seam 低于 0.01,没有 WARN / Loop seam under 0.01 with no WARN
  • 放大 4 倍看过,没有绿边、没有抖动 / Looked at 4x: no green halo, no jitter
  • 同一角色的所有动作用同样的 cell 和 work / Every action of a character uses the same cell and work size

Install

Tell your AI

Install the skill from https://gameskill.dev/skills/video-to-sprite-sheet/install.md

GameSkill's tested copy

Tested copy into .claude/skills/
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/video-to-sprite-sheet.zip -o /tmp/gameskill-video-to-sprite-sheet.zip
unzip -oq /tmp/gameskill-video-to-sprite-sheet.zip -d .claude/skills
rm /tmp/gameskill-video-to-sprite-sheet.zip

What you get

  • tools/vid2sheet.py: key, despill, loop search, fixed crop, downscale, colour budget or palette, PNG + JSON + Godot SpriteFrames
  • example/make_clip.py: our Kettlebot walk-cycle test clip on a noisy green screen, H.264 like a generated clip
  • 15 checks in test/run_tests.py, including Godot 4 loading the exported animation

Good fit

  • Image-to-video or recorded animation turned into 2D game frames
  • Generated sprite animations that pop at the loop, wobble or keep a green halo
  • Batching walk, idle and attack clips of one character into matching sheets

Not for

  • Generating the clip itself: any image-to-video tool, or agent-sprite-forge's workflow
  • Drawing sprites by hand or in code: see code-sprites-16
  • Cleaning a single AI pixel image: see pixel-snap-cleanup

Try this prompt

Prompt
Turn this 3-second clip of my original character walking on a green screen into a looping 64 px sprite sheet with 16 colours, and give me a Godot SpriteFrames for it.

About this skill

A GameSkill original. Image-to-video models and recordings give smooth motion but not sprites: a green background, soft edges with spill, a loop that does not close, a character that drifts, too many frames and colours. tools/vid2sheet.py handles all of it in one command with Python 3 and ffmpeg. It keys the auto-detected background, despills it, makes the alpha hard, finds the closest-matching loop, crops every frame with one box and anchors it bottom-centre. It then downscales to a fixed cell, optionally limits the colours or maps them to a palette, and writes a PNG sheet, a JSON and a Godot 4 SpriteFrames resource.

Agent steps

  1. Get a clip of one original character on a flat background, camera locked, the action repeated.
  2. Convert with vid2sheet and read the seam, colour count and jitter it reports.
  3. Look at the sheet at 4x, then use the .tres in Godot or the JSON elsewhere.

Common problems it solves

  • Green halos and soft edges left by keying.
  • Loops that pop and characters that wobble from frame to frame.
  • Hundreds of frames and colours where a game needs a handful.

Credits

The idea of turning AI video into sprite animation comes from a post by @azaticus (link only; no code or text was used). Kettlebot, the code and the text are ours.

Requirements

  • Python 3 standard library
  • ffmpeg and ffprobe (tested with 7.1)
  • Godot 4 only to use the .tres (tested on 4.7.2)

Topics

FAQ

MATCHED PRO KIT$49/yr

AI 2D Asset & Sprite Pipeline Kit

Turn raw AI-generated video clips into crisp transparent 2D sprite sheets: chroma-key + despill commands, 0px foot-root anchor locking, non-linear hit-stop action pacing (4.33s -> 1.88s), and Phaser 3 / Godot 4 SpriteFrames exporters.

Based on AI video to sprite animation (post, idea only) by @azaticus (no licence, idea only, no code or text used). Ideas only: GameSkill wrote the code and text; CREDITS.md in the ZIP lists every source.

Works well with

Skills the author points to as related or as the better fit for neighbouring tasks.

Agent Sprite Forge
GDT
Skill
4.9k

Agent Sprite Forge

Five agent skills that turn one approved character still into a game-ready sprite set: one image-to-video clip per action, then deterministic Python tools key, register, loop, retime, palette-lock and export it for Godot, Aseprite and the web. Also maps, tiles and code-drawn art.

GodotWeb (Phaser / Three.js)Engine-agnosticClaude Code · Codex
Code Sprites 16
WEB
Skill
By GameSkill

Code Sprites 16 (pixel sprites drawn in code, locked palette)

A GameSkill original for browser games whose sprites are written in code: text rows of palette indices over a locked 16-colour palette, no image files. A dependency-free sprites.js validates, bakes and draws them crisp by origin; a Node checker fails ragged rows, illegal characters, empty or resized frames, extra colours and wrong sizes and writes a PNG contact sheet. Ships Seed Courier, an original 16-colour platformer tested in headless Chrome so every pixel on screen is a palette colour.

Web (Phaser / Three.js)Claude Code · Codex +2
Pixel Snap Cleanup
GDT
Skill
By GameSkill

Pixel Snap Cleanup (AI fake pixels to true pixel art)

A GameSkill original that turns AI "fake pixel" art into true pixel art at the grid you choose: snap to a real grid with the bundled Pixel Snapper (MIT), force 0/255 alpha and a fixed palette, hit the exact size, then check it is CLEAN and imports crisp into Godot 4. Works on single sprites and on animation frames, which share one grid.

GodotWeb (Phaser / Three.js)Engine-agnosticClaude Code · Codex +2

Similar skills

pixelfx
WEB
Skill
By GameSkill

pixelfx

244 pixel-art effects written as code (fire, explosions, magic, weather, UI, pickups, critters) plus a draft, render, look, refine loop for making new ones; every effect exports a sprite sheet with Aseprite-style JSON for Godot, Unity, Phaser or any engine.

Web (Phaser / Three.js)GodotUnityClaude Code · Codex +2
Shader Art Coding
WEB
Skill
By GameSkill

Shader Art Coding (GLSL / Shadertoy)

A tested library of 186 GLSL building blocks plus a workflow for procedural fragment shaders: SDF raymarching, 2D distance fields, noise and fBm, terrain, water, clouds, lighting and tonemapping. A Python bundler inlines only the functions a shader uses, and a checker lints it for the mistakes that break WebGL. Good for game backdrops, title screens, portals, pickups and full-screen effects.

Web (Phaser / Three.js)GodotEngine-agnosticClaude Code · Codex +4
Codixel
WEB
Skill
By GameSkill

Codixel

A pixel-art skill built on one idea: the agent writes code, it is not a painter. It asks for a reference image, then removes the background, pixelates, rigs with bones and animates it in code with a 2,000-line toolkit (core/pixel.js), showing every step on a sheet before making game files.

Engine-agnosticWeb (Phaser / Three.js)GodotClaude Code · Codex +2
open-game-skills
GDT
Starter kit
By GameSkill

open-game-skills

An MIT pack of about 190 SKILL.md agent skills for game design: combat feel, camera, traversal, world, validation, 2D/Spine and art pipeline, with a dispatcher and adapters for Three.js, PixiJS, Phaser, Cocos, Godot, Unity and Unreal.

Engine-agnosticGodotUnityClaude Code · Codex +1