home / skills / dkyazzentwatwa / chatgpt-skills / video-thumbnail-extractor
This skill extracts frames from videos at set times or intervals, detects best frames, and generates thumbnail grids for previews.
npx playbooks add skill dkyazzentwatwa/chatgpt-skills --skill video-thumbnail-extractorReview the files below or copy the command above to add this skill to your agents.
---
name: video-thumbnail-extractor
description: Extract frames from videos at specific timestamps or intervals, find best frames, and generate thumbnail grids for previews.
---
# Video Thumbnail Extractor
Extract frames and create thumbnails from videos.
## Features
- **Frame Extraction**: Extract at timestamps or intervals
- **Best Frame Detection**: Find sharpest/brightest frames
- **Grid Previews**: Contact sheet thumbnails
- **Batch Processing**: Process multiple videos
- **Multiple Formats**: PNG, JPG output
## CLI Usage
```bash
python video_thumbnail_extractor.py --input video.mp4 --time 00:01:30 --output thumb.jpg
python video_thumbnail_extractor.py --input video.mp4 --grid 4x4 --output preview.jpg
```
## Dependencies
- moviepy>=1.0.3
- pillow>=10.0.0
- numpy>=1.24.0
This skill extracts frames from videos at specific timestamps or regular intervals, identifies the best frames based on sharpness and brightness, and generates contact-sheet thumbnail grids for quick previews. It supports batch processing and common image formats (PNG, JPG), making visual summaries fast and scriptable. The tool is implemented in Python and integrates with common media libraries for reliable results.
Given an input video, the skill seeks to specified timestamps or samples frames at a fixed interval, decodes frames using a media backend, and converts them to image buffers. It evaluates each candidate frame using simple heuristics (edge/contrast metrics for sharpness and pixel intensity for brightness) to rank the best frames. It can output single thumbnails or compose a grid/contact sheet of multiple frames into one preview image.
Which formats are supported for output?
The skill exports common image formats such as PNG and JPG; input relies on the video formats supported by the underlying media library.
Can it process multiple videos at once?
Yes, batch processing is supported so you can run the extractor across many files in a single operation.
How are the best frames chosen?
Frames are ranked using heuristics like edge-based sharpness (contrast) and average brightness; thresholds and weights are configurable for different content types.