Individual skill
evo-video-keyframe-extraction
Extracts keyframes from an MP4 video at uniform temporal intervals using OpenCV VideoCapture, saves them with sequential naming (keyframes_001.png, keyframes_002.png, etc.), and converts them in-place from BGR to grayscale.
tasks-evolved/mario-coin-counting/environment/skills/evo-video-keyframe-extraction/SKILL.md
Source commit 84ca182da055fafb6453dcec4a6defdbbfd987c1
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Local scripts
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 97
- Repository last updated
- Sep 10, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- ai-agents Repository topic
- llm-agents Repository topic
- open-world Repository topic
- self-evolving-agents Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 2,298 bytesSKILL.mdcore · 2,298 bytesscripts/video_utils.pyruns · 3,111 bytes
Read excerpt
# evo-video-keyframe-extraction
## Overview
Extracts keyframes from gameplay video using uniform temporal sampling, saves with zero-padded sequential naming, and converts to grayscale in-place.
## Key Concepts
- Uses `cv2.VideoCapture` for video decoding with embedded FFmpeg backend
- Uniform temporal sampling: extract 1 frame per second (frame_interval = int(fps * 1.0))
- Frames saved as PNG with `cv2.imwrite()` using zero-padded naming: `keyframes_001.png`, `keyframes_002.png`, etc.
- Grayscale conversion done in-place: read with `cv2.IMREAD_GRAYSCALE`, overwrite original file
- OpenCV uses BGR channel order (not RGB)
- For a 27-second 60fps video, extracts 27 keyframes (one per second)
## Functions