Home / All Skills / Workflow & Core Tools / video-transcript
Workflow & Core Tools · Backtthefuture/huangshu

video-transcript

Video verbatim transcript extraction expert (powered by Doubao video understanding model). Supports links from Bilibili, Douyin, Xiaohongshu, YouTube, WeChat Channels, or local video files. Runs entirely in the background (headless) on the user's computer with no popup windows and no login required for video platforms. Outputs strict verbatim transcripts with "semantic segmentation + paragraph-level timestamps" (preserving spoken filler words, internet slang, and pauses), and automatically segments long videos to prevent the model from summarizing. Trigger scenarios: - User says "generate transcript", "extract verbatim transcript", "transcribe to text", "video to text" - User says "dictate video", "extract video copy", "video subtitles" - User runs the /video-transcript command - User pastes a video link (Bilibili / Douyin / Xiaohongshu / YouTube / WeChat Channels) intending to get a text transcript - User only pastes a video link or says "process this video" without specifying whether to download or transcribe, asking for intent first

L5 Restricted · Isolated sandbox & strict auditV2 Human-AuditedTerms / ComplianceExecute CommandNetwork AccessWrite FileDual-pass Audit
Author BacktthefutureGitHub Backtthefuture/huangshu ↗License MIT(仓库根 LICENSE)Commit 3cfa898c51
Control levels describe skill capabilities and suggested control measures; they do not represent quality or safety certifications, nor do they dictate usability. Usage decisions rest entirely with users and administrators. Different agent hosts apply varying constraints; do not assume hosts provide automatic protection. Third-party skill copyrights belong to their original authors. Use at your own risk.

1How It Works & Mechanism

Locate the skill root directory first; all subsequent commands are executed via scripts/transcript.py.

skills/video-transcript/SKILL.md
被触发时你必须先定位自己,跑这段:
What is happening here: Resolves self-location issues when the skill is installed in a non-standard path.

Perform intent routing before execution: switch to video-download if only downloading is needed; ask for clarification if intent is unclear.

skills/video-transcript/SKILL.md
在跑任何下载/转录命令前,先判断用户要的是哪一种:
What is happening here: Separates "download" and "transcribe" paths to prevent accidental triggers.

Run --doctor health check on first use or upon errors; guide user to run install.sh if dependencies are missing.

skills/video-transcript/SKILL.md
第一次跑或者遇到报错时,先做体检:
What is happening here: Catches dependency/configuration issues prior to transcription.

Launch a headless browser probe to obtain title, duration, and direct video/audio URLs, and print an evaluation table.

skills/video-transcript/SKILL.md
0. **探测** — 启动 headless 浏览器,拿标题、时长、视频/音频直链;打印 📊 评估表 + 预估耗时
What is happening here: Probes before downloading and provides users with a clear waiting expectation.

Automatically split videos longer than 8 minutes into 6-minute segments to prevent the model from summarizing them.

skills/video-transcript/SKILL.md
2. **长视频切片** — 总时长 > 8min 自动切成 6min/段,避免被模型概括成摘要
What is happening here: Uses chunking to ensure long videos remain transcribed verbatim.

Compress video to a target size of 30MB using ffmpeg, automatically selecting resolution based on duration.

skills/video-transcript/SKILL.md
3. **压缩** — ffmpeg,目标 30MB;按时长自动选分辨率,一次到位
What is happening here: Controls upload size to meet model API constraints.

Call the Doubao video understanding API segment by segment using strict verbatim prompts for transcription.

skills/video-transcript/SKILL.md
4. **转录** — 豆包视频理解 API,严格逐字 prompt(保留口语词、网络梗、停顿)
What is happening here: The model transcribes audio directly without needing a separate ASR pipeline.

Merge outputs from all segments and automatically adjust segment-start timestamp offsets.

skills/video-transcript/SKILL.md
5. **合并** — 长视频合并各段输出 + 自动调整段头时间戳偏移
What is happening here: Stitches segmented transcripts back into a continuous verbatim transcript.

Enforce the agent to restate the evaluation table to set wait expectations and display the full verbatim transcript.

skills/video-transcript/SKILL.md
**你必须立刻把它复述给用户**,告诉他:
What is happening here: Uses output discipline to prevent the lazy behavior of "only reporting the save path".

Treat scraping failures caused by platform frontend updates as normal, providing FALLBACK.md for manual fallback.

skills/video-transcript/SKILL.md
| 平台前端改版导致抓取失败 | 看 `$VT_HOME/FALLBACK.md` 走人工兜底 |
What is happening here: Provides an actionable manual fallback path when scraping fails.

2Core Capabilities

01Multi-platform video source support (Bilibili/Douyin/Xiaohongshu/YouTube/Channels/Local)
02Headless probing and evaluation table output
03Automatic chunking for long videos to prevent summarization
04ffmpeg compression with adaptive resolution
05Strict verbatim transcription via Doubao video understanding API
06Semantic segmentation + paragraph-level timestamp output format
07Dual-channel output: direct stdout + disk saving
08doctor health check and troubleshooting guidance
09WeChat Channels bridge to video-download

3External Dependencies

KindDependency / Endpoint
cliffmpeg / ffprobe
packageyt-dlp>=2024.3.10
packageplaywright>=1.40
api豆包 / 火山方舟视频理解 API
networkB站 / 抖音 / 小红书 / YouTube 等平台
clivideo-download(视频号桥接,可选依赖)

4Recommended Governance & Evidence

Suggested Controls for Safe Operation
For Agent Runtime
Isolated environment, per-use explicit authorization
For Administrators
Strict authorization, full audit, compliance signoff
Evidence & Triggers (File Paths & Excerpts)
  • SKILL.md / 脚本参数: Contains evasion of automated detection, disabling host sandbox, or skipping SSL certificate validation
  • scripts/: Executes local script or command: scripts/transcript.py (main flow)
  • 网络端点: Declares external network access: headless browser accesses Bilibili/Douyin/Xiaohongshu/YouTube pages to fetch direct links
  • 本地工作目录: File read/write and artifact output: $VT_HOME/.env (API Key, chmod 600)
Audit Notes: Red: scripts/platform_extractor.py launches Chromium with `args=["--disable-blink-features=AutomationControlled"],` and explicitly executes add_init_script to set navigator's webdriver to undefined (source code comment `# 反 webdriver 检测`, statement `Object.defineProperty(navigator, 'webdriver', { get: () => undefined });`). This constitutes technical evasion of platform automated detection, rated Red under the 6-tier paradigm (red = bypassing protections / anti-automation detection evasion, regardless of whether it is the default path), consistent with precedents like notebooklm-skill and baoyu-post-to-x. Additionally, the skill reads DOUBAO_API_KEY from .env and sends user video/audio content to Doubao backend for generation (matching Orange criteria), but Red tier takes precedence. The Red rating serves as a capability/policy-level alert, not an indication of malicious code: the code is readable, un-obfuscated, free of hardcoded keys, and does not exfiltrate data to unexpected destinations.

5Second-Pass Verification

  • [ok] 流程步骤完整性 — SKILL.md 阶段 0–5 与 README『架构』流程(探测→评估表→下载→切片→转录→合并→输出)一致。
  • [ok] 依赖声明 — requirements.txt 与 install.sh 的 pip / playwright 安装点一致。
  • [ok] 安装脚本性质 — bootstrap.sh 三档兜底(npx / git sparse-checkout / tarball)+ install.sh 均为用户主动运行的安装向导。
  • [ok] 反自动化证据 — 回源 scripts/platform_extractor.py 确认 --disable-blink-features=AutomationControlled 与隐藏 navigator.webdriver 的语句真实存在。
  • [ok] 凭证读取范围 — 仅读 $VT_HOME/.env 的 API Key,install.sh 写入后 chmod 600。
  • [ok] 外发对象 — 平台页与豆包 API 均为声明用途所需,未见向非预期第三方的回传。
  • [ok] 产物落盘 — .gitignore 屏蔽 .env 与 outputs/,逐字稿落 $VT_HOME/outputs/。
  • [ok] 档位复核 — 反自动化检测绕过硬证据 → red;同含凭据读取与外发特征,红档优先。

6Verdict & Scenarios

  • Broad multi-platform support: Bilibili / Douyin / Xiaohongshu / YouTube / WeChat Channels + local files.
  • Strict verbatim discipline: Automatic segmentation for long videos to prevent summarization, enforcing the agent to output the full text as-is.
  • Complete installation and fallback: bootstrap.sh three-tier fetching + install.sh wizard + FALLBACK.md.
  • Best for: Content creators and researchers who need to convert public videos into timestamped verbatim transcripts; users who can provide their own Doubao API Key and accept installing ffmpeg/Chromium.
    Not for: Users concerned about platform compliance who reject any automated detection evasion; users unable to provide a Doubao API Key or unwilling to transmit video content externally; scenarios requiring word-level timestamps or purely offline transcription.
    Install Agent-Ready
    ① Verified Mirror 2026-10-10
    Option A · Direct DownloadDownload video-transcript.tar.gz
    sha256: abd43fa2c309a839…
    Option B · Copy Guide for Agent
    install.json
    Agents automatically download and verify mirrors from this JSON guide.
    ② Upstream GitHub
    GitHub Repo ↗
    Pinned to commit 3cfa898c51.