yt-dlp
БесплатноБез исполняемых скриптовНе проверенDownload video and audio from YouTube and other platforms with yt-dlp. Use when a user asks to download YouTube videos, extract audio from videos, download…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
yt-dlp
Overview
Download and extract media from YouTube and 1000+ other sites using yt-dlp — the actively maintained fork of youtube-dl. This skill covers audio extraction (MP3/FLAC/WAV), video download with quality selection, playlist handling, subtitle download, metadata extraction, thumbnail embedding, batch operations, channel archiving, and integration with processing pipelines (ffmpeg, whisper).
Instructions
Step 1: Installation
# pip (needs Python 3.10+); the [default] extra adds the YouTube JS helper, curl-cffi and other optional parts
pip install -U "yt-dlp[default]"
# or pipx / Homebrew
pipx install "yt-dlp[default]"
brew install yt-dlp
# Update: pip/pipx/brew installs update through their package manager
pip install -U "yt-dlp[default]"
yt-dlp -U # only for the standalone binary from GitHub releases
# Verify (versions are dates, e.g. 2026.08.19)
yt-dlp --version
A standalone binary is on the GitHub releases page; download SHA2-256SUMS from the same release and check it with sha256sum -c --ignore-missing SHA2-256SUMS before making the file executable.
YouTube needs a JavaScript runtime. Recent yt-dlp runs YouTube's player code with an external runtime; without one it warns "No supported JavaScript runtime could be found" and some formats go missing. Install deno (enabled by default), or enable another with --js-runtimes node (supported: deno, node, quickjs, bun). The official executables and yt-dlp[default] bundle the helper scripts; see the project's EJS wiki page.
ffmpeg is required for merging formats and audio conversion:
apt install -y ffmpeg # Ubuntu/Debian
brew install ffmpeg # macOS
Step 2: Audio Extraction
# Download best audio, convert to MP3
yt-dlp -x --audio-format mp3 "https://youtube.com/watch?v=VIDEO_ID"
# Best audio as FLAC (lossless)
yt-dlp -x --audio-format flac "URL"
# Best audio as WAV
yt-dlp -x --audio-format wav "URL"
# MP3 with specific quality (0=best, 9=worst)
yt-dlp -x --audio-format mp3 --audio-quality 0 "URL"
# Keep original format (no conversion)
yt-dlp -x "URL"
# Download audio + embed thumbnail as album art
yt-dlp -x --audio-format mp3 --embed-thumbnail "URL"
# Download audio + embed metadata (title, artist, etc.)
yt-dlp -x --audio-format mp3 --embed-metadata --embed-thumbnail "URL"
# Custom output filename
yt-dlp -x --audio-format mp3 -o "%(title)s.%(ext)s" "URL"
yt-dlp -x --audio-format mp3 -o "%(uploader)s - %(title)s.%(ext)s" "URL"
Step 3: Video Download
# Best quality (video + audio merged)
yt-dlp "URL"
# List available formats
yt-dlp -F "URL"
# Output: ID EXT RESOLUTION FPS FILESIZE CODEC BITRATE
# Download specific format by ID
yt-dlp -f 137+140 "URL" # 1080p video + best audio
# Best video up to 1080p
yt-dlp -f "bestvideo[height<=1080]+bestaudio/best[height<=1080]" "URL"
# Best video up to 720p, prefer MP4
yt-dlp -f "bestvideo[height<=720][ext=mp4]+bestaudio[ext=m4a]/best[height<=720]" "URL"
# Only 4K if available
yt-dlp -f "bestvideo[height>=2160]+bestaudio" "URL"
# Smallest file
yt-dlp -f "worstvideo+worstaudio/worst" "URL"
# MP4 output (re-mux if needed)
yt-dlp --merge-output-format mp4 "URL"
Step 4: Playlists & Channels
# Download entire playlist
PLAYLIST_URL="$1" # the playlist address copied from the browser
yt-dlp "$PLAYLIST_URL"
# Playlist: audio only
yt-dlp -x --audio-format mp3 "PLAYLIST_URL"
# Download specific items from playlist
yt-dlp --playlist-items 5:10 "PLAYLIST_URL" # Items 5-10
yt-dlp --playlist-items 1,3,5,7-10 "PLAYLIST_URL" # Specific items
# Download entire channel
yt-dlp "https://youtube.com/@ChannelName/videos"
# Download channel with organized folders
yt-dlp -o "%(uploader)s/%(playlist)s/%(title)s.%(ext)s" "CHANNEL_URL"
# Only videos from last 30 days
yt-dlp --dateafter today-30days "CHANNEL_URL"
# Skip already downloaded (archive file)
yt-dlp --download-archive archive.txt "PLAYLIST_URL"
# Subsequent runs skip already downloaded videos
Step 5: Subtitles
# Download video + subtitles
yt-dlp --write-subs --sub-langs en "URL"
# Download auto-generated subtitles
yt-dlp --write-auto-subs --sub-langs en "URL"
# All available subtitles
yt-dlp --write-subs --sub-langs all "URL"
# Subtitles only (no video)
yt-dlp --skip-download --write-subs --sub-langs en "URL"
# Convert subtitles to SRT
yt-dlp --write-subs --sub-langs en --convert-subs srt "URL"
# Embed subtitles into video file
yt-dlp --embed-subs --sub-langs en "URL"
# List available subtitle languages
yt-dlp --list-subs "URL"
Step 6: Metadata & Information
# Print video info (no download)
yt-dlp --dump-json "URL" | python3 -m json.tool
# Extract specific fields
yt-dlp --print "%(title)s | %(duration)s | %(view_count)s" "URL"
# Get thumbnail URL
yt-dlp --print thumbnail "URL"
# Download thumbnail only
yt-dlp --skip-download --write-thumbnail "URL"
# Dow
Установить yt-dlp в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл yt-dlp?
Download video and audio from YouTube and other platforms with yt-dlp. Use when a user asks to download YouTube videos, extract audio from videos, download playlists, get subtitles, download specific formats or qualities, batch download, archive channels, extract metadata, embed thumbnails, download from social media platforms (Twitter, Instagram, TikTok), or build media ingestion pipelines. Covers format selection, audio extraction, playlists, subtitles, metadata, and automation.
Как установить скилл yt-dlp?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл yt-dlp запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub