yt-dlp
Download videos and extract audio from various platforms using yt-dlp. Use when user provides a video URL, asks to download a video, or when conversation contains video links from YouTube, Twitter/X, Vimeo, TikTok, Instagram, etc.
By lwmxiaobei · 1,431 installs
npx skills add lwmxiaobei/yt-dlp-skill --skill yt-dlp
Source repository · Upstream listing
yt dlp Video Downloader Skill
This skill provides tools for downloading videos and extracting audio from various platforms using yt dlp.
Features
Download videos from multiple platforms (YouTube, Twitter/X, Vimeo, TikTok, Instagram, Facebook, etc.)
Extract audio from videos
Auto detect video URLs in conversations
Support for different quality settings and formats
Usage Patterns
1. Command based Download
When user explicitly asks to download a video:
Action : Extract URL and call download script
2. Auto detection in Conversations
When conversation contains video URLs:
Action : Detect video URL, ask user if they want to download it
3. Audio Extraction
When user wants to extract audio only:
Action : Use audio extraction script
Available Scripts
Note: Scripts are located in the scripts/ directory
download video.py
Main video downloader with quality and format options.
Usage :
Quality options : best , 1080p , 720p , 480p , audio
extract audio.py
Extract audio from videos in various formats.
Usage :
Formats : mp3 , m4a , opus , flac , wav
extract urls.py
Extract video URLs from text or files.
Usage :
Video Platform Support
The skill recognizes URLs from:
YouTube (youtube.com, youtu.be)
Twitter/X (twitter.com, x.com)
Vimeo (vimeo.com)
TikTok (tiktok.com)
Instagram (instagram.com)
Facebook (facebook.com, fb.watch)
Twitch (twitch.tv, clips.twitch.tv)
Dailymotion (dailymotion.com)
Reddit (reddit.com)
Streamable (streamable.com)
And many more supported by yt dlp
Workflow
When User Provides Video URL
1. Extract URL from user's input using extract urls.py
2. Confirm with user what action to take:
Download video
Extract audio
Show video info
3. Execute appropriate script based on user's choice
4. Notify user of success/failure and file location
When Auto detecting URLs
1. Scan conversation text with extract urls.py (can process stdin)
2. If video URLs found, ask user: "I found video URLs in this conversation. Would you like me to download them?"
3. If yes, proceed with download workflow
4. If no, continue with conversation
Handling Multiple URLs
For single URL: Direct download
For multiple URLs: Ask user if they want to download all or select specific ones
Provide option to download as playlist if URLs are from the same source
Quality and Format Selection
When user doesn't specify preferences:
Default to best available quality
For audio: Default to MP3 at 192kbps
When options needed:
Error Handling
Common issues and solutions:
1. yt dlp not installed :
Check with yt dlp version
Install with pip install yt dlp or brew install yt dlp
2. ffmpeg not installed (required for format conversion):
Install with brew install ffmpeg (macOS)
Or apt install ffmpeg (Linux)
3. Video not available :
Check if URL is accessible
Some videos may require authentication
Age restricted content may need cookies
4. Network errors :
Retry download
Check internet connection
Dependencies
yt dlp : Main video downloader
ffmpeg : Audio/video processing (required for format conversion)
python3 with standard library
All scripts are self contained and use only built in Python modules.