Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

video-dub视频配音

Agent Skill

用于辅助视频生成、动画合成、脚本化剪辑或 Remotion 等视频项目开发。它适合让 Agent 组织镜头、生成素材说明、维护合成代码或排查渲染问题。使用时需要确认分辨率、时长、素材路径和导出格式;涉及外部素材、人物肖像或商业发布时,应先核对版权授权和内容审核要求。

总安装

2,611

周安装

111

GitHub Stars

1

下载量

915
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:video-dub(视频配音)
来源仓库:https://github.com/bzxcup-afk/video-dub
安装命令:
openclaw skills install video-dub
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install video-dub

简介

Windows 首个视频本地化管道,用于下载、转录、翻译、配音和重新定时 YouTube 或 Bilibili 视频。

SKILL.md

name
video-dub
description
Windows-first video localization pipeline for downloading, transcribing, translating, dubbing, and retiming YouTube or Bilibili videos.

Video Dub Skill

Use this skill when a user wants to turn a source video into a localized dubbed video with aligned subtitles.

This skill bundles the complete video_pipeline, so the pipeline code is included with the skill installation.

What the pipeline does

Primary workflow:

  1. Download the source video (via yt-dlp)
  2. Optionally replace only the opening picture with a cover image
  3. Extract mono 16k audio
  4. Transcribe with Whisper
  5. Clean English blocks, correct proper nouns, and translate
  6. Generate TTS
  7. Retime the video to match the dub
  8. Export aligned SRT files without burning subtitles

The main controller is video_pipeline/scripts/quick_deliver.py.

Supported modes

  • Forward localization: English video to Chinese dubbed video
  • Reverse localization: Chinese video to English dubbed video

Requirements

Environment variables (at least one required)

VariableRequiredDescription
DEEPSEEK_API_KEYYes*DeepSeek API key for translation. *Required if using default translation path.
YTDLP_COOKIES_FILENoPath to YouTube cookies.txt for reliable downloads
NODE_OPTIONSNoSet to --max-old-space-size=4096 if YouTube shows JavaScript challenges

Optional TTS providers (no API key needed for default)

ProviderEnv VariableRequired
Edge TTS (default)TTS_PROVIDER=edgeNo
VolcEngineTTS_PROVIDER=volcengine + API keyNo
AzureTTS_PROVIDER=azure + API keyNo
Windows SAPITTS_PROVIDER=windows_sapiNo

Translation provider

The default translation uses DeepSeek API. To use a different provider, edit video_pipeline/scripts/services/deepseek_translator.py and replace the base URL with your preferred API (e.g., OpenAI, Anthropic, Grok, etc.). The translation interface is standardized, so any LLM API that supports chat completions can be substituted.

System dependencies (must be installed)

  • Python 3.10+
  • ffmpeg and ffprobe (must be in PATH)
  • node (for yt-dlp's JavaScript runtime)

Python packages

pip install -r video_pipeline/requirements.txt

Key packages: yt-dlp, openai-whisper, torch, ffmpeg-python, edge-tts

Default settings

  • Whisper model: small
  • TTS provider: edge (no API key needed)
  • Edge voice: zh-CN-YunjianNeural
  • Translation: DeepSeek API
  • Retiming padding: 0.05s
  • Final subtitle target: *_zh_retimed_v4_final.srt

For reverse localization, reasonable English voice: en-US-GuyNeural

Proper Noun Glossary

The enrichment stage automatically applies a local glossary before translation.

Use it to normalize:

  • place names
  • people and organizations
  • recurring technical or military terms

Recommended format:

{
  "terms": [
    { "canonical": "Kyiv" },
    {
      "canonical": "Armed Forces of the Russian Federation",
      "aliases": [
        "armed force of the Russian Federation",
        "Amodovvoso-Durasian Federation"
      ],
      "min_similarity": 0.72
    }
  ]
}

Rules:

  • canonical is required.
  • aliases is optional.
  • If aliases is omitted, the canonical term still participates in fuzzy matching.
  • min_similarity is optional.
  • The glossary is stored in the pipeline bundle and does not require a separate manual step when the main controller is used.

Running the pipeline

# Install dependencies first
pip install -r video_pipeline/requirements.txt

# Set required environment variables
$env:DEEPSEEK_API_KEY="your_deepseek_api_key"  # Required for translation

# Optional: for reliable YouTube downloads
$env:YTDLP_COOKIES_FILE="path\	o\youtube_cookies.txt"
$env:NODE_OPTIONS="--max-old-space-size=4096"

# Run the pipeline
cd <skill_root>\video_pipeline
python .\scripts\quick_deliver.py "https://www.youtube.com/watch?v=VIDEO_ID"

To rebuild an already processed video:

python .\scripts\quick_deliver.py "https://www.youtube.com/watch?v=VIDEO_ID" --refresh-tts

Expected outputs

After a successful forward run:

  • video_pipeline/data/output/*_zh_retimed_v4.mp4 - final dubbed video
  • video_pipeline/data/subtitles/*_zh_retimed_v4_final.srt - final subtitle file

Optional outputs:

  • video_pipeline/data/output/*_zh_male.mp4
  • video_pipeline/data/subtitles/*_zh.srt
  • video_pipeline/data/subtitles/*_zh_retimed_v4.srt
  • video_pipeline/data/structured/*.json
  • video_pipeline/data/state/debug/*_en_blocks.json

Agent guidance

When an agent runs this skill:

  1. Validate the input URL (YouTube or Bilibili)
  2. Set required environment variables (DEEPSEEK_API_KEY for translation)
  3. Ensure system dependencies are installed (ffmpeg, node, Python 3.10+)
  4. Run quick_deliver.py from the video_pipeline subdirectory
  5. Return the final video and subtitle paths
  6. If the user asks for partial reruns, rebuild only the requested stage when possible

Known limitations

  • YouTube downloads may require cookies file if encountering bot detection
  • Video processing requires significant disk space for intermediate files
  • Default TTS (Edge) requires no API key but an internet connection

Security notes

This skill uses common patterns that may trigger automated security scanners:

  • subprocess: Used to call ffmpeg, ffprobe, and yt-dlp for video processing. These are legitimate system utilities.
  • os.getenv("DEEPSEEK_API_KEY"): API key is read from environment variables only, never hardcoded.
  • decode(): Audio/video data is decoded for processing, not for malicious purposes.

These are standard practices for video processing pipelines and do not indicate any malicious behavior. The code does not:

  • Transmit data to unauthorized endpoints
  • Download or execute remote code
  • Store or exfiltrate credentials

If your security scanner blocks this skill, you can verify by reviewing the source code in video_pipeline/scripts/.

Packaging notes

This skill is published with the pipeline code bundled in the video_pipeline/ subdirectory.

The bundle excludes generated outputs and caches (data/raw/, data/audio/, data/tts/, data/output/, data/state/, etc.).

To rebuild the release bundle from source:

.\scripts\package_release.ps1 -SourceRoot "D:\video_pipeline" -DestinationRoot "<skill_destination>"

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

89.74%
按下载量换算821

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills