Skip to main content

Video to Sprite Sheet

Turn videos into transparent PNG sprite sheets, animation metadata, and engine import files with an AI agent or the CLI.

Source video and transparent sprite animation playing in sync, side by side

Download MP4 · Download GIF

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.

Why I built this

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.

Example

Actual sprite sheet: 72 frames · 560×560 cells · 12×6 grid · 12 fps

Transparent knight sprite sheet containing all 72 frames

The preview above is scaled down. Full-resolution PNG (6720×3360) · Atlas JSON · Source video · Example settings

Install

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].

Use with an AI agent

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

Manual use

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

Engine support

Engine Export
Unity 2022.3+ with 2D Sprite PNGs + Editor importer for sprites and an animation clip
Unreal Engine / Paper2D PNGs + .paper2dsprites descriptors for Flipbook setup
Phaser JSON atlases + multi-page loading and animation helpers

Also exports generic PNG grids and JSON hash/array atlases. Export files are tested; verify import and playback in your engine version. Import guide →

Why sprite sheets?

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 →

License

MIT. You can use, modify, and distribute this software, including commercially, provided you retain the copyright and license notice. The software is provided “as is,” without warranty.

Metadata

Release files for video-to-spritesheet 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for video-to-spritesheet 0.2.0
File Size Uploaded Provenance Actions
video_to_spritesheet-0.2.0.tar.gz 27.9 kB Without provenance Details for video_to_spritesheet-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for video-to-spritesheet 0.2.0
File Interpreter ABI Platform Actions
video_to_spritesheet-0.2.0-py3-none-any.whl Python 3 none any Details for video_to_spritesheet-0.2.0-py3-none-any.whl

Total release size: 52.7 kB

Release files / video_to_spritesheet-0.2.0.tar.gz

Download URL video_to_spritesheet-0.2.0.tar.gz
Size 27.9 kB
Tags Source
SHA-256 checksum
How to use checksums
233bf13233d9d3fb67857c2f8b85924d3d20411d41feb28f29295536fc247a67
BLAKE2b-256 checksum
How to use checksums
c65d6d3fdd6c9ea17a74d418812e6979700da9df7d25e3cc7aae1f32b66f4d22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / video_to_spritesheet-0.2.0-py3-none-any.whl

Download URL video_to_spritesheet-0.2.0-py3-none-any.whl
Size 24.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58b6713ca8c87ed276b708e3b0edd62148562f5447bc53fc258e81fafab7f76b
BLAKE2b-256 checksum
How to use checksums
829a861e9e6afa6225aa7e864647c35032e2a5801b1c79d3ab9f3659bf4766b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for video-to-spritesheet 0.2.0

Provenance

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page