Video Downloader
Download YouTube videos with customizable quality and format settings, including audio extraction to MP3.
You need to download a conference talk for offline viewing or extract the audio from a podcast video, but online downloaders are full of ads and malware. This playbook downloads YouTube videos with customizable quality and format settings, including audio-only MP3 extraction.
Who it's for: content creators downloading reference videos for reaction content or analysis, podcast listeners extracting audio from video-only podcast episodes, researchers archiving conference talks and lectures for offline study, educators downloading educational videos for classroom use in low-connectivity environments, media producers downloading source footage for editing and repurposing
Example
"Download this conference talk playlist in 1080p and extract audio" → Download pipeline: YouTube URL parsing and metadata extraction, quality selection (1080p, 720p, or best available), format configuration (MP4 video or MP3 audio-only), batch download support for playlists, and organized output with proper filenames based on video titles
CLAUDE.md Template
New here? 3-minute setup guide → | Already set up? Copy the template below.
npx ccplaybooks add video-downloader# Video Downloader
Download YouTube videos with customizable quality and format settings, including audio extraction.
## Basic Usage
```bash
python scripts/download_video.py "https://www.youtube.com/watch?v=VIDEO_ID"
```
## Options
Get new playbooks like this one
One email a week with new Claude Code workflows. Free, like everything here.
No spam. Unsubscribe anytime.
What This Does
Download YouTube videos with customizable quality and format settings. Choose resolution (1080p, 720p, etc.), format (MP4, WebM), or extract audio only as MP3.
Quick Start
Step 1: Download the Template
Click Download above and place in any folder:
mv ~/Downloads/CLAUDE.md ~/Documents/
Step 2: Start Claude
cd ~/Documents
claude
Step 3: Download a Video
"Download this YouTube video: [URL]"
Quality Options
| Quality | Resolution | Best For |
|---|---|---|
| best | Highest available | Archiving |
| 1080p | Full HD | Most uses |
| 720p | HD | Good balance |
| 480p | SD | Smaller files |
| 360p | Low | Minimal storage |
Format Options
| Format | Extension | Notes |
|---|---|---|
| MP4 | .mp4 | Most compatible |
| WebM | .webm | Web-optimized |
| MKV | .mkv | High quality container |
| MP3 | .mp3 | Audio only |
Example Commands
Download in Best Quality
Download this YouTube video in best quality: [URL]
Specific Resolution
Download this video in 720p: [URL]
Audio Only
Extract the audio from this video as MP3: [URL]
Custom Location
Download this video to my Videos folder: [URL]
Notes
- Auto-installs dependencies: yt-dlp installs automatically if needed
- Stream merging: Handled automatically for best quality
- File naming: Uses video title automatically
- Higher resolution = longer download: 1080p takes more time and space
Tips
- Check available quality: Not all videos have 1080p
- Use MP3 for podcasts: Smaller files, audio only
- Batch downloads: Multiple URLs work sequentially
- Storage space: 1080p videos can be 1-2GB+