← スキル一覧に戻る

yt-dlp
by knoopx
pi.ai config
⭐ 2🍴 0📅 2026年1月21日
SKILL.md
name: yt-dlp description: Download videos and audio from YouTube and thousands of other sites. Use when downloading videos/audio, extracting audio, downloading playlists, or including subtitles/metadata.
yt-dlp Skill
This skill provides common commands for downloading media using yt-dlp.
Basic Usage
# Download a video (best quality)
yt-dlp "https://www.youtube.com/watch?v=..."
# List available formats
yt-dlp -F "https://www.youtube.com/watch?v=..."
# Download specific format
yt-dlp -f 22 "https://www.youtube.com/watch?v=..."
Common Tasks
Extracting Audio
# Extract best quality audio as MP3
yt-dlp -x --audio-format mp3 --audio-quality 0 "URL"
# Extract audio and keep the original video
yt-dlp -x -k "URL"
Video Selection
# Download best video and best audio separately and merge them
yt-dlp -f "bestvideo+bestaudio" "URL"
# Download video smaller than 50MB
yt-dlp -f "best[filesize<50M]" "URL"
Playlists
# Download entire playlist
yt-dlp --yes-playlist "URL_TO_PLAYLIST"
# Download only specific items from a playlist
yt-dlp --playlist-items 1,2,5,10-15 "URL"
Metadata and Subtitles
# Write subtitles to file
yt-dlp --write-subs --sub-langs "en.*" "URL"
# Embed subtitles in video file
yt-dlp --embed-subs "URL"
# Embed metadata and thumbnail
yt-dlp --add-metadata --embed-thumbnail "URL"
Cheat Sheet
Output Templates
Control the output filename:
yt-dlp -o "%(title)s.%(ext)s" "URL"
yt-dlp -o "%(uploader)s/%(upload_date)s - %(title)s.%(ext)s" "URL"
Authentication
# Use browser cookies (handy for age-restricted videos)
yt-dlp --cookies-from-browser chrome "URL"
# Use netrc file
yt-dlp -n "URL"
Useful Options
| Option | Description |
|---|---|
-U | Update yt-dlp. |
--list-subs | List all available subtitles for the video. |
--get-filename | Print the output filename without downloading. |
--skip-download | Do not download the video (useful with --write-info-json). |
--limit-rate 1M | Limit download speed to 1MB/s. |
Related Tools
- transcribe: Convert downloaded media files to text using transcription tools.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です