Video Subtitle Remover logo

Video Subtitle Remover

Community
zrt-ai-lab
video-subtitle-remover

视频硬字幕/水印去除技能。自动配置基于 YaoFANGUK/video-subtitle-remover 的环境并执行去字幕。当用户要求"去除视频字幕"、"去水印"、"把这个视频的字幕干掉"时触发此技能。

Overview

Publisherzrt-ai-lab
Repositoryopencode-skills
Skill namevideo-subtitle-remover
Stars
293
Forks
75
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by zrt-ai-lab on GitHub. Read the source before you install it.

Installation

Install the Video Subtitle Remover AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zrt-ai-lab/opencode-skills/tree/main/video-subtitle-remover
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zrt-ai-lab/opencode-skills.git /tmp/opencode-skills
mkdir -p .claude/skills
cp -r /tmp/opencode-skills/video-subtitle-remover .claude/skills/video-subtitle-remover
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Video Subtitle Remover in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Video Subtitle Remover on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Video Subtitle Remover is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

视频字幕去除技能 (Video Subtitle Remover)

触发场景

当用户提到以下关键词时触发本技能:

  • "去字幕"、"去除视频字幕"
  • "去掉视频里的文字/水印"
  • "把这视频的字幕干掉"

工作流程

这是一个需要本地 GPU/Apple Silicon 加速的重型任务,你需要作为一个完整的执行器,从环境准备到执行全包揽。

第一阶段:环境检查与准备 (非常重要)

在首次运行前,必须检查环境并在用户机器上安装所需组件。工作目录约定为:~/.opencode/tools/video-subtitle-remover。

  1. 检查目录与代码 使用 bash 检查 ~/.opencode/tools/video-subtitle-remover/run_remove.py 是否存在。如果不存在,执行以下初始化操作:

    bash
    # 1. 创建工作目录
    mkdir -p ~/.opencode/tools/video-subtitle-remover/backend/models/{V4/ch_det,sttn}
    cd ~/.opencode/tools/video-subtitle-remover
    
    # 2. 拉取核心代码 (跳过模型文件)
    curl -sL "https://api.github.com/repos/YaoFANGUK/video-subtitle-remover/git/trees/main?recursive=1" | python3 -c "
    import sys, json, os, urllib.request
    data = json.load(sys.stdin)
    for item in data.get('tree', []):
        if item['type'] != 'blob': continue
        path = item['path']
        ext = os.path.splitext(path)[1].lower()
        if ext in {'.pth', '.onnx', '.pdiparams', '.pdmodel'} or '__pycache__' in path or item.get('size', 0) > 500000: continue
        
        os.makedirs(os.path.dirname(path) if os.path.dirname(path) else '.', exist_ok=True)
        url = f'https://raw.githubusercontent.com/YaoFANGUK/video-subtitle-remover/main/{path}'
        try:
            content = urllib.request.urlopen(url).read()
            with open(path, 'wb') as f: f.write(content)
        except: pass
    "
  2. 安装 Python 依赖

    bash
    pip3 install torch torchvision
    pip3 install filesplit==3.0.2 scikit-image pyclipper lmdb PyYAML omegaconf tqdm easydict scikit-learn pandas webdataset einops av shapely paddleocr paddle2onnx albumentations imgaug
  3. 下载并合并模型 (STTN 模式必需) 如果 backend/models/sttn/infer_model.pth 或 backend/models/V4/ch_det/inference.pdiparams 不存在,使用 curl 下载:

    bash
    cd ~/.opencode/tools/video-subtitle-remover/backend/models
    # 下载 STTN 模型
    curl -L -o sttn/infer_model.pth "https://raw.githubusercontent.com/YaoFANGUK/video-subtitle-remover/main/backend/models/sttn/infer_model.pth"
    
    # 下载并合并 PaddleOCR 文本检测模型 (3个分割包)
    curl -L -o V4/ch_det/inference_1.pdiparams "https://raw.githubusercontent.com/YaoFANGUK/video-subtitle-remover/main/backend/models/V4/ch_det/inference_1.pdiparams"
    curl -L -o V4/ch_det/inference_2.pdiparams "https://raw.githubusercontent.com/YaoFANGUK/video-subtitle-remover/main/backend/models/V4/ch_det/inference_2.pdiparams"
    curl -L -o V4/ch_det/inference_3.pdiparams "https://raw.githubusercontent.com/YaoFANGUK/video-subtitle-remover/main/backend/models/V4/ch_det/inference_3.pdiparams"
    curl -L -o V4/ch_det/fs_manifest.csv "https://raw.githubusercontent.com/YaoFANGUK/video-subtitle-remover/main/backend/models/V4/ch_det/fs_manifest.csv"
    curl -L -o V4/ch_det/inference.pdiparams.info "https://raw.githubusercontent.com/YaoFANGUK/video-subtitle-remover/main/backend/models/V4/ch_det/inference.pdiparams.info"
    curl -L -o V4/ch_det/inference.pdmodel "https://raw.githubusercontent.com/YaoFANGUK/video-subtitle-remover/main/backend/models/V4/ch_det/inference.pdmodel"
    
    # 使用 Python 合并
    python3 -c "from fsplit.filesplit import Filesplit; fs=Filesplit(); fs.merge(input_dir='V4/ch_det')"
  4. 注入修复代码与启动脚本 使用 edit 工具修改 backend/config.py:

    • 修复 Mac 的 MPS 设备支持 (device = torch.device('mps'))
    • 修复 FFMPEG_PATH 指向系统 ffmpeg (shutil.which('ffmpeg'))
    • 删除不必要的 LAMA 和 ProPainter 模型校验。

    并使用 write 工具生成 run_remove.py 启动脚本。

第二阶段:执行任务

  1. 提取信息与评估 获取用户提供的视频绝对路径,运行 ffprobe 或 ls -lh 获取帧数,给用户预报处理时间。

  2. 执行处理 运行处理脚本:

    bash
    export KMP_DUPLICATE_LIB_OK=True
    python3 ~/.opencode/tools/video-subtitle-remover/run_remove.py "<视频绝对路径>"

    注意:如果视频较长,务必使用 tmux 放后台跑。

  3. 结果交付 使用 open 命令为用户自动打开输出的 _no_sub.mp4 视频。

Frequently asked questions

What does the Video Subtitle Remover AI skill do?

视频硬字幕/水印去除技能。自动配置基于 YaoFANGUK/video-subtitle-remover 的环境并执行去字幕。当用户要求"去除视频字幕"、"去水印"、"把这个视频的字幕干掉"时触发此技能。

Why use Video Subtitle Remover on TypingMind?

Because you install it once and use it with any model. Video Subtitle Remover is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Video Subtitle Remover in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zrt-ai-lab/opencode-skills/tree/main/video-subtitle-remover. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Video Subtitle Remover?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Video Subtitle Remover?

As many as you like. As long as a model supports skills, you can use Video Subtitle Remover with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Video Subtitle Remover AI skill free?

It is published on GitHub by zrt-ai-lab. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇