youtube

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

YouTube

YouTube

Download and process content from YouTube videos and playlists.
下载并处理YouTube视频和播放列表中的内容。

Capabilities

功能

This skill handles two main workflows:
TaskReferenceUse When
Transcripts
references/transcripts.md
User wants captions, subtitles, or text content from a video
Music/MP3s
references/mp3-download.md
User wants to download audio, tag MP3s, or build a music library
该技能支持两大工作流程:
任务参考文档适用场景
转录文本
references/transcripts.md
用户需要视频的字幕、副标题或文本内容时
音乐/MP3
references/mp3-download.md
用户需要下载音频、标记MP3或构建音乐库时

Quick Start

快速开始

For Transcripts

转录文本操作步骤

bash
undefined
bash
undefined

Check available subtitles

查看可用字幕

yt-dlp --list-subs "YOUTUBE_URL"
yt-dlp --list-subs "YOUTUBE_URL"

Download auto-generated subtitles

下载自动生成的字幕(跳过视频下载)

yt-dlp --write-auto-sub --skip-download -o "transcript" "YOUTUBE_URL"

Load `references/transcripts.md` for the full workflow including VTT-to-text conversion and Whisper fallback.
yt-dlp --write-auto-sub --skip-download -o "transcript" "YOUTUBE_URL"

查看`references/transcripts.md`获取完整工作流程,包括VTT转文本及Whisper备用方案。

For Music/MP3s

音乐/MP3下载操作步骤

bash
undefined
bash
undefined

Check playlist info

查看播放列表信息

ytmp3 info "YOUTUBE_URL"
ytmp3 info "YOUTUBE_URL"

Download playlist

下载播放列表

ytmp3 download "YOUTUBE_URL"

Load `references/mp3-download.md` for the full tagging and organization workflow.
ytmp3 download "YOUTUBE_URL"

查看`references/mp3-download.md`获取完整的标记和整理工作流程。

Prerequisites

前置条件

  • yt-dlp — YouTube downloader (install via
    brew install yt-dlp
    )
  • eyeD3 — MP3 tagging (install via
    brew install eye-d3
    , needed for MP3 workflow)
  • yt-dlp — YouTube下载器(通过
    brew install yt-dlp
    安装)
  • eyeD3 — MP3标记工具(通过
    brew install eye-d3
    安装,MP3工作流程需用到)

Workflow Selection

工作流程选择

Based on the user's request:
  • "transcript", "captions", "subtitles", "transcribe", "text from video" → Load
    references/transcripts.md
  • "download music", "MP3", "playlist", "tag", "album", "music library" → Load
    references/mp3-download.md
If unclear, ask the user what they want to do with the YouTube content.
根据用户的请求选择对应流程:
  • 当用户提到"transcript"、"captions"、"subtitles"、"transcribe"、"视频文本"等关键词时 → 加载
    references/transcripts.md
  • 当用户提到"download music"、"MP3"、"playlist"、"tag"、"专辑"、"音乐库"等关键词时 → 加载
    references/mp3-download.md
若需求不明确,请询问用户具体需要对YouTube内容执行什么操作。