小龙视频文案提取工具箱

SKILL内容创作
内容创作 未标注权限 许可证不明确
安装这个技能

短视频处理工具箱,支持抖音、小红书、快手、B站分享链接。可一键提取视频的完整口播文字脚本(逐字稿,每 20 秒一段带时间戳),也可去水印、去字幕、图片 OCR。 ★ 离线可用:默认 Vosk 中文语音识别引擎,纯 C++ 推理,无需 GPU、无需联网下载模型,沙箱环境也能跑(已实测 13 分钟长视频完整转写 4600+ 字)。 ★ 多平台:抖音、快手、小红书、B站等平台分享链接一键解析;反爬平台支持自带 Cookie。 ★ 多模态:除文字提取外,支持去水印(delogo/blur/inpaint 三种算法)、去字幕(区域遮盖)、图片文字识别(OCR 三级回退)。 使用示例:把抖音链接发给 AI 助手说"提取这个视频的文字脚本",即可返回完整逐字稿。

一句话选型结论

按资料字段整理

小龙视频文案提取工具箱是内容创作类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

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

安装

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

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

  2. 2
    拿到技能文件

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

  3. 3
    刷新技能列表

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

  4. 4
    验证是否生效

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

技能档案

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

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
写文章与脚本

按主题产出初稿与分镜脚本。

改稿与润色

把草稿改顺、统一语气。

多平台文案改写

同一内容按平台改成长短不同的版本。

选择建议

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

值得选的地方

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

先想清楚的地方

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

更适合

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

不太适合

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

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
小龙视频文案提取工具箱当前 未标注权限 未标注 未标注 未标注 有
AI 视频生成 调用外部服务 GitHub 仓库 431.3 万 Codex、Claude、Cursor 有
视频帧 联网访问 ClawHub 市场 262.1 万 OpenClaw 有
Markdown 转换器 写入文件 ClawHub 市场 135.3 万 OpenClaw 有
哔哩哔哩全合一 接触敏感数据 ClawHub 市场 64.1 万 OpenClaw 有
Remotion video toolkit 命令行 浏览器控制 ClawHub 市场 63.9 万 OpenClaw 有

SKILL.md 全文

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

Video Toolkit - Short Video Processing

Overview

A comprehensive toolkit for processing short videos from Chinese social media platforms (Douyin, Xiaohongshu, Kuaishou, Bilibili). Provides four core capabilities inspired by the qingdou.vip (轻抖) tool:

  1. Extract Text (提文案 / 文字脚本) — Download a short video and transcribe its full spoken script to text. Uses Vosk (offline, pure C++, no GPU/torch needed, works in any environment) by default, and Whisper automatically when available for higher accuracy.
  2. Remove Watermark (去水印) — Download videos without platform watermarks
  3. Remove Subtitle (去字幕) — Remove hardcoded subtitles from video files
  4. Image OCR (图片提文案) — Extract text from images/screenshots

How to Invoke This Skill (如何调取)

After installing this package with SkillHub, use either method below:
① Conversation trigger (most common) — In WorkBuddy, just give a link + a one-line intent; the skill auto-matches:
- "提取这个抖音视频的文字脚本 https://v.douyin.com/xxx/"
- "把这条视频里说的所有话转成逐字稿"
- "扒一下这个小红书视频的文字"

② Run the script directly (terminal / local machine) — use the bundled venv python:

cd "<skill-directory>"
python video_toolkit.py extract-text "链接" --engine vosk

Batch processing - Run video_toolkit.py extract-text once for each link.

Key prerequisite: Douyin / Kuaishou links need a valid Cookie
- Keep your own cookie file outside this package. Pass it with --cookies <path> or set VIDEO_TOOLKIT_COOKIES.
- If extraction returns 403 / empty content, refresh your own cookie export and pass its local path again.
- The Vosk Chinese model is already cached under ~/.cache/video_toolkit/vosk_models/ and runs offline — no per-run download needed

Quick Start

First-time Setup

Run the environment setup script to install all Python dependencies (requires Python 3.8+ and ffmpeg):

python setup_env.py

To check what's installed without installing:

python setup_env.py --check

ffmpeg must be installed separately (it is NOT a pip package):
- Windows: Download from https://www.gyan.dev/ffmpeg/builds/ and add to PATH
- Mac: brew install ffmpeg
- Linux: sudo apt install ffmpeg

Usage

All commands output JSON. The main script is video_toolkit.py.

# Extract text (full spoken script) from a Douyin share link
python video_toolkit.py extract-text "7.xx 复制此链接 https://v.douyin.com/xxxxx/"

# Same, forcing the offline Vosk engine explicitly
python video_toolkit.py extract-text "https://v.douyin.com/xxxxx/" --engine vosk --model-key cn-small

# Use higher-accuracy Whisper if you have it installed
python video_toolkit.py extract-text "https://v.douyin.com/xxxxx/" --engine whisper --model small

# Download video without watermark
python video_toolkit.py remove-watermark "https://v.douyin.com/xxxxx/"

# Remove subtitles from a local video file
python video_toolkit.py remove-subtitle video.mp4 --method delogo
python video_toolkit.py remove-subtitle video.mp4 --method blur --region 0,80%,100%,20%
python video_toolkit.py remove-subtitle video.mp4 --method inpaint

# Extract text from an image (OCR)
python video_toolkit.py image-text screenshot.png

# Get video metadata
python video_toolkit.py video-info "https://v.douyin.com/xxxxx/"

Task Guide

Task 1: Extract Text from Video (提文案 / 文字脚本)

When: User provides a short video share link and wants the complete spoken script (逐字稿) of the video — i.e. everything said in the video, transcribed into text. This is the core "把所有文字提取出来" capability.

How:
1. Run extract-text with the share link or URL (or a local video file)
2. The script automatically: downloads the video (with cookies if needed) → extracts audio (ffmpeg) → transcribes speech (ASR)
3. Output JSON contains:
- spoken_script — the full transcript of everything spoken in the video
- segments — same text with start/end timestamps
- platform_caption — the original platform 文案/description
- all_text — platform_caption + spoken_script merged for convenience

ASR engine (--engine, default auto):
- auto — use Whisper if installed, otherwise Vosk (offline, always works)
- vosk — offline, pure C++ inference. No torch, no GPU, runs anywhere. Chinese model auto-downloaded on first use. Fast & reliable; recommended default.
- whisper — higher accuracy (openai-whisper / faster-whisper); needs PyTorch, slower on CPU.

Vosk model (--model-key, default cn-small):
- cn-small — fast, ~40MB, good accuracy (default)
- cn — larger, best Chinese accuracy (~1.4GB)
- cn-kaldi-multicn — alternative Chinese model
- en — English

Example user requests:
- "帮我提取这个抖音视频的文案 [share link]"
- "把这条视频里说的所有话转成文字" → extract-text [link] --engine vosk
- "扒一下这个小红书视频的文字"
- "这个快手视频说了什么 [share link]"

Task 2: Remove Watermark (去水印)

When: User wants to download a video without the platform watermark.

How:
1. Run remove-watermark command with the share link
2. For Douyin: parses share text → follows redirect → calls API → gets no-watermark URL → downloads
3. For Xiaohongshu: parses share text → gets note data → downloads original video/images
4. Fallback: yt-dlp for platforms where custom parsing fails

Supported platforms:
| Platform | Share link format | Watermark removal |
|----------|------------------|-------------------|
| Douyin (抖音) | https://v.douyin.com/xxxxx/ | Yes (API + page parse) |
| Xiaohongshu (小红书) | http://xhslink.com/xxxxx | Yes (page parse) |
| Kuaishou (快手) | https://v.kuaishou.com/xxxxx | Via yt-dlp |
| Bilibili (B站) | https://www.bilibili.com/video/BVxxx | Via yt-dlp |

Notes:
- Platform APIs change frequently. If the custom parser fails, yt-dlp is used as fallback.
- Xiaohongshu image posts (图文笔记) are downloaded as image files, not video.
- Some platforms may require cookies or specific headers that change over time.

Task 3: Remove Subtitles (去字幕)

When: User has a local video file with hardcoded subtitles and wants them removed.

How:
1. Run remove-subtitle command with the video file path
2. Choose a removal method (see below)
3. Optionally specify the subtitle region (default: bottom 20% of video)

Removal methods:

Method Quality Speed Description
delogo (default) Good Fast ffmpeg delogo filter, best for simple subtitle areas
blur Medium Fast Blurs the subtitle region (crop+overlay+boxblur)
black Low Fastest Covers subtitle with a solid black box
inpaint Best Slow OpenCV inpainting, highest quality but requires opencv-python

Region format: x,y,width,height where values can be pixels or percentages.
- Default (bottom 20%): 0,80%,100%,20%
- Custom: 0,85%,100%,15% (narrower strip at the very bottom)
- The script also accepts ffmpeg expression syntax like ih*0.8

Example user requests:
- "帮我去掉这个视频的字幕 video.mp4"
- "这个视频底部的字幕怎么去掉"
- "视频去字幕 [file path]"

Task 4: Image Text Extraction (图片提文案)

When: User has an image (screenshot, photo, poster) and wants to extract text from it.

How:
1. Run image-text command with the image file path
2. The script tries OCR engines in order: PaddleOCR → EasyOCR → pytesseract
3. Output JSON contains texts (list of detected text lines) and full_text

OCR engine priority:
1. PaddleOCR (recommended) — Best for Chinese text, handles angled text
2. EasyOCR — Good for mixed Chinese/English, easy to install
3. pytesseract — Lightweight, requires tesseract-ocr system package

Task 5: Video Info

When: User wants metadata about a video (duration, resolution, codec, etc.).

How: Run video-info with a URL or file path. Uses ffprobe for local files, and downloads + probes for URLs.

Workflow Decision Tree

User input
├── Share link / URL?
│   ├── "提取文案" / "扒文案" / "文字" → extract-text
│   ├── "去水印" / "下载" / "保存" → remove-watermark
│   └── "信息" / "详情" → video-info
├── Local video file?
│   ├── "去字幕" / "去字幕" → remove-subtitle
│   └── "信息" → video-info
├── Local image file?
│   └── "文字" / "识别" → image-text
└── Multiple links?
    └── Loop through each link and run the appropriate command

Important Notes

Platform API Stability

Social media platform APIs (especially Douyin and Xiaohongshu) change frequently to prevent scraping. The custom parsers in this toolkit may break when APIs change. When this happens:
1. The script automatically falls back to yt-dlp
2. yt-dlp is actively maintained and usually has up-to-date extractors
3. Update yt-dlp regularly: pip install -U yt-dlp

Performance Considerations

  • Vosk (default, offline): Pure C++ inference, no torch/ctranslate2, no GPU. Runs in any environment (including sandboxes where Whisper won't load). The Chinese model is auto-downloaded once (cn-small ~40MB, cn ~1.4GB) and cached under ~/.cache/video_toolkit/vosk_models. Near real-time on CPU for short clips.
  • Whisper (higher accuracy, optional): Auto-used when openai-whisper is installed (--engine whisper). base model ≈ 1-2 min per minute of audio on CPU; use --model tiny for speed. NOTE: faster-whisper/ctranslate2 segfaults on Python 3.13 — avoid it.
  • OpenCV inpaint: Much slower than ffmpeg methods. Only use when quality matters.
  • PaddleOCR: First run downloads model files (~100MB). Subsequent runs are fast.

Legal & Ethical Use

  • Only download and process videos for personal use or with the creator's permission
  • Respect platform terms of service and copyright laws
  • Do not redistribute downloaded content without permission
  • Watermark removal is for personal use only (e.g., creating clean references)

Scripts

video_toolkit.py

Main CLI script with all four capabilities. Run with --help for full usage.

setup_env.py

Environment setup script. Checks and installs all Python dependencies.

requirements.txt

Complete list of Python dependencies. Install with: pip install -r requirements.txt

References

platforms.md

Detailed documentation of supported platforms, URL formats, and API parsing methods.

常见问题

5 问
答案由本站依据条目字段整理
小龙视频文案提取工具箱怎么安装?

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

小龙视频文案提取工具箱支持哪些客户端?

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

小龙视频文案提取工具箱权限高吗,安全吗?

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

小龙视频文案提取工具箱收费吗?

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

小龙视频文案提取工具箱用什么许可证?

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

热门专题

按场景挑技能
全部专题 →

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