← ClaudeAtlas

slice-video-frameslisted

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.
Yuki001/game-dev-skills · ★ 65 · Data & Documents · score 72
Install: claude install-skill Yuki001/game-dev-skills
# 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`, a