协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
yt-dlp【开发与工程】Download videos and audio from YouTube and thousands of other websites using yt-dlp. Use this skill when the user provides a video URL and wants to download it, extract audio, or asks about downloading videos/audio from websites like YouTube, Bilibili, TikTok, Twitter/X, Vimeo, etc.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Download videos and audio from YouTube and 1000+ websites.
Check if yt-dlp is installed before downloading:
which yt-dlp && yt-dlp --version
If not installed:
# macOS
brew install yt-dlp ffmpeg
# Or via pip
pip install yt-dlp
When user provides a video URL:
# Default: best quality video
yt-dlp "URL"
# Audio only (mp3)
yt-dlp -x --audio-format mp3 "URL"
# Specify output directory
yt-dlp -o "~/Downloads/%(title)s.%(ext)s" "URL"
# Best quality (default)
yt-dlp "URL"
# Limit to 1080p
yt-dlp -f "bestvideo[height<=1080]+bestaudio/best[height<=1080]" "URL"
# Limit to 720p
yt-dlp -f "bestvideo[height<=720]+bestaudio/best[height<=720]" "URL"
# List available formats first
yt-dlp -F "URL"
# Extract as mp3
yt-dlp -x --audio-format mp3 "URL"
# Extract as m4a (better quality)
yt-dlp -x --audio-format m4a "URL"
# Entire playlist
yt-dlp "PLAYLIST_URL"
# Specific items
yt-dlp --playlist-items 1-5 "PLAYLIST_URL"
# Single video only (ignore playlist)
yt-dlp --no-playlist "URL"
# Download with subtitles
yt-dlp --write-subs --sub-langs en,zh "URL"
# Embed subtitles in video
yt-dlp --embed-subs "URL"
# Custom output path
yt-dlp -o "~/Downloads/%(title)s.%(ext)s" "URL"
# Include uploader in filename
yt-dlp -o "%(uploader)s - %(title)s.%(ext)s" "URL"
# Update yt-dlp
yt-dlp -U
# Use browser cookies for login-required content
yt-dlp --cookies-from-browser chrome "URL"
# Verbose output
yt-dlp -v "URL"