Local video-to-sprite-sheet conversion for humans and AI agents
pip install video-to-spritesheet Copy PIP instructions
Turn videos into transparent PNG sprite sheets, animation metadata, and engine import files with an AI agent or the CLI.
Both sides show the same samples at the same size. The MP4 and exported frames preserve the source's 560×560 resolution; the GIF is a smaller preview.
I made this for a game I'm working on. I animate my characters with AI video models, and every animation came out as an MP4, which no game engine can use directly. Pulling out frames, removing the background, and packing a sheet by hand for every single animation got old fast, so I automated it. Now one prompt to a coding agent turns a clip into an engine-ready sprite sheet.
Actual sprite sheet: 72 frames · 560×560 cells · 12×6 grid · 12 fps
The preview above is scaled down. Full-resolution PNG (6720×3360) · Atlas JSON · Source video · Example settings
Requires Python 3.10+ and FFmpeg 5+ on your PATH.
pipx install video-to-spritesheet # or: uv tool install video-to-spritesheet video-to-spritesheet doctor Plain pip install video-to-spritesheet works too. For the MCP server, install video-to-spritesheet[mcp].
Give Codex, Claude Code, or another coding agent this prompt:
Use https://github.com/KarlynG/video-to-spritesheet. Read AGENTS.md and the bundled skill, install dependencies, and convert character.mp4 for Unity into 48 transparent 128×128 frames in an 8×6 sheet. Remove background #00B140, inspect the preview, and validate the output.
Change the engine, dimensions, grid, and background color to match your asset.
Agent instructions · Skill · Optional MCP setup
video-to-spritesheet convert character.mp4 --output output/character --format unity To reproduce the knight example, clone the repository and run:
video-to-spritesheet convert examples/knight/input.mp4 --output output/knight --config examples/knight/options.json video-to-spritesheet validate output/knight/manifest.json CLI & Python guide · Format reference · Development
Also exports generic PNG grids and JSON hash/array atlases. Export files are tested; verify import and playback in your engine version. Import guide →
A standard 2D animation workflow: share textures, batch rendering, and control individual frames. Frame count and resolution help manage memory; packing alone doesn't guarantee memory savings. More about the benefits →
spritesheet sprite-sheet video ffmpeg mcp animation agents gamedev unity phaser unreal
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.




