Loading...
Loading...
Download videos using yt-dlp. Use when user asks to download video, download audio, download subtitles, or provides a video URL from YouTube, Bilibili, Twitter, etc.
npx skill4agent add qiaoshouqing/skills video-downloader# Check if yt-dlp is installed, install if missing
if ! command -v yt-dlp &>/dev/null; then
echo "Installing yt-dlp..."
brew install yt-dlp
fi
# Check if ffmpeg is installed, install if missing
if ! command -v ffmpeg &>/dev/null; then
echo "Installing ffmpeg..."
brew install ffmpeg
fi
# Verify installation
yt-dlp --version && echo "yt-dlp: ready"
ffmpeg -version 2>&1 | head -1 && echo "ffmpeg: ready"brew install yt-dlp ffmpeg| User Intent | Keywords |
|---|---|
| Video (default) | "download", "video" |
| Audio only | "audio", "mp3", "music", "extract audio" |
| Video + Subtitles | "with subtitles", "embed subtitles" |
| Subtitles only | "only subtitles", "subtitles only", "just subtitles" |
| Specific quality | "720p", "1080p", "4k", "best", "worst" |
yt-dlp [OPTIONS] "URL"yt-dlp -o "%(title)s.%(ext)s" "URL"yt-dlp -x --audio-format mp3 -o "%(title)s.%(ext)s" "URL"yt-dlp -f "bestvideo[height<=720]+bestaudio/best[height<=720]" -o "%(title)s.%(ext)s" "URL"yt-dlp --write-subs --sub-lang en,zh-Hans,zh-Hant --embed-subs -o "%(title)s.%(ext)s" "URL"yt-dlp --write-subs --write-auto-subs --sub-lang en,zh-Hans,zh-Hant --skip-download -o "%(title)s" "URL"| Task | Command |
|---|---|
| Best quality video | |
| Audio (MP3) | |
| Audio (M4A) | |
| 720p video | |
| 1080p video | |
| 4K video | |
| With subtitles | |
| Subtitles only | |
| List formats | |
| Playlist | |
| Error | Solution |
|---|---|
| Auto-install: |
| Auto-install: |
| Check if URL is correct or video is region-locked |
| Cannot download private videos without authentication |
| Use |
| Try |
| Install Homebrew first: |