
Youtube Downloader
- 41 installs
- 16 repo stars
- Updated November 20, 2025
- jackspace/claudeskillz
Download videos, audio, playlists, and subtitles from YouTube and 1000+ sites using yt-dlp with quality selection and format conversion.
About
This skill uses yt-dlp to download video and audio from YouTube and 1000+ other sites. A developer uses it to grab videos in any quality, extract audio as MP3/M4A/FLAC, pull subtitles, and batch-process URLs.
- Quality selection up to 8K/HDR plus audio extraction and format conversion
- Playlist/channel downloads, subtitles, and batch operations with retries
Youtube Downloader by the numbers
- 41 all-time installs (skills.sh)
- Ranked #1,143 of 2,719 Automation & Workflows skills by installs in the Skillselion catalog
- Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/jackspace/claudeskillz --skill youtube-downloaderAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 41 |
|---|---|
| repo stars | ★ 16 |
| Last updated | November 20, 2025 |
| Repository | jackspace/claudeskillz ↗ |
What it does
Download videos, audio, playlists, and subtitles from YouTube and 1000+ sites using yt-dlp with quality selection and format conversion.
Files
YouTube & Video Downloader Skill
Download videos and audio from YouTube and 1000+ other websites using yt-dlp, the most powerful and actively maintained YouTube downloader.
When to Use This Skill
Use when you need to:
- Download YouTube videos in any quality (144p to 8K, HDR, 60fps)
- Extract audio from videos (MP3, M4A, FLAC, WAV, Opus)
- Download entire playlists or channels
- Get video subtitles/captions in multiple languages
- Download live streams or premieres
- Archive content before it's deleted
- Download from 1000+ websites (not just YouTube)
- Batch download multiple videos
- Download with custom naming and organization
- Extract video metadata and thumbnails
Supported Websites (1000+)
Video Platforms
- YouTube (videos, playlists, channels, shorts, live streams)
- Vimeo, Dailymotion, Twitter/X, Facebook
- TikTok, Instagram (videos, reels, stories)
- Twitch (VODs, clips, live streams)
- Reddit (v.redd.it videos)
- Pornhub (videos)
- Youporn (videos)
Educational
- Coursera, Udemy, Khan Academy
- edX, Pluralsight, LinkedIn Learning
News & Media
- CNN, BBC, NBC, CBS
- ESPN, Sky Sports
And 1000+ more...
Installation
yt-dlp requires Python 3.7+ and ffmpeg for format conversion:
# Install yt-dlp (if not already installed)
pip install -U yt-dlp
# Install ffmpeg (required for format conversion)
# Ubuntu/Debian:
sudo apt install ffmpeg
# macOS:
brew install ffmpeg
# Verify installation
yt-dlp --version
ffmpeg -versionBasic Usage
Download Best Quality Video
yt-dlp "https://www.youtube.com/watch?v=VIDEO_ID"Download Best Quality Audio (as M4A)
yt-dlp -f "bestaudio" "https://www.youtube.com/watch?v=VIDEO_ID"Download and Convert to MP3
yt-dlp -x --audio-format mp3 --audio-quality 0 "https://www.youtube.com/watch?v=VIDEO_ID"Download Specific Quality
# 1080p video with best audio
yt-dlp -f "bestvideo[height<=1080]+bestaudio/best[height<=1080]" "URL"
# 4K video
yt-dlp -f "bestvideo[height<=2160]+bestaudio/best" "URL"
# 720p video
yt-dlp -f "bestvideo[height<=720]+bestaudio/best[height<=720]" "URL"Advanced Features
Download Entire Playlist
yt-dlp "https://www.youtube.com/playlist?list=PLAYLIST_ID"Download Playlist Range
# Videos 1-10
yt-dlp --playlist-start 1 --playlist-end 10 "PLAYLIST_URL"
# Videos from #5 onwards
yt-dlp --playlist-start 5 "PLAYLIST_URL"Download All Videos from Channel
yt-dlp "https://www.youtube.com/@ChannelName/videos"Download with Subtitles
# Download all available subtitles
yt-dlp --write-subs --write-auto-subs --sub-langs "en,es,fr" "URL"
# Download and embed subtitles
yt-dlp --write-subs --embed-subs --sub-langs "en.*" "URL"
# Download only subtitles (no video)
yt-dlp --skip-download --write-subs --write-auto-subs "URL"Custom Naming and Organization
# Custom filename template
yt-dlp -o "%(uploader)s/%(playlist)s/%(title)s.%(ext)s" "PLAYLIST_URL"
# By date uploaded
yt-dlp -o "%(upload_date)s - %(title)s.%(ext)s" "URL"
# With video ID
yt-dlp -o "%(title)s [%(id)s].%(ext)s" "URL"Download Thumbnails
# Download and embed thumbnail
yt-dlp --write-thumbnail --embed-thumbnail "URL"
# Download thumbnail only
yt-dlp --write-thumbnail --skip-download "URL"Download Metadata
# Write metadata to JSON file
yt-dlp --write-info-json "URL"
# Write metadata to description file
yt-dlp --write-description "URL"Quality Selection Guide
Video Quality Formats
# Best overall quality (may be WebM)
yt-dlp -f "bestvideo+bestaudio/best" "URL"
# Best MP4 format (most compatible)
yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]" "URL"
# 4K (2160p) maximum
yt-dlp -f "bestvideo[height<=2160]+bestaudio" "URL"
# 1080p maximum
yt-dlp -f "bestvideo[height<=1080]+bestaudio" "URL"
# 720p maximum
yt-dlp -f "bestvideo[height<=720]+bestaudio" "URL"
# 60fps preferred
yt-dlp -f "bestvideo[fps>30]+bestaudio/best" "URL"Audio Quality Formats
# Best audio quality (extract as M4A)
yt-dlp -f "bestaudio" "URL"
# Extract as MP3 (best quality)
yt-dlp -x --audio-format mp3 --audio-quality 0 "URL"
# Extract as FLAC (lossless)
yt-dlp -x --audio-format flac "URL"
# Extract as Opus (efficient)
yt-dlp -x --audio-format opus "URL"
# Extract as WAV (uncompressed)
yt-dlp -x --audio-format wav "URL"List Available Formats
Before downloading, check what formats are available:
yt-dlp -F "URL"This shows all available video and audio streams with:
- Format ID
- Extension
- Resolution
- FPS
- Codec
- File size
- Bitrate
Then download specific format:
yt-dlp -f FORMAT_ID "URL"Batch Download
From File
Create a text file with URLs (one per line):
https://www.youtube.com/watch?v=VIDEO1
https://www.youtube.com/watch?v=VIDEO2
https://www.youtube.com/watch?v=VIDEO3Download all:
yt-dlp -a urls.txtWith Archive
Track downloaded videos to avoid re-downloading:
yt-dlp --download-archive archive.txt "PLAYLIST_URL"This creates archive.txt with IDs of downloaded videos. On subsequent runs, yt-dlp skips already downloaded videos.
Filtering and Selection
Date Filters
# Videos from 2024
yt-dlp --dateafter 20240101 "CHANNEL_URL"
# Videos before 2023
yt-dlp --datebefore 20230101 "CHANNEL_URL"
# Videos between dates
yt-dlp --dateafter 20230101 --datebefore 20231231 "CHANNEL_URL"View Count Filters
# Videos with 1M+ views
yt-dlp --match-filter "view_count > 1000000" "CHANNEL_URL"
# Videos with less than 10K views
yt-dlp --match-filter "view_count < 10000" "CHANNEL_URL"Duration Filters
# Videos longer than 10 minutes
yt-dlp --match-filter "duration > 600" "PLAYLIST_URL"
# Videos shorter than 5 minutes
yt-dlp --match-filter "duration < 300" "PLAYLIST_URL"Live Streams
Download Live Stream
# Wait for stream to start and download
yt-dlp --wait-for-video 60 "LIVE_STREAM_URL"
# Download stream as it's happening (may be incomplete if interrupted)
yt-dlp "LIVE_STREAM_URL"Rate Limiting and Network Options
# Limit download speed (e.g., 1MB/s)
yt-dlp --limit-rate 1M "URL"
# Set number of retries
yt-dlp --retries 10 "URL"
# Wait between downloads (in seconds)
yt-dlp --sleep-interval 5 "PLAYLIST_URL"
# Use specific proxy
yt-dlp --proxy "http://proxy.server:port" "URL"
# Use cookies from browser (bypass age restrictions)
yt-dlp --cookies-from-browser chrome "URL"Geo-Restriction Bypass
# Use proxy
yt-dlp --proxy "socks5://proxy.server:1080" "URL"
# Use specific geo-bypass country
yt-dlp --geo-bypass-country US "URL"Post-Processing
Video Post-Processing
# Merge video and audio to MP4
yt-dlp --merge-output-format mp4 "URL"
# Re-encode to H.264
yt-dlp --recode-video mp4 "URL"
# Add metadata
yt-dlp --add-metadata "URL"
# Embed thumbnail
yt-dlp --embed-thumbnail "URL"Audio Post-Processing
# Extract audio and convert to MP3
yt-dlp -x --audio-format mp3 --audio-quality 0 "URL"
# Add metadata to audio file
yt-dlp -x --audio-format mp3 --add-metadata "URL"Common Use Cases
1. Download Music from YouTube
yt-dlp -x --audio-format mp3 --audio-quality 0 \
-o "%(artist)s - %(title)s.%(ext)s" \
--add-metadata \
--embed-thumbnail \
"MUSIC_VIDEO_URL"2. Download Educational Course
yt-dlp -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" \
--write-subs --embed-subs \
--write-info-json \
"COURSE_PLAYLIST_URL"3. Archive Channel (New Videos Only)
yt-dlp --download-archive downloaded.txt \
-o "%(uploader)s/%(upload_date)s - %(title)s.%(ext)s" \
-f "bestvideo[height<=1080]+bestaudio/best" \
"https://www.youtube.com/@ChannelName/videos"4. Download Podcast as Audio
yt-dlp -x --audio-format mp3 --audio-quality 0 \
-o "%(playlist)s/%(playlist_index)s. %(title)s.%(ext)s" \
--add-metadata \
"PODCAST_PLAYLIST_URL"5. Download Conference Talks
yt-dlp -f "bestvideo[height<=720]+bestaudio" \
-o "Conference/%(title)s.%(ext)s" \
--write-subs --embed-subs --sub-langs en \
"CONFERENCE_PLAYLIST_URL"6. Batch Download from Multiple Sites
# Create urls.txt with mixed URLs (YouTube, Vimeo, etc.)
yt-dlp -a urls.txt \
-f "bestvideo+bestaudio/best" \
-o "%(extractor)s/%(uploader)s/%(title)s.%(ext)s"Configuration File
Create ~/.config/yt-dlp/config for default options:
# Default format
-f bestvideo[height<=1080]+bestaudio/best
# Output template
-o ~/Downloads/%(uploader)s/%(title)s.%(ext)s
# Embed metadata
--add-metadata
--embed-thumbnail
# Write subtitles
--write-subs
--sub-langs en
# Continue on errors
--ignore-errors
# Rate limit
--limit-rate 5MTroubleshooting
Video Unavailable
# Try with cookies from browser
yt-dlp --cookies-from-browser chrome "URL"
# Update yt-dlp
pip install -U yt-dlpAge-Restricted Content
# Use browser cookies
yt-dlp --cookies-from-browser firefox "URL"
# Or login with credentials
yt-dlp --username YOUR_USERNAME --password YOUR_PASSWORD "URL"Format Not Available
# List all formats first
yt-dlp -F "URL"
# Then select specific format
yt-dlp -f FORMAT_ID "URL"Slow Downloads
# Use multiple connections
yt-dlp --concurrent-fragments 4 "URL"
# Or use external downloader
yt-dlp --external-downloader aria2c "URL"Integration with Other Tools
FFmpeg Integration
yt-dlp automatically uses ffmpeg when installed for:
- Merging video and audio streams
- Converting formats
- Embedding thumbnails and metadata
- Post-processing
Aria2c for Faster Downloads
yt-dlp --external-downloader aria2c \
--external-downloader-args "-x 16 -s 16 -k 1M" \
"URL"Legal and Ethical Considerations
⚠️ Important:
- Only download content you have rights to
- Respect copyright and Terms of Service
- Don't distribute copyrighted content
- YouTube's ToS prohibits downloading most content
- Use for personal archival and educational purposes
- Many creators offer official download options
- Consider supporting creators through official channels
Performance Tips
1. Use Archive Files: Track downloads to avoid re-downloading 2. Limit Rate: Prevent network congestion with --limit-rate 3. Concurrent Fragments: Speed up with --concurrent-fragments 4 4. Choose Format Wisely: Lower quality = faster download 5. Use External Downloader: aria2c can be faster than built-in 6. Batch Smartly: Process in chunks, not all at once
Updates
Keep yt-dlp updated for best compatibility:
# Update via pip
pip install -U yt-dlp
# Check version
yt-dlp --versionResources
- yt-dlp GitHub: https://github.com/yt-dlp/yt-dlp
- Supported Sites: https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md
- Format Selection: https://github.com/yt-dlp/yt-dlp#format-selection
---
Version: 1.0.0 Last Updated: 2025-11-07 Maintained by: Claude Code Skills Collection
{
"description": "Download videos, audio, playlists, and channels from YouTube and 1000+ websites using yt-dlp. Supports quality selection, format conversion, subtitle download, playlist filtering, metadata extraction, thumbnail download, and batch operations. Use when downloading YouTube videos in any quality (4K, 8K, HDR), extracting audio as MP3/M4A/FLAC, downloading entire playlists/channels, getting subtitles in multiple languages, converting to specific formats, downloading live streams, archiving content, or batch processing multiple URLs. Optimized for reliability with automatic retries, rate limiting, and error handling.",
"metadata": {
"license": "MIT"
},
"content": "Download videos and audio from YouTube and 1000+ other websites using yt-dlp, the most powerful and actively maintained YouTube downloader.\r\n\r\n\r\nyt-dlp requires Python 3.7+ and ffmpeg for format conversion:\r\n\r\n```bash\r\npip install -U yt-dlp\r\n\r\nsudo apt install ffmpeg\r\n\r\nbrew install ffmpeg\r\n\r\n\r\n### Download Best Quality Video\r\n```bash\r\nyt-dlp \"https://www.youtube.com/watch?v=VIDEO_ID\"\r\n```\r\n\r\n### Download Best Quality Audio (as M4A)\r\n```bash\r\nyt-dlp -f \"bestaudio\" \"https://www.youtube.com/watch?v=VIDEO_ID\"\r\n```\r\n\r\n### Download and Convert to MP3\r\n```bash\r\nyt-dlp -x --audio-format mp3 --audio-quality 0 \"https://www.youtube.com/watch?v=VIDEO_ID\"\r\n```\r\n\r\n### Download Specific Quality\r\n```bash\r\nyt-dlp -f \"bestvideo[height<=1080]+bestaudio/best[height<=1080]\" \"URL\"\r\n\r\nyt-dlp -f \"bestvideo[height<=2160]+bestaudio/best\" \"URL\"\r\n\r\n\r\n### Download Entire Playlist\r\n```bash\r\nyt-dlp \"https://www.youtube.com/playlist?list=PLAYLIST_ID\"\r\n```\r\n\r\n### Download Playlist Range\r\n```bash\r\nyt-dlp --playlist-start 1 --playlist-end 10 \"PLAYLIST_URL\"\r\n\r\nyt-dlp --playlist-start 5 \"PLAYLIST_URL\"\r\n```\r\n\r\n### Download All Videos from Channel\r\n```bash\r\nyt-dlp \"https://www.youtube.com/@ChannelName/videos\"\r\n```\r\n\r\n### Download with Subtitles\r\n```bash\r\nyt-dlp --write-subs --write-auto-subs --sub-langs \"en,es,fr\" \"URL\"\r\n\r\nyt-dlp --write-subs --embed-subs --sub-langs \"en.*\" \"URL\"\r\n\r\nyt-dlp --skip-download --write-subs --write-auto-subs \"URL\"\r\n```\r\n\r\n### Custom Naming and Organization\r\n```bash\r\nyt-dlp -o \"%(uploader)s/%(playlist)s/%(title)s.%(ext)s\" \"PLAYLIST_URL\"\r\n\r\nyt-dlp -o \"%(upload_date)s - %(title)s.%(ext)s\" \"URL\"\r\n\r\nyt-dlp -o \"%(title)s [%(id)s].%(ext)s\" \"URL\"\r\n```\r\n\r\n### Download Thumbnails\r\n```bash\r\nyt-dlp --write-thumbnail --embed-thumbnail \"URL\"\r\n\r\nyt-dlp --write-thumbnail --skip-download \"URL\"\r\n```\r\n\r\n### Download Metadata\r\n```bash\r\nyt-dlp --write-info-json \"URL\"\r\n\r\n\r\n### Video Quality Formats\r\n```bash\r\nyt-dlp -f \"bestvideo+bestaudio/best\" \"URL\"\r\n\r\nyt-dlp -f \"bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]\" \"URL\"\r\n\r\nyt-dlp -f \"bestvideo[height<=2160]+bestaudio\" \"URL\"\r\n\r\nyt-dlp -f \"bestvideo[height<=1080]+bestaudio\" \"URL\"\r\n\r\nyt-dlp -f \"bestvideo[height<=720]+bestaudio\" \"URL\"\r\n\r\nyt-dlp -f \"bestvideo[fps>30]+bestaudio/best\" \"URL\"\r\n```\r\n\r\n### Audio Quality Formats\r\n```bash\r\nyt-dlp -f \"bestaudio\" \"URL\"\r\n\r\nyt-dlp -x --audio-format mp3 --audio-quality 0 \"URL\"\r\n\r\nyt-dlp -x --audio-format flac \"URL\"\r\n\r\nyt-dlp -x --audio-format opus \"URL\"\r\n\r\n\r\n### Date Filters\r\n```bash\r\nyt-dlp --dateafter 20240101 \"CHANNEL_URL\"\r\n\r\nyt-dlp --datebefore 20230101 \"CHANNEL_URL\"\r\n\r\nyt-dlp --dateafter 20230101 --datebefore 20231231 \"CHANNEL_URL\"\r\n```\r\n\r\n### View Count Filters\r\n```bash\r\nyt-dlp --match-filter \"view_count > 1000000\" \"CHANNEL_URL\"\r\n\r\nyt-dlp --match-filter \"view_count < 10000\" \"CHANNEL_URL\"\r\n```\r\n\r\n### Duration Filters\r\n```bash\r\nyt-dlp --match-filter \"duration > 600\" \"PLAYLIST_URL\"\r\n\r\n\r\n### Download Live Stream\r\n```bash\r\nyt-dlp --wait-for-video 60 \"LIVE_STREAM_URL\"\r\n\r\n\r\n```bash\r\nyt-dlp --limit-rate 1M \"URL\"\r\n\r\nyt-dlp --retries 10 \"URL\"\r\n\r\nyt-dlp --sleep-interval 5 \"PLAYLIST_URL\"\r\n\r\nyt-dlp --proxy \"http://proxy.server:port\" \"URL\"\r\n\r\n\r\n```bash\r\nyt-dlp --proxy \"socks5://proxy.server:1080\" \"URL\"\r\n\r\n\r\n### Video Post-Processing\r\n```bash\r\nyt-dlp --merge-output-format mp4 \"URL\"\r\n\r\nyt-dlp --recode-video mp4 \"URL\"\r\n\r\nyt-dlp --add-metadata \"URL\"\r\n\r\nyt-dlp --embed-thumbnail \"URL\"\r\n```\r\n\r\n### Audio Post-Processing\r\n```bash\r\nyt-dlp -x --audio-format mp3 --audio-quality 0 \"URL\"\r\n\r\n\r\n### 1. Download Music from YouTube\r\n```bash\r\nyt-dlp -x --audio-format mp3 --audio-quality 0 \\\r\n -o \"%(artist)s - %(title)s.%(ext)s\" \\\r\n --add-metadata \\\r\n --embed-thumbnail \\\r\n \"MUSIC_VIDEO_URL\"\r\n```\r\n\r\n### 2. Download Educational Course\r\n```bash\r\nyt-dlp -o \"%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s\" \\\r\n --write-subs --embed-subs \\\r\n --write-info-json \\\r\n \"COURSE_PLAYLIST_URL\"\r\n```\r\n\r\n### 3. Archive Channel (New Videos Only)\r\n```bash\r\nyt-dlp --download-archive downloaded.txt \\\r\n -o \"%(uploader)s/%(upload_date)s - %(title)s.%(ext)s\" \\\r\n -f \"bestvideo[height<=1080]+bestaudio/best\" \\\r\n \"https://www.youtube.com/@ChannelName/videos\"\r\n```\r\n\r\n### 4. Download Podcast as Audio\r\n```bash\r\nyt-dlp -x --audio-format mp3 --audio-quality 0 \\\r\n -o \"%(playlist)s/%(playlist_index)s. %(title)s.%(ext)s\" \\\r\n --add-metadata \\\r\n \"PODCAST_PLAYLIST_URL\"\r\n```\r\n\r\n### 5. Download Conference Talks\r\n```bash\r\nyt-dlp -f \"bestvideo[height<=720]+bestaudio\" \\\r\n -o \"Conference/%(title)s.%(ext)s\" \\\r\n --write-subs --embed-subs --sub-langs en \\\r\n \"CONFERENCE_PLAYLIST_URL\"\r\n```\r\n\r\n### 6. Batch Download from Multiple Sites\r\n```bash\r\n\r\nCreate `~/.config/yt-dlp/config` for default options:\r\n\r\n```\r\n-f bestvideo[height<=1080]+bestaudio/best\r\n\r\n-o ~/Downloads/%(uploader)s/%(title)s.%(ext)s\r\n\r\n--add-metadata\r\n--embed-thumbnail\r\n\r\n--write-subs\r\n--sub-langs en\r\n\r\n--ignore-errors\r\n\r\n\r\n### Video Unavailable\r\n```bash\r\nyt-dlp --cookies-from-browser chrome \"URL\"\r\n\r\npip install -U yt-dlp\r\n```\r\n\r\n### Age-Restricted Content\r\n```bash\r\nyt-dlp --cookies-from-browser firefox \"URL\"\r\n\r\nyt-dlp --username YOUR_USERNAME --password YOUR_PASSWORD \"URL\"\r\n```\r\n\r\n### Format Not Available\r\n```bash\r\nyt-dlp -F \"URL\"\r\n\r\nyt-dlp -f FORMAT_ID \"URL\"\r\n```\r\n\r\n### Slow Downloads\r\n```bash\r\nyt-dlp --concurrent-fragments 4 \"URL\"\r\n\r\n\r\nKeep yt-dlp updated for best compatibility:\r\n```bash\r\npip install -U yt-dlp",
"name": "youtube-downloader",
"id": "youtube-downloader",
"sections": {
"Resources": "- **yt-dlp GitHub**: https://github.com/yt-dlp/yt-dlp\r\n- **Supported Sites**: https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md\r\n- **Format Selection**: https://github.com/yt-dlp/yt-dlp#format-selection\r\n\r\n---\r\n\r\n**Version**: 1.0.0\r\n**Last Updated**: 2025-11-07\r\n**Maintained by**: Claude Code Skills Collection",
"Geo-Restriction Bypass": "yt-dlp --geo-bypass-country US \"URL\"\r\n```",
"Legal and Ethical Considerations": "⚠️ **Important**:\r\n- Only download content you have rights to\r\n- Respect copyright and Terms of Service\r\n- Don't distribute copyrighted content\r\n- YouTube's ToS prohibits downloading most content\r\n- Use for personal archival and educational purposes\r\n- Many creators offer official download options\r\n- Consider supporting creators through official channels",
"Updates": "yt-dlp --version\r\n```",
"Advanced Features": "yt-dlp --write-description \"URL\"\r\n```",
"Batch Download": "### From File\r\nCreate a text file with URLs (one per line):\r\n```\r\nhttps://www.youtube.com/watch?v=VIDEO1\r\nhttps://www.youtube.com/watch?v=VIDEO2\r\nhttps://www.youtube.com/watch?v=VIDEO3\r\n```\r\n\r\nDownload all:\r\n```bash\r\nyt-dlp -a urls.txt\r\n```\r\n\r\n### With Archive\r\nTrack downloaded videos to avoid re-downloading:\r\n```bash\r\nyt-dlp --download-archive archive.txt \"PLAYLIST_URL\"\r\n```\r\n\r\nThis creates `archive.txt` with IDs of downloaded videos. On subsequent runs, yt-dlp skips already downloaded videos.",
"Rate Limiting and Network Options": "yt-dlp --cookies-from-browser chrome \"URL\"\r\n```",
"Installation": "yt-dlp --version\r\nffmpeg -version\r\n```",
"When to Use This Skill": "Use when you need to:\r\n- Download YouTube videos in any quality (144p to 8K, HDR, 60fps)\r\n- Extract audio from videos (MP3, M4A, FLAC, WAV, Opus)\r\n- Download entire playlists or channels\r\n- Get video subtitles/captions in multiple languages\r\n- Download live streams or premieres\r\n- Archive content before it's deleted\r\n- Download from 1000+ websites (not just YouTube)\r\n- Batch download multiple videos\r\n- Download with custom naming and organization\r\n- Extract video metadata and thumbnails",
"Common Use Cases": "yt-dlp -a urls.txt \\\r\n -f \"bestvideo+bestaudio/best\" \\\r\n -o \"%(extractor)s/%(uploader)s/%(title)s.%(ext)s\"\r\n```",
"Post-Processing": "yt-dlp -x --audio-format mp3 --add-metadata \"URL\"\r\n```",
"Configuration File": "--limit-rate 5M\r\n```",
"Supported Websites (1000+)": "### Video Platforms\r\n- YouTube (videos, playlists, channels, shorts, live streams)\r\n- Vimeo, Dailymotion, Twitter/X, Facebook\r\n- TikTok, Instagram (videos, reels, stories)\r\n- Twitch (VODs, clips, live streams)\r\n- Reddit (v.redd.it videos)\r\n- Pornhub (videos)\r\n- Youporn (videos)\r\n\r\n### Educational\r\n- Coursera, Udemy, Khan Academy\r\n- edX, Pluralsight, LinkedIn Learning\r\n\r\n### News & Media\r\n- CNN, BBC, NBC, CBS\r\n- ESPN, Sky Sports\r\n\r\n### And 1000+ more...",
"Performance Tips": "1. **Use Archive Files**: Track downloads to avoid re-downloading\r\n2. **Limit Rate**: Prevent network congestion with `--limit-rate`\r\n3. **Concurrent Fragments**: Speed up with `--concurrent-fragments 4`\r\n4. **Choose Format Wisely**: Lower quality = faster download\r\n5. **Use External Downloader**: aria2c can be faster than built-in\r\n6. **Batch Smartly**: Process in chunks, not all at once",
"Quality Selection Guide": "yt-dlp -x --audio-format wav \"URL\"\r\n```",
"Troubleshooting": "yt-dlp --external-downloader aria2c \"URL\"\r\n```",
"Filtering and Selection": "yt-dlp --match-filter \"duration < 300\" \"PLAYLIST_URL\"\r\n```",
"Integration with Other Tools": "### FFmpeg Integration\r\nyt-dlp automatically uses ffmpeg when installed for:\r\n- Merging video and audio streams\r\n- Converting formats\r\n- Embedding thumbnails and metadata\r\n- Post-processing\r\n\r\n### Aria2c for Faster Downloads\r\n```bash\r\nyt-dlp --external-downloader aria2c \\\r\n --external-downloader-args \"-x 16 -s 16 -k 1M\" \\\r\n \"URL\"\r\n```",
"List Available Formats": "Before downloading, check what formats are available:\r\n\r\n```bash\r\nyt-dlp -F \"URL\"\r\n```\r\n\r\nThis shows all available video and audio streams with:\r\n- Format ID\r\n- Extension\r\n- Resolution\r\n- FPS\r\n- Codec\r\n- File size\r\n- Bitrate\r\n\r\nThen download specific format:\r\n```bash\r\nyt-dlp -f FORMAT_ID \"URL\"\r\n```",
"Basic Usage": "yt-dlp -f \"bestvideo[height<=720]+bestaudio/best[height<=720]\" \"URL\"\r\n```",
"Live Streams": "yt-dlp \"LIVE_STREAM_URL\"\r\n```"
}
}---
name: youtube-downloader
description: Download videos, audio, playlists, and channels from YouTube and 1000+ websites using yt-dlp. Supports quality selection, format conversion, subtitle download, playlist filtering, metadata extraction, thumbnail download, and batch operations. Use when downloading YouTube videos in any quality (4K, 8K, HDR), extracting audio as MP3/M4A/FLAC, downloading entire playlists/channels, getting subtitles in multiple languages, converting to specific formats, downloading live streams, archiving content, or batch processing multiple URLs. Optimized for reliability with automatic retries, rate limiting, and error handling.
license: MIT
---
# YouTube & Video Downloader Skill
Download videos and audio from YouTube and 1000+ other websites using yt-dlp, the most powerful and actively maintained YouTube downloader.
## When to Use This Skill
Use when you need to:
- Download YouTube videos in any quality (144p to 8K, HDR, 60fps)
- Extract audio from videos (MP3, M4A, FLAC, WAV, Opus)
- Download entire playlists or channels
- Get video subtitles/captions in multiple languages
- Download live streams or premieres
- Archive content before it's deleted
- Download from 1000+ websites (not just YouTube)
- Batch download multiple videos
- Download with custom naming and organization
- Extract video metadata and thumbnails
## Supported Websites (1000+)
### Video Platforms
- YouTube (videos, playlists, channels, shorts, live streams)
- Vimeo, Dailymotion, Twitter/X, Facebook
- TikTok, Instagram (videos, reels, stories)
- Twitch (VODs, clips, live streams)
- Reddit (v.redd.it videos)
- Pornhub (videos)
- Youporn (videos)
### Educational
- Coursera, Udemy, Khan Academy
- edX, Pluralsight, LinkedIn Learning
### News & Media
- CNN, BBC, NBC, CBS
- ESPN, Sky Sports
### And 1000+ more...
## Installation
yt-dlp requires Python 3.7+ and ffmpeg for format conversion:
```bash
# Install yt-dlp (if not already installed)
pip install -U yt-dlp
# Install ffmpeg (required for format conversion)
# Ubuntu/Debian:
sudo apt install ffmpeg
# macOS:
brew install ffmpeg
# Verify installation
yt-dlp --version
ffmpeg -version
```
## Basic Usage
### Download Best Quality Video
```bash
yt-dlp "https://www.youtube.com/watch?v=VIDEO_ID"
```
### Download Best Quality Audio (as M4A)
```bash
yt-dlp -f "bestaudio" "https://www.youtube.com/watch?v=VIDEO_ID"
```
### Download and Convert to MP3
```bash
yt-dlp -x --audio-format mp3 --audio-quality 0 "https://www.youtube.com/watch?v=VIDEO_ID"
```
### Download Specific Quality
```bash
# 1080p video with best audio
yt-dlp -f "bestvideo[height<=1080]+bestaudio/best[height<=1080]" "URL"
# 4K video
yt-dlp -f "bestvideo[height<=2160]+bestaudio/best" "URL"
# 720p video
yt-dlp -f "bestvideo[height<=720]+bestaudio/best[height<=720]" "URL"
```
## Advanced Features
### Download Entire Playlist
```bash
yt-dlp "https://www.youtube.com/playlist?list=PLAYLIST_ID"
```
### Download Playlist Range
```bash
# Videos 1-10
yt-dlp --playlist-start 1 --playlist-end 10 "PLAYLIST_URL"
# Videos from #5 onwards
yt-dlp --playlist-start 5 "PLAYLIST_URL"
```
### Download All Videos from Channel
```bash
yt-dlp "https://www.youtube.com/@ChannelName/videos"
```
### Download with Subtitles
```bash
# Download all available subtitles
yt-dlp --write-subs --write-auto-subs --sub-langs "en,es,fr" "URL"
# Download and embed subtitles
yt-dlp --write-subs --embed-subs --sub-langs "en.*" "URL"
# Download only subtitles (no video)
yt-dlp --skip-download --write-subs --write-auto-subs "URL"
```
### Custom Naming and Organization
```bash
# Custom filename template
yt-dlp -o "%(uploader)s/%(playlist)s/%(title)s.%(ext)s" "PLAYLIST_URL"
# By date uploaded
yt-dlp -o "%(upload_date)s - %(title)s.%(ext)s" "URL"
# With video ID
yt-dlp -o "%(title)s [%(id)s].%(ext)s" "URL"
```
### Download Thumbnails
```bash
# Download and embed thumbnail
yt-dlp --write-thumbnail --embed-thumbnail "URL"
# Download thumbnail only
yt-dlp --write-thumbnail --skip-download "URL"
```
### Download Metadata
```bash
# Write metadata to JSON file
yt-dlp --write-info-json "URL"
# Write metadata to description file
yt-dlp --write-description "URL"
```
## Quality Selection Guide
### Video Quality Formats
```bash
# Best overall quality (may be WebM)
yt-dlp -f "bestvideo+bestaudio/best" "URL"
# Best MP4 format (most compatible)
yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]" "URL"
# 4K (2160p) maximum
yt-dlp -f "bestvideo[height<=2160]+bestaudio" "URL"
# 1080p maximum
yt-dlp -f "bestvideo[height<=1080]+bestaudio" "URL"
# 720p maximum
yt-dlp -f "bestvideo[height<=720]+bestaudio" "URL"
# 60fps preferred
yt-dlp -f "bestvideo[fps>30]+bestaudio/best" "URL"
```
### Audio Quality Formats
```bash
# Best audio quality (extract as M4A)
yt-dlp -f "bestaudio" "URL"
# Extract as MP3 (best quality)
yt-dlp -x --audio-format mp3 --audio-quality 0 "URL"
# Extract as FLAC (lossless)
yt-dlp -x --audio-format flac "URL"
# Extract as Opus (efficient)
yt-dlp -x --audio-format opus "URL"
# Extract as WAV (uncompressed)
yt-dlp -x --audio-format wav "URL"
```
## List Available Formats
Before downloading, check what formats are available:
```bash
yt-dlp -F "URL"
```
This shows all available video and audio streams with:
- Format ID
- Extension
- Resolution
- FPS
- Codec
- File size
- Bitrate
Then download specific format:
```bash
yt-dlp -f FORMAT_ID "URL"
```
## Batch Download
### From File
Create a text file with URLs (one per line):
```
https://www.youtube.com/watch?v=VIDEO1
https://www.youtube.com/watch?v=VIDEO2
https://www.youtube.com/watch?v=VIDEO3
```
Download all:
```bash
yt-dlp -a urls.txt
```
### With Archive
Track downloaded videos to avoid re-downloading:
```bash
yt-dlp --download-archive archive.txt "PLAYLIST_URL"
```
This creates `archive.txt` with IDs of downloaded videos. On subsequent runs, yt-dlp skips already downloaded videos.
## Filtering and Selection
### Date Filters
```bash
# Videos from 2024
yt-dlp --dateafter 20240101 "CHANNEL_URL"
# Videos before 2023
yt-dlp --datebefore 20230101 "CHANNEL_URL"
# Videos between dates
yt-dlp --dateafter 20230101 --datebefore 20231231 "CHANNEL_URL"
```
### View Count Filters
```bash
# Videos with 1M+ views
yt-dlp --match-filter "view_count > 1000000" "CHANNEL_URL"
# Videos with less than 10K views
yt-dlp --match-filter "view_count < 10000" "CHANNEL_URL"
```
### Duration Filters
```bash
# Videos longer than 10 minutes
yt-dlp --match-filter "duration > 600" "PLAYLIST_URL"
# Videos shorter than 5 minutes
yt-dlp --match-filter "duration < 300" "PLAYLIST_URL"
```
## Live Streams
### Download Live Stream
```bash
# Wait for stream to start and download
yt-dlp --wait-for-video 60 "LIVE_STREAM_URL"
# Download stream as it's happening (may be incomplete if interrupted)
yt-dlp "LIVE_STREAM_URL"
```
## Rate Limiting and Network Options
```bash
# Limit download speed (e.g., 1MB/s)
yt-dlp --limit-rate 1M "URL"
# Set number of retries
yt-dlp --retries 10 "URL"
# Wait between downloads (in seconds)
yt-dlp --sleep-interval 5 "PLAYLIST_URL"
# Use specific proxy
yt-dlp --proxy "http://proxy.server:port" "URL"
# Use cookies from browser (bypass age restrictions)
yt-dlp --cookies-from-browser chrome "URL"
```
## Geo-Restriction Bypass
```bash
# Use proxy
yt-dlp --proxy "socks5://proxy.server:1080" "URL"
# Use specific geo-bypass country
yt-dlp --geo-bypass-country US "URL"
```
## Post-Processing
### Video Post-Processing
```bash
# Merge video and audio to MP4
yt-dlp --merge-output-format mp4 "URL"
# Re-encode to H.264
yt-dlp --recode-video mp4 "URL"
# Add metadata
yt-dlp --add-metadata "URL"
# Embed thumbnail
yt-dlp --embed-thumbnail "URL"
```
### Audio Post-Processing
```bash
# Extract audio and convert to MP3
yt-dlp -x --audio-format mp3 --audio-quality 0 "URL"
# Add metadata to audio file
yt-dlp -x --audio-format mp3 --add-metadata "URL"
```
## Common Use Cases
### 1. Download Music from YouTube
```bash
yt-dlp -x --audio-format mp3 --audio-quality 0 \
-o "%(artist)s - %(title)s.%(ext)s" \
--add-metadata \
--embed-thumbnail \
"MUSIC_VIDEO_URL"
```
### 2. Download Educational Course
```bash
yt-dlp -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" \
--write-subs --embed-subs \
--write-info-json \
"COURSE_PLAYLIST_URL"
```
### 3. Archive Channel (New Videos Only)
```bash
yt-dlp --download-archive downloaded.txt \
-o "%(uploader)s/%(upload_date)s - %(title)s.%(ext)s" \
-f "bestvideo[height<=1080]+bestaudio/best" \
"https://www.youtube.com/@ChannelName/videos"
```
### 4. Download Podcast as Audio
```bash
yt-dlp -x --audio-format mp3 --audio-quality 0 \
-o "%(playlist)s/%(playlist_index)s. %(title)s.%(ext)s" \
--add-metadata \
"PODCAST_PLAYLIST_URL"
```
### 5. Download Conference Talks
```bash
yt-dlp -f "bestvideo[height<=720]+bestaudio" \
-o "Conference/%(title)s.%(ext)s" \
--write-subs --embed-subs --sub-langs en \
"CONFERENCE_PLAYLIST_URL"
```
### 6. Batch Download from Multiple Sites
```bash
# Create urls.txt with mixed URLs (YouTube, Vimeo, etc.)
yt-dlp -a urls.txt \
-f "bestvideo+bestaudio/best" \
-o "%(extractor)s/%(uploader)s/%(title)s.%(ext)s"
```
## Configuration File
Create `~/.config/yt-dlp/config` for default options:
```
# Default format
-f bestvideo[height<=1080]+bestaudio/best
# Output template
-o ~/Downloads/%(uploader)s/%(title)s.%(ext)s
# Embed metadata
--add-metadata
--embed-thumbnail
# Write subtitles
--write-subs
--sub-langs en
# Continue on errors
--ignore-errors
# Rate limit
--limit-rate 5M
```
## Troubleshooting
### Video Unavailable
```bash
# Try with cookies from browser
yt-dlp --cookies-from-browser chrome "URL"
# Update yt-dlp
pip install -U yt-dlp
```
### Age-Restricted Content
```bash
# Use browser cookies
yt-dlp --cookies-from-browser firefox "URL"
# Or login with credentials
yt-dlp --username YOUR_USERNAME --password YOUR_PASSWORD "URL"
```
### Format Not Available
```bash
# List all formats first
yt-dlp -F "URL"
# Then select specific format
yt-dlp -f FORMAT_ID "URL"
```
### Slow Downloads
```bash
# Use multiple connections
yt-dlp --concurrent-fragments 4 "URL"
# Or use external downloader
yt-dlp --external-downloader aria2c "URL"
```
## Integration with Other Tools
### FFmpeg Integration
yt-dlp automatically uses ffmpeg when installed for:
- Merging video and audio streams
- Converting formats
- Embedding thumbnails and metadata
- Post-processing
### Aria2c for Faster Downloads
```bash
yt-dlp --external-downloader aria2c \
--external-downloader-args "-x 16 -s 16 -k 1M" \
"URL"
```
## Legal and Ethical Considerations
⚠️ **Important**:
- Only download content you have rights to
- Respect copyright and Terms of Service
- Don't distribute copyrighted content
- YouTube's ToS prohibits downloading most content
- Use for personal archival and educational purposes
- Many creators offer official download options
- Consider supporting creators through official channels
## Performance Tips
1. **Use Archive Files**: Track downloads to avoid re-downloading
2. **Limit Rate**: Prevent network congestion with `--limit-rate`
3. **Concurrent Fragments**: Speed up with `--concurrent-fragments 4`
4. **Choose Format Wisely**: Lower quality = faster download
5. **Use External Downloader**: aria2c can be faster than built-in
6. **Batch Smartly**: Process in chunks, not all at once
## Updates
Keep yt-dlp updated for best compatibility:
```bash
# Update via pip
pip install -U yt-dlp
# Check version
yt-dlp --version
```
## Resources
- **yt-dlp GitHub**: https://github.com/yt-dlp/yt-dlp
- **Supported Sites**: https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md
- **Format Selection**: https://github.com/yt-dlp/yt-dlp#format-selection
---
**Version**: 1.0.0
**Last Updated**: 2025-11-07
**Maintained by**: Claude Code Skills Collection