yt-dlp

Download videos and extract audio from various platforms using yt-dlp. Use when user provides a video URL, asks to download a video, or when conversation contains video links from YouTube, Twitter/X, Vimeo, TikTok, Instagram, etc.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "yt-dlp" with this command: npx skills add lwmxiaobei/yt-dlp-skill/lwmxiaobei-yt-dlp-skill-yt-dlp

yt-dlp Video Downloader Skill

This skill provides tools for downloading videos and extracting audio from various platforms using yt-dlp.

Features

  • Download videos from multiple platforms (YouTube, Twitter/X, Vimeo, TikTok, Instagram, Facebook, etc.)
  • Extract audio from videos
  • Auto-detect video URLs in conversations
  • Support for different quality settings and formats

Usage Patterns

1. Command-based Download

When user explicitly asks to download a video:

User: Download this video https://youtube.com/watch?v=...

Action: Extract URL and call download script

2. Auto-detection in Conversations

When conversation contains video URLs:

User: Check out this video https://twitter.com/... and let me know what you think

Action: Detect video URL, ask user if they want to download it

3. Audio Extraction

When user wants to extract audio only:

User: Extract the audio from https://youtu.be/...

Action: Use audio extraction script

Available Scripts

Note: Scripts are located in the scripts/ directory

download_video.py

Main video downloader with quality and format options.

Usage:

# Download video
scripts/download_video.py <url> -o <output_dir>

# Download with specific quality
scripts/download_video.py <url> --quality 720p
scripts/download_video.py <url> --quality audio  # For audio only

# Custom format selector
scripts/download_video.py <url> --format "bestvideo[height<=1080]+bestaudio/best"

# Extract info only
scripts/download_video.py <url> --info-only

Quality options: best, 1080p, 720p, 480p, audio

extract_audio.py

Extract audio from videos in various formats.

Usage:

# Extract as MP3 (default)
/scripts/extract_audio.py <url> -o <output_dir>

# Extract as M4A
/scripts/extract_audio.py <url> --format m4a

# Custom quality
/scripts/extract_audio.py <url> --quality 320

Formats: mp3, m4a, opus, flac, wav

extract_urls.py

Extract video URLs from text or files.

Usage:

# Extract from text argument
/scripts/extract_urls.py "Check https://youtube.com/watch?v=..."

# Extract from file
/scripts/extract_urls.py <file_path>

# Read from stdin
cat file.txt | /scripts/extract_urls.py

Video Platform Support

The skill recognizes URLs from:

  • YouTube (youtube.com, youtu.be)
  • Twitter/X (twitter.com, x.com)
  • Vimeo (vimeo.com)
  • TikTok (tiktok.com)
  • Instagram (instagram.com)
  • Facebook (facebook.com, fb.watch)
  • Twitch (twitch.tv, clips.twitch.tv)
  • Dailymotion (dailymotion.com)
  • Reddit (reddit.com)
  • Streamable (streamable.com)
  • And many more supported by yt-dlp

Workflow

When User Provides Video URL

  1. Extract URL from user's input using extract_urls.py
  2. Confirm with user what action to take:
    • Download video
    • Extract audio
    • Show video info
  3. Execute appropriate script based on user's choice
  4. Notify user of success/failure and file location

When Auto-detecting URLs

  1. Scan conversation text with extract_urls.py (can process stdin)
  2. If video URLs found, ask user: "I found video URLs in this conversation. Would you like me to download them?"
  3. If yes, proceed with download workflow
  4. If no, continue with conversation

Handling Multiple URLs

  • For single URL: Direct download
  • For multiple URLs: Ask user if they want to download all or select specific ones
  • Provide option to download as playlist if URLs are from the same source

Quality and Format Selection

When user doesn't specify preferences:

  • Default to best available quality
  • For audio: Default to MP3 at 192kbps

When options needed:

# Ask user for quality preference if not specified
# Options: best (default), 1080p, 720p, 480p, audio

# Ask for format if extracting audio
# Options: mp3 (default), m4a, opus, flac, wav

Error Handling

Common issues and solutions:

  1. yt-dlp not installed:

    • Check with yt-dlp --version
    • Install with pip install yt-dlp or brew install yt-dlp
  2. ffmpeg not installed (required for format conversion):

    • Install with brew install ffmpeg (macOS)
    • Or apt install ffmpeg (Linux)
  3. Video not available:

    • Check if URL is accessible
    • Some videos may require authentication
    • Age-restricted content may need cookies
  4. Network errors:

    • Retry download
    • Check internet connection

Dependencies

  • yt-dlp: Main video downloader
  • ffmpeg: Audio/video processing (required for format conversion)
  • python3 with standard library

All scripts are self-contained and use only built-in Python modules.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Interior Fullplan

# 室内设计·全案方案自动生成器

Archived SourceRecently Updated
General

kb-archiver

智能本地知识库归档系统 v1.1.0。支持 AI 智能分类、批量归档、全文搜索、统计报告。 自动将文件分类归档到本地知识库,提取全文索引支持秒级搜索。 小文件存本地、大文件可对接云存储。支持 Excel/Word/PPT/PDF/TXT 等格式。 当用户需要:归档文件、建立知识库、全文检索文档内容、管理大量工作文档、批量处理文件夹时使用。 关键词:知识库、归档、文件管理、全文搜索、文档索引、批量归档、AI分类

Archived SourceRecently Updated
General

honest-agent

强制诚实系统:防止AI撒谎、虚构、言行不一。核心功能:(1) 承诺自动追踪(写入honest-commitments.json)(2) 回复前诚实校验拦截 (3) 媒体并行识别(大模型+OCR择优)(4) 诚实审计日志 (5) 安全独立存储。触发词:诚实、撒谎、虚构、承诺、图片识别、媒体处理、我承诺、我会帮你。

Archived SourceRecently Updated
General

long-term-plan

长期计划推进技能。用于管理需要持续数天/数周的任务,采用滚动节点式规划(每3-5天为一个阶段,阶段结束时复盘并规划下一阶段)。支持自动日期计算、每日同步、复盘统计、多任务管理、极简指令。当用户说"开一个长期计划"、"今天计划任务"、"阶段复盘"、"滚动下一阶段"、"列出所有计划"时使用。

Archived SourceRecently Updated