SuperAPI AI Directory

video-transcript

Writing & research

View repository

Updated 11-10 04:23

About this skill

Video to text (video-transcript)

Turn a video into averbatim transcript article article.md: it can then be delivered directly, or handed off to rewriting, translation, long-image, card, WeChat official account formatting and other capabilities; the process is exactly the same as for articles. Article links are not handled here; use article-fetch。

Parameters:$ARGUMENTS

1. Capability check (first time in this session)

node ${CLAUDE_SKILL_DIR}/scripts/doctor.mjs

Look at the video-input line: whether yt-dlp (YouTube, Bilibili), ffmpeg (audio conversion), and local speech recognition (when there are no subtitles) are present. For anything missing, tell the user how to install it;do not install or download anything yourself. When there are only .srt / .vtt files, nothing is needed.

2. Transcription

node ${CLAUDE_SKILL_DIR}/scripts/transcribe.mjs "<视频链接或文件>"                      # → ./article2media-out/<平台>-<id>/
node ${CLAUDE_SKILL_DIR}/scripts/transcribe.mjs "<链接>" --prompt "人名 术语" --terms 词表.txt
node ${CLAUDE_SKILL_DIR}/scripts/transcribe.mjs ./talk.mp4 --title "标题" --author "作者"
  • Text source: human-made subtitles take priority, then the platform's auto-generated subtitles in the original language (do not use machine-translated subtitle tracks); when neither exists, use local Whisper recognition. Existing transcripts are reused by default;--force to start over.
  • Proper nouns: first use --prompt "人名 术语" as a hint, then use --terms 词表.txt(one per line: 错词=>正词) to replace.
  • When the platform requires browser cookies(YouTube bot verification, Douyin share pages without data): first ask the user whether the local browser state can be reused, and only add --cookies-from-browser chromeafter they agree; if they do not agree, ask the user to save the video locally and upload the file directly.
  • Other parameters:--lang recognition language,--keep-video keep MP4 (for screenshots),--out specify directory. For details on sources, cleanup, and output files, see references/video-input.md。

3. Verification

  1. Read through article.mdin full, and check names, work titles, and terminology against the context of transcript/segments.md . For anything clearly misrecognized, rerun with --prompt / --terms ; for anything uncertain,do not guess, and list it at delivery.
  2. The verbatim transcript only adds punctuation and paragraphs; do not change the words. Do not manually "polish" it—turning it into an article is the job of rewriting (article-rewrite).

4. Delivery

When used standalone:article.md and the absolute paths of transcript/segments.md , platform, duration, text source (human subtitles / auto subtitles / local recognition), number of segments and word count, as well as any uncertain proper nouns. In a combination: hand the directory to the next capability (see ../article2media/references/pipeline.md). When publishing an image-text post or video made from the transcript, write the source as "Content compiled from <author>'s <platform> video 《title》".