yt-thumbnails
v1.0.2
Published
YouTube video thumbnail grid generator - Extract frames and create beautiful grid images from YouTube videos
Maintainers
Readme
yt-thumbnails
YouTube video thumbnail grid generator. Extract frames from YouTube videos and create a grid image.
Requirements
# macOS
brew install ffmpeg yt-dlpInstallation
npm install -g yt-thumbnailsUsage
yt-thumbnails "<youtube-url>"Options
| Option | Short | Description | Default |
| ----------------- | ----- | ------------------------------- | ------------------- |
| --grid <n> | -g | Grid size (NxN) | 4 |
| --scene | -s | Use scene detection mode | uniform |
| --threshold <n> | -t | Scene detection threshold (0-1) | 0.4 |
| --output <path> | -o | Output file path | grid_NxN_mode.jpg |
Examples
# Basic 4x4 grid with uniform intervals
yt-thumbnails "https://youtube.com/watch?v=xxx"
# 6x6 grid
yt-thumbnails "https://youtube.com/watch?v=xxx" --grid 6
# Scene detection mode (better for music videos)
yt-thumbnails "https://youtube.com/watch?v=xxx" --scene
# Scene detection with lower threshold
yt-thumbnails "https://youtube.com/watch?v=xxx" --scene --threshold 0.3
# Custom output path
yt-thumbnails "https://youtube.com/watch?v=xxx" -o ~/thumbnails/video.jpgModes
Uniform Mode (default)
Extracts frames at equal time intervals throughout the video.
Scene Mode (--scene)
Detects scene changes and extracts frames at transition points. Better for videos with distinct scenes like music videos or trailers.
If no scene changes are detected, falls back to uniform mode automatically.
License
MIT
