本地字幕·提取校对

SKILL前端设计
前端设计 未标注权限 许可证不明确
安装这个技能

本地字幕·提取校对:完全离线、无需 API key。支持三条路径:A) ffmpeg 提取内嵌软字幕;B) faster-whisper 语音转写(自动识别语言,支持 NVIDIA CUDA 加速,Intel Arc 走 CPU);C) 硬字幕多模态帧读取比对校正。内置繁体→简体转换、规则校对(去重/排序/标点)、导出易读文稿、生成对照校正报告。触发词:字幕提取、视频转字幕、语音转写、字幕校对、提取字幕、extract subtitles、transcribe video。

一句话选型结论

按资料字段整理

本地字幕·提取校对是前端设计类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类前端设计 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_283a17af/video-subtitle-tool
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

前端设计
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_283a17af仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791727898
正文体量7.1 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
出页面与组件

按描述生成页面结构和组件草稿。

调整样式与布局

改间距、配色与响应式布局。

生成设计说明

把设计稿整理成开发能接的说明。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在前端设计场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
本地字幕·提取校对当前 未标注权限 未标注 未标注 未标注 有
前端设计 只读 GitHub 仓库 882.3 万 Codex、Claude、Cursor 有
Vercel 组合模式 联网访问 GitHub 仓库 385.9 万 Codex、Claude、Cursor 有
Vercel React native skills 前端 只读 GitHub 仓库 246.9 万 Codex、Claude、Cursor 有
adapt 搜索 浏览器控制 GitHub 仓库 202.7 万 Codex、Claude、Cursor 有
使用我的浏览器 浏览器控制 GitHub 仓库 184.8 万 Codex、Claude、Cursor 有

SKILL.md 全文

7.1 KB
模型实际读到的说明书原文,来自技能仓库

Local Video Subtitle Extraction & Proofreading

Turn a local video into a clean, readable subtitle/script. Three extraction paths,
one rule-based proofread layer, and an optional hard-subtitle comparison that fixes
ASR mis-hearings using the video's burned-in text.

When to use

  • "提取这个视频的字幕" / "把视频转成文字" / "字幕校对"
  • A local video file (mp4/mkv/webm/...) with either embedded subtitles, burned-in
    (hard) subtitles, or just speech.
  • No API keys, no cloud — everything runs locally.

Environment (read first)

  • Python 3.10+ with these packages: faster-whisper, pysubs2,
    opencc-python-reimplemented, pillow. Install once (see references/setup.md for
    the China mirror + HuggingFace env vars):
    bash pip install faster-whisper pysubs2 opencc-python-reimplemented pillow
    Run every script with that Python, e.g. python scripts/transcribe.py ....
    (On the author's machine a dedicated venv at
    C:/Users/Administrator/.workbuddy/binaries/python/envs/subtitle already has them.)
  • ffmpeg must be on PATH (provides ffmpeg + ffprobe). Scripts auto-detect them;
    if missing they print an install hint and exit. Always pass Windows paths
    (E:/视频/x.mp4); native ffmpeg ignores /e/ msys paths.
  • Set before any model download / run:
    bash export HF_ENDPOINT="https://hf-mirror.com" export HF_HUB_DISABLE_XET="1"
  • Known pitfalls (GPU specifics, OCR download blocked, xet 401, etc.) → references/lessons.md.
    Format/ffmpeg recipes → references/formats.md.

Workflow

Step 0 — Decide the path (probe first, don't assume)

  1. Probe for embedded subtitles (Path A):
    bash PYTHON="<venv>/Scripts/python.exe" "$PYTHON" scripts/extract_embedded.py "E:/视频/x.mp4" out.srt
    - Exit 0 → embedded subtitle extracted. Done (skip to Step 4 for proofread/export).
    - Exit 2 → no embedded subtitle track. Continue to Step 1.
  2. Check for burned-in (hard) subtitles: extract one frame and Read it
    (scripts/extract_frames.py with --count 1, or ffmpeg -ss 30 -frames:v 1).
    If hard subtitles are visible, the user chooses ASR (recommended) or skip.

Step 1 — ASR transcription (Path B, the reliable default)

"$PYTHON" scripts/transcribe.py "E:/视频/x.mp4" raw.srt --model small --lang zh
  • Works on any video/audio. Auto-extracts 16k mono wav (cached as raw.srt.wav).
  • --lang auto detects language; zh forces Chinese. small is a good balance;
    medium/large-v3 for higher accuracy (slower).
  • Device: --device auto (default) uses CUDA if an NVIDIA GPU is present, else
    CPU. On an NVIDIA GPU pass --device cuda for a large speedup (CTranslate2
    supports CUDA natively — no extra setup beyond an NVIDIA driver).
    On Intel Arc (A770 etc.) use --device cpu — the Arc GPU cannot produce valid
    timestamps via OpenVINO (see references/lessons.md §4), but CTranslate2's CPU
    mode runs fine and is exactly what this skill was tested on (an A770 machine).

Step 2 — Rule-based proofread (always)

"$PYTHON" scripts/proofread.py raw.srt cleaned.srt
  • Traditional→Simplified (OpenCC), strips empty cues, merges duplicate consecutive
    lines, sorts by time. Fully offline, no LLM.

Step 3 — (Optional) Hard-subtitle comparison & correction

Fixes ASR mis-hearings (反制主义→反智主义, etc.) by reading the video's burned text.
1. Extract frames:
bash "$PYTHON" scripts/extract_frames.py "E:/视频/x.mp4" frames/ --count 16 --collage
2. Read the frames with vision (Read tool on each frames/f*.jpg, or the
collage.jpg). Note the correct wording where ASR clearly mis-heard.
3. Build a correction map fixes.json — a JSON list of [wrong, right] pairs, e.g.
[["反制主义","反智主义"],["反制","反智"],["优技","优绩"],["公立","功利"]].
Optionally a pending.json list of {term,pos,guess,note} for items needing
human review.
4. Apply + report:
bash "$PYTHON" scripts/correct_srt.py cleaned.srt fixes.json \ --out-srt fixed.srt --out-txt fixed.txt --report report.md \ --title "视频标题" --pending pending.json \ --copy-srt "C:/Users/Administrator/Desktop/字幕_校正版.srt"

Step 4 — Export readable document

"$PYTHON" scripts/export_doc.py cleaned.srt \
    --txt "C:/Users/Administrator/Desktop/字幕文稿.txt" \
    --title "视频标题" \
    --copy-srt "C:/Users/Administrator/Desktop/字幕.srt"

Produces a paragraph-merged plain-text transcript and copies the SRT alongside.

Scripts reference

Script In Purpose
extract_embedded.py A Pull embedded soft subtitle (ffprobe+ffmpeg). Exit 2 if none.
transcribe.py B faster-whisper ASR → SRT. Auto-extracts audio. --device cuda for NVIDIA GPU.
proofread.py — OpenCC t2s + clean/dedup/sort.
extract_frames.py C Crop bottom subtitle band to frames for multimodal reading.
export_doc.py — SRT → readable TXT + optional SRT copy.
correct_srt.py C Apply fixes.json → corrected SRT/TXT + comparison report.

Known limitations

  • NVIDIA GPU (CUDA): fully supported — pass --device cuda (or auto). This is
    the fastest path. CTranslate2 bundles CUDA support; only an NVIDIA driver is needed.
  • Intel Arc (A770 etc.) — GPU acceleration unavailable, but CPU mode works fully.
    The Arc GPU cannot produce valid timestamps via OpenVINO (it drops the
    cross-attentions timestamps depend on — see references/lessons.md §4), so do not
    use it as an accelerator. CTranslate2's CPU mode runs perfectly on an Arc machine —
    in fact this skill was developed and tested on an Intel Arc A770 (the bundled
    examples originated there). Run with --device cpu.
  • AMD GPU (ROCm): not supported by the current backend. faster-whisper's engine
    (CTranslate2) ships CUDA + CPU wheels only — there is no ROCm build. On AMD the
    script falls back to CPU (clean timestamps, slower). A DirectML / whisper-ort backend
    could cover AMD/Intel/NVIDIA on Windows but is not implemented yet and untested
    here
    (see references/lessons.md §4). Contributions welcome.
  • Hard-subtitle OCR via easyocr is not viable in China (model weights undownloadable;
    see references/lessons.md §5). Use multimodal frame reading instead.
  • Rule-based proofread does not fix semantic errors — that needs the Step 3
    hard-subtitle comparison (or an LLM, out of scope by default).

常见问题

5 问
答案由本站依据条目字段整理
本地字幕·提取校对怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_283a17af/video-subtitle-tool。安装方式为未标注。装完刷新技能列表或重开客户端。

本地字幕·提取校对支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

本地字幕·提取校对权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

本地字幕·提取校对收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

本地字幕·提取校对用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。