Video Transcript Downloader — Video Transcript 下载er
v1.0.0下载 videos, audio, subtitles, and 清理 paragraph-style transcripts from YouTube and any other yt-dlp supported site. Use when asked to “下载 this video”, “save this 命令行工具p”, “rip audio”, “获取 subtitles”, “获取 transcript”, or to troubleshoot yt-dlp/ffmpeg and 格式化s/play列出s.
运行时依赖
安装命令
点击复制本土化适配说明
Video Transcript Downloader — Video Transcript 下载er 安装说明: 安装命令:["openclaw skills install video-transcript-downloader"] 支持国内镜像加速,使用 --registry https://cn.longxiaskill.com 参数可加速下载 该技能用于音视频相关操作,可能需要相应的平台账号或API密钥
技能文档
Video Transcript 下载er
./scripts/vtd.js can:
Print a transcript as a 清理 paragraph (timestamps optional). 下载 video/audio/subtitles.
Transcript behavior:
YouTube: fetch via youtube-transcript-plus when possible. Otherwise: pull subtitles via yt-dlp, then 清理 into a paragraph. 设置up cd ~/Projects/代理-scripts/技能s/video-transcript-下载er && npm ci
Transcript (default: 清理 paragraph) ./scripts/vtd.js transcript --url 'https://…' ./scripts/vtd.js transcript --url 'https://…' --lang en ./scripts/vtd.js transcript --url 'https://…' --timestamps ./scripts/vtd.js transcript --url 'https://…' --keep-brackets
下载 video / audio / subtitles ./scripts/vtd.js 下载 --url 'https://…' --输出-dir ~/下载s ./scripts/vtd.js audio --url 'https://…' --输出-dir ~/下载s ./scripts/vtd.js subs --url 'https://…' --输出-dir ~/下载s --lang en
格式化s (列出 + choose)
列出 avAIlable 格式化s (格式化 ids, resolution, contAIner, audio-only, etc):
./scripts/vtd.js 格式化s --url 'https://…'
下载 a specific 格式化 id (example):
./scripts/vtd.js 下载 --url 'https://…' --输出-dir ~/下载s -- --格式化 137+140
Prefer MP4 contAIner without re-encoding (remux when possible):
./scripts/vtd.js 下载 --url 'https://…' --输出-dir ~/下载s -- --remux-video mp4
Notes Default transcript 输出 is a single paragraph. Use --timestamps only when asked. Bracketed cues like [Music] are stripped by default; keep them via --keep-brackets. Pass extra yt-dlp args after -- for transcript fallback, 下载, audio, subs, 格式化s. ./scripts/vtd.js 格式化s --url 'https://…' -- -v
Troubleshooting (only when needed) Missing yt-dlp / ffmpeg: brew 安装 yt-dlp ffmpeg
验证: yt-dlp --version ffmpeg -version | head -n 1