Slice Video Frames logo

Slice Video Frames

Community
Yuki001
slice-video-frames

Extract ordered still-image frames from local video files with FFmpeg, using a fixed FPS, an exact frame count, explicit timestamps, or every source frame; optionally remove a flat chroma-key background and emit timing metadata. Use for video-to-frame conversion, animation frame sampling, contact-sheet inputs, sprite animation source frames, dataset frames, thumbnail sequences, or any request to split MP4, WebM, MOV, MKV, AVI, or other FFmpeg-readable video into PNG, WebP, or JPEG images.

Overview

PublisherYuki001
Repositorygame-dev-skills
Skill nameslice-video-frames
Stars
104
Forks
13
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Yuki001 on GitHub. Read the source before you install it.

Installation

Install the Slice Video Frames AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Yuki001/game-dev-skills/tree/main/skills/slice-video-frames
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Yuki001/game-dev-skills.git /tmp/game-dev-skills
mkdir -p .claude/skills
cp -r /tmp/game-dev-skills/skills/slice-video-frames .claude/skills/slice-video-frames
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Slice Video Frames in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Slice Video Frames on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Slice Video Frames is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Slice Video Frames

Use the bundled scripts for deterministic extraction and optional chroma-key cleanup. Do not add generation, sprite-sheet packing, motion evaluation, or engine-specific packaging to this skill.

Workflow

  1. Inspect the source clip and confirm the usable time range.
  2. Choose one sampling mode:
    • --fps RATE for evenly timed playback frames;
    • --count N for exactly N representative frames across a range;
    • --timestamps LIST for hand-selected source times;
    • --every-frame for every decoded source frame.
  3. Extract into a new output directory. Keep the default PNG format when quality or alpha matters.
  4. Use --remove-background only for a deliberately flat, solid chroma-key background.
  5. Verify frame count, ordering, dimensions, timing, and alpha before returning the output paths and manifest.

Require the user to choose a sampling mode when intent does not imply one. Avoid --every-frame for long clips unless the user explicitly needs all source frames.

Extract frames

bash
python "$SKILL_DIR/scripts/slice_video_frames.py" input.mp4 frames/ --fps 12
python "$SKILL_DIR/scripts/slice_video_frames.py" input.mp4 frames/ --count 8 --start 0.4 --end 1.6
python "$SKILL_DIR/scripts/slice_video_frames.py" input.mp4 frames/ --timestamps 0.10,0.28,0.55,0.92
python "$SKILL_DIR/scripts/slice_video_frames.py" input.webm frames/ --every-frame

--start and --end accept seconds or HH:MM:SS.mmm. They apply to --fps, --count, and --every-frame. Explicit timestamps are absolute source times and cannot be combined with a range.

For --count, the default --count-position centers samples the center of each equal temporal bin and avoids fragile end-of-file seeks. Use --count-position endpoints only when the first and last usable poses must be represented.

--count and --timestamps resolve requested sample times to the nearest distinct decoded source frames. The manifest records the actual source timestamp for every output and also preserves the requested list for explicit timestamp sampling.

The script stages all frames before writing outputs, refuses to replace existing frames or manifests unless --force is passed, and writes frames.json by default. The manifest contains the source path, sampling mode, source timestamps, per-frame durations when derivable, canvas size, ordered paths, and alpha contract. Use --manifest NAME.json to rename it or --no-manifest to omit it.

Output controls:

  • --format png|webp|jpg selects the image encoding; default png.
  • --prefix NAME changes the default frame_0000 naming prefix.
  • --digits N changes numeric zero padding.
  • --ffmpeg-bin and --ffprobe-bin select non-default binaries.
  • --force authorizes replacement of colliding output files only; it does not clear the directory.

Remove a flat background

For a chroma-keyed source clip, remove the matte during extraction:

bash
python "$SKILL_DIR/scripts/slice_video_frames.py" keyed.mp4 frames/ \
  --fps 12 \
  --remove-background \
  --auto-key border \
  --edge-contract 1

This mode requires Pillow and PNG or WebP output. It uses a soft alpha matte, border sampling, and despill by default. Use --key-color '#00ff00' --auto-key none when the key color is known and the border is unreliable. Use --edge-feather 0.25 only for visibly stair-stepped edges.

To process an already extracted frame independently:

bash
python "$SKILL_DIR/scripts/remove_chroma_key.py" \
  --input frame_0000.png \
  --out frame_0000_alpha.png \
  --auto-key border \
  --soft-matte \
  --transparent-threshold 12 \
  --opaque-threshold 220 \
  --despill

Chroma-key removal is unsuitable when the subject shares the key color or has hair, fur, smoke, glass, liquids, translucency, reflections, soft shadows, or fine semi-transparent edges. Report the limitation instead of widening thresholds until subject detail disappears.

Verification

Check:

  • the script exits successfully and the manifest frame count matches the files;
  • filenames sort in playback order;
  • source timestamps fall within the requested range and durations are plausible;
  • every frame opens and has the same intended dimensions;
  • no frame is empty, clipped, corrupted, or an unintended duplicate;
  • keyed outputs have alpha, transparent corners, intact interior detail, and no obvious key-color fringe.

When sampling motion for review, inspect both a contact sheet and playback at the manifest timing. Uniform sampling guarantees timing coverage, not good semantic pose selection; use explicit timestamps when particular motion phases matter.

Requirements

  • Python 3.9+.
  • ffmpeg and ffprobe on PATH, or pass their paths explicitly.
  • Pillow only when removing a background.

Do not install dependencies or overwrite existing outputs without user authorization.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Slice Video Frames AI skill do?

Extract ordered still-image frames from local video files with FFmpeg, using a fixed FPS, an exact frame count, explicit timestamps, or every source frame; optionally remove a flat chroma-key background and emit timing metadata. Use for video-to-frame conversion, animation frame sampling, contact-sheet inputs, sprite animation source frames, dataset frames, thumbnail sequences, or any request to split MP4, WebM, MOV, MKV, AVI, or other FFmpeg-readable video into PNG, WebP, or JPEG images.

Why use Slice Video Frames on TypingMind?

Because you install it once and use it with any model. Slice Video Frames is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Slice Video Frames in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Yuki001/game-dev-skills/tree/main/skills/slice-video-frames. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Slice Video Frames?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Slice Video Frames?

As many as you like. As long as a model supports skills, you can use Slice Video Frames with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Slice Video Frames AI skill free?

It is published on GitHub by Yuki001. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇