chinese-video-transcribe-pdf

chinese-video-transcribe-pdf is a skill for Claude Code, Codex from davidtoby/agent-skills. It costs 61 tokens per session (1,465 once invoked), scanned A, original, MIT.

A workflow that turns Chinese-language videos, with or without subtitles, into structured text and a Chinese PDF report. It can use videos from sources such as YouTube or local MP4 files.

In plain words
What is it for?
Use it to download or process a video, extract its audio, convert spoken Chinese into timestamped text, and produce a formatted PDF report.
Why use it?
It removes the need to transcribe speech manually or depend on existing subtitles, which may be missing or inaccurate.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to download or process a video, extract its audio, convert spoken Chinese into timestamped text, and produce a formatted PDF report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/davidtoby/agent-skills/chinese-video-transcribe-pdf
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add davidtoby/agent-skills --skill chinese-video-transcribe-pdf
Clone the repo
git clone --depth 1 https://github.com/davidtoby/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chinese-video-transcribe-pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/davidtoby/agent-skills/chinese-video-transcribe-pdf/github.svg)](https://agentmods.dev/skills/davidtoby/agent-skills/chinese-video-transcribe-pdf)
Your own site
<a href="https://agentmods.dev/skills/davidtoby/agent-skills/chinese-video-transcribe-pdf"><img src="https://agentmods.dev/badge/skills/davidtoby/agent-skills/chinese-video-transcribe-pdf/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for chinese-video-transcribe-pdf

Your own site · 80×15
<a href="https://agentmods.dev/skills/davidtoby/agent-skills/chinese-video-transcribe-pdf"><img src="https://agentmods.dev/badge/skills/davidtoby/agent-skills/chinese-video-transcribe-pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,465 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.01465
Opus 5 $0.00030 $0.00732
Sonnet 5 $0.00012 $0.00293
Haiku 4.5 $0.00006 $0.00146

Measured 12d ago against content hash 71fa6913cd45, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

chinese-video-transcribe-pdf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/.archive/umbrella-curation-2026-04-29/media/chinese-video-transcribe-pdf/SKILL.md · 141 lines

How it starts

The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Chinese Video Transcription to PDF

将中文视频转写为结构化文本并生成专业中文PDF报告。

核心工作流

1. yt-dlp 下载视频
2. ffmpeg 抽出音频(16kHz PCM)  ← 关键步骤,避免视频解码问题
3. faster-whisper tiny/medium 模型转写(支持中文,无需字幕)
4. 整理 Markdown 报告内容
5. render_cn_report_pdf.py 生成 PDF

Step 1:下载视频

yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" \
  -o "~/Downloads/%(title)s.%(ext)s" "VIDEO_URL"

如下载中断,用 --force-overwrites 或直接重新运行(yt-dlp 自动续传)。

Step 2:抽出音频(关键)

视频编码(AV1等)可能导致 Whisper 卡在43% 解码位置。必须先抽出音频

ffmpeg -i "INPUT.mp4" -vn -acodec pcm_s16le -ar 16000 -ac 1 /tmp/audio.wav -y

参数说明:

  • -vn 不要视频
  • -acodec pcm_s16le 线性PCM,避免压缩编码问题
  • -ar 16000 Whisper 推荐的采样率
  • -ac 1 单声道

Step 3:转写(faster-whisper)

不要用 openai-whisper CLI(输出 pipe 到 tail 时无法观察进度,且某些视频编码会卡住)。

用 Python API + faster-whisper:

from faster_whisper import WhisperModel

model = WhisperModel("tiny", device="cpu", compute_type="int8")
segments, info = model.transcribe(
    "/tmp/audio.wav",
    language="zh",
    vad_filter=True,
    vad_parameters=dict(min_silence_duration_ms=800)
)

results = []
for seg in segments:
    results.append({
        "start": round(seg.start, 2),
        "end": round(seg.end, 2),
        "text": seg.text.strip()
    })

# 保存为 JSON
import json
with open("/tmp/transcript.json", "w", encoding="utf-8") as f:
    json.dump({"segments": results, "language": info.language}, f, ensure_ascii=False, indent=2)

模型选择

  • tiny — 最快(3分钟左右转写40分钟),中文识别准确率已很好
  • medium — 更准但更慢,适合关键内容

Step 4:生成 Markdown 报告

根据转写内容整理 Markdown 结构,使用中文标题和自然段落。

Step 5:生成 PDF

重要决策点: ReportLab 渲染器的输出质量偏基础(markdown 直转,无 CSS 精排,层次感弱)。当用户需要专业/咨询风格报告时(如对方明确说"排版太差""咨询风格"),跳过 ReportLab,使用 HTML+CSS+Chrome 导出

路径 A:基础版 — ReportLab(快速,排版一般)

python3 $SKILL_DIR/../../../openclaw-imports/chinese-pdf-report/scripts/render_cn_report_pdf.py \
  --input /tmp/report.md \
  --output ~/Downloads/输出报告.pdf

字体自动注册:SongtiSC(正文)、HeitiSC(标题)、KaitiSC(引用)。

Read the full file on GitHub · 141 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 141 lines · 61 tokens per session scan A 71fa6913cd45

Subscribe to this mod's changes

chinese-video-transcribe-pdf is a skill published in the GitHub repository davidtoby/agent-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 61 tokens to every session and 1,465 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

morph-ppt

Use this skill when the user wants a .pptx with smooth cross-slide animation — PowerPoint Morph transitions, Keynote-style continuous motion, shapes that grow / move / rotate as the slide advances. Trigger on: 'morph', 'morph transition', 'smooth transition', 'continuous animation across slides', 'Keynote-style…

iOfficeAI/OfficeCLI · 169 tokens

officecli-academic-paper

Use this skill to build academic-style .docx output: journal / conference / thesis chapters carrying formal citation style (APA, Chicago, IEEE, MLA), numbered equations, figure & table cross-references, footnotes/endnotes, bibliography, or multi-column journal layout. Trigger on: 'research paper', 'journal paper'…

iOfficeAI/OfficeCLI · 141 tokens

officecli-docx

Use this skill any time a .docx file is involved -- as input, output, or both. This includes: creating Word documents, reports, letters, memos, or proposals; reading, parsing, or extracting text from any .docx file; editing, modifying, or updating existing documents; working with templates, tracked changes, comments…

iOfficeAI/OfficeCLI · 114 tokens

officecli-financial-model

Use this skill when the user wants to build a financial model — 3-statement model, DCF valuation, LBO, SaaS unit economics, sensitivity / scenario analysis, debt schedule, or fundraising projections — in Excel. Trigger on: 'financial model', '3-statement model', 'P&L + BS + CF', 'DCF', 'WACC', 'NPV', 'terminal value'…

iOfficeAI/OfficeCLI · 222 tokens

officecli-pptx

Use this skill any time a .pptx file is involved -- as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file; editing, modifying, or updating existing presentations; combining or splitting slide files; working with…

iOfficeAI/OfficeCLI · 106 tokens

officecli-word-form

Use this skill to create fillable Word forms (.docx) with real Content Controls (SDT) + legacy FormField checkboxes + MERGEFIELD mail-merge placeholders + document protection. Trigger on: 'fillable form', 'form fields', 'content controls', 'SDT', 'word form', 'fill in', 'only editable fields', 'protect document'…

iOfficeAI/OfficeCLI · 224 tokens