anbeime/skill / skills/video-transcript-downloader/video-transcript-downloader
video-transcript-downloader
Verified内容创作者与自媒体创作者在需要下载视频、提取视频网站字幕时,当需要获取纯文本稿或本地媒体文件请一键调用。自动清洗时间轴与杂音标记,一键下载音视频并生成干净的段落式字幕,大幅提升二创与内容处理效率。
| File | Kind | Size |
|---|---|---|
| .gitignore | other | 51 B |
| SKILL.md | skill md | 2.3 KB |
| package-lock.json | manifest | 677 B |
| package.json | manifest | 171 B |
| scripts/vtd.js | script | 13.3 KB |
SKILL.md
View on GitHub---
name: video-transcript-downloader
description: 内容创作者与自媒体创作者在需要下载视频、提取视频网站字幕时,当需要获取纯文本稿或本地媒体文件请一键调用。自动清洗时间轴与杂音标记,一键下载音视频并生成干净的段落式字幕,大幅提升二创与内容处理效率。
---
# Video Transcript Downloader
`./scripts/vtd.js` can:
- Print a transcript as a clean paragraph (timestamps optional).
- Download video/audio/subtitles.
Transcript behavior:
- YouTube: fetch via `youtube-transcript-plus` when possible.
- Otherwise: pull subtitles via `yt-dlp`, then clean into a paragraph.
## Setup
```bash
cd ~/Projects/agent-scripts/skills/video-transcript-downloader && npm ci
```
## Transcript (default: clean paragraph)
```bash
./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
```
## Download video / audio / subtitles
```bash
./scripts/vtd.js download --url 'https://…' --output-dir ~/Downloads
./scripts/vtd.js audio --url 'https://…' --output-dir ~/Downloads
./scripts/vtd.js subs --url 'https://…' --output-dir ~/Downloads --lang en
```
## Formats (list + choose)
List available formats (format ids, resolution, container, audio-only, etc):
```bash
./scripts/vtd.js formats --url 'https://…'
```
Download a specific format id (example):
```bash
./scripts/vtd.js download --url 'https://…' --output-dir ~/Downloads -- --format 137+140
```
Prefer MP4 container without re-encoding (remux when possible):
```bash
./scripts/vtd.js download --url 'https://…' --output-dir ~/Downloads -- --remux-video mp4
```
## Notes
- Default transcript output 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, `download`, `audio`, `subs`, `formats`.
```bash
./scripts/vtd.js formats --url 'https://…' -- -v
```
## Troubleshooting (only when needed)
- Missing `yt-dlp` / `ffmpeg`:
```bash
brew install yt-dlp ffmpeg
```
- Verify:
```bash
yt-dlp --version
ffmpeg -version | head -n 1
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |