Loading...
Loading...
Use when "downloading videos", "saving YouTube videos", "converting to MP3", "video quality", or asking about "yt-dlp", "video formats", "audio extraction"
npx skill4agent add eyadsibai/ltk video-downloader# Basic download (best quality)
yt-dlp "https://www.youtube.com/watch?v=VIDEO_ID"
# Specify quality
yt-dlp -f "bestvideo[height<=1080]+bestaudio" "URL"
# Audio only as MP3
yt-dlp -x --audio-format mp3 "URL"| Quality | Command Flag |
|---|---|
| Best | |
| 1080p | |
| 720p | |
| 480p | |
| 360p | |
| Worst | |
| Format | Command |
|---|---|
| MP4 | |
| WebM | |
| MKV | |
# Extract as MP3
yt-dlp -x --audio-format mp3 "URL"
# Extract as M4A (better quality)
yt-dlp -x --audio-format m4a "URL"
# Best audio quality
yt-dlp -x --audio-quality 0 "URL"# Custom output directory
yt-dlp -o "/path/to/dir/%(title)s.%(ext)s" "URL"
# Custom filename template
yt-dlp -o "%(upload_date)s-%(title)s.%(ext)s" "URL"# Download entire playlist
yt-dlp "PLAYLIST_URL"
# Skip playlists (single video only)
yt-dlp --no-playlist "URL"
# Download specific items from playlist
yt-dlp --playlist-items 1-5 "PLAYLIST_URL"# macOS
brew install yt-dlp
# pip
pip install yt-dlp
# Update
yt-dlp -U# 1080p MP4 to specific folder
yt-dlp -f "bestvideo[height<=1080]+bestaudio" \
--merge-output-format mp4 \
-o "~/Videos/%(title)s.%(ext)s" "URL"
# Audio only as high-quality MP3
yt-dlp -x --audio-format mp3 --audio-quality 0 "URL"
# Download with subtitles
yt-dlp --write-subs --sub-lang en "URL"
# List available formats
yt-dlp -F "URL"