Tooluck logoTooluck
SKILL.md

video-frame-extraction

Agent skill frombenchflow-ai/skillsbench

Extract frames from video files and save them as images using OpenCV

How to install video-frame-extraction

install video-frame-extraction
# install the skillsbench pack with the skills CLI
npx skills add benchflow-ai/skillsbench

# or add only this skill to Claude Code: copy the folder

tasks-extra/pedestrian-traffic-counting/environment/skills/video-frame-extraction/

# into

~/.claude/skills/video-frame-extraction/ (all projects)

.claude/skills/video-frame-extraction/ (one project)

tasks-extra/pedestrian-traffic-counting/environment/skills/video-frame-extraction/SKILL.md

Apache-2.0Full file
1# Video Frame Extraction Skill
2
3## Purpose
4This skill enables extraction of individual frames from video files (MP4, AVI, MOV, etc.) using OpenCV. Extracted frames are saved as image files in a specified output directory. It is suitable for video analysis, creating training datasets, thumbnail generation, and preprocessing video content for further processing.
5
6## When to Use
7- Extracting frames for machine learning training data
8- Creating image sequences from video content
9- Generating video thumbnails or preview images
10- Preprocessing videos for object detection or tracking
11- Converting video segments to image collections for analysis
12- Sampling frames at specific intervals for time-lapse effects
13
14## Required Libraries
15
16The following Python libraries are required:
17
18```python
19import cv2
20import os
21import json
22from pathlib import Path
23```
24
25## Input Requirements
26- **File formats**: MP4, AVI, MOV, MKV, WMV, FLV, WEBM
27- **Video codec**: Must be readable by OpenCV (most common codecs supported)
28- **File access**: Read permissions on source video
29- **Output directory**: Write permissions on destination folder
30- **Disk space**: Ensure sufficient space for extracted frames (uncompressed images)
31
32## Output Schema
33All extraction results must be returned as valid JSON conforming to this schema:
34
35```json
36{
37 "success": true,
38 "source_video": "sample.mp4",
39 "output_directory": "/path/to/frames",
40 "frames_extracted": 150,
41 "extraction_params": {
42 "interval": 1,
43…

Excerpt shown under the repository's Apache-2.0 license.

More skills in skillsbench

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Leonxlnx /

taste-skill
113k

Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages

CCCXCU1 skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates