/byted-vod-process-tools
点播空间名称
$ npx -y skills add bytedance/agentkit-samples --skill byted-vod-process-tools --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/byted-vod-process-tools
Context preview
The summary Claude sees to decide when to auto-load this skill.
点播空间名称
SKILL.md
byted-vod-process-tools.SKILL.mdname: byted-vod-process-tools
description: "Volcengine VOD audio and video processing tools skill. Use when users need VOD-based media processing or editing: upload local/URL media, stitch videos, trim clips, flip frames, change playback speed, create image-to-video, compose audio/video, extract audio, mix audio, separate vocals/accompaniment, denoise audio, enhance quality, AI super-resolution, frame interpolation, ASR speech-to-text, OCR text extraction, subtitle removal, subtitle embedding, scene slicing, portrait/green-screen matting, highlight extraction, comic style transfer, video translation, drama recap narration, drama script restoration, media info lookup, or playback URL retrieval. The skill submits async VOD jobs, polls task status, and returns generated output links. Not for pure text generation, real-time streaming, or source-free generative video creation."
version: 1.0.5
license: Apache-2.0
metadata:
display_name: 火山引擎 VOD 音视频处理工具集
version: 1.0.5
permissions:
- network
- file_read
- file_write
- temp_storage
env:
- name: ARK_SKILL_API_BASE
description: SkillHub 网关 Origin
required: false
secret: false
default: ''
- name: ARK_SKILL_API_KEY
description: SkillHub 网关 Bearer Token
required: false
secret: true
default: ''
- name: VOLCENGINE_ACCESS_KEY
description: 火山引擎 AccessKey
required: false
secret: true
default: ''
- name: VOLCENGINE_SECRET_KEY
description: 火山引擎 SecretKey
required: false
secret: true
default: ''
- name: VOD_SPACE_NAME
description: 点播空间名称
required: true
secret: false
default: ''Volcengine VOD Tools
---
前置条件
- **Python**:确认 `python --version` ≥ 3.6
- **环境变量**(必需,也可通过工作目录下的 `.env` 文件配置,脚本会自动加载):
- `VOLCENGINE_ACCESS_KEY` — 火山引擎 Access Key
- `VOLCENGINE_SECRET_KEY` — 火山引擎 Secret Key
- `VOD_SPACE_NAME` — VOD 空间名称
- **依赖**:脚本依赖 `python-dotenv`
---
参数传入方式
所有脚本支持两种 JSON 参数传入方式:
1. **内联 JSON**(适合简单参数):`python script.py '{"key":"value"}'` 2. **文件引用**(推荐,避免 shell 转义问题):`python script.py @params.json`
`@` 前缀表示从文件读取 JSON 内容,文件路径相对于当前工作目录。
---
结果交付规则
- 提交异步任务成功后会返回异步任务id,字段为 `VCCreativeId` 或 `TaskId`,在给用户交付最终产物时,**必须**包含异步任务id
- 在展示最终产物链接时,**禁止**随意修改链接内容
- **优先**将产物链接提供给用户
---
工作流程
1) 识别输入视频类型(必要时先上传拿 `vid://...`)
后续所有处理脚本**优先使用 VOD 侧资源引用**:
- Vid:`vid://vxxxx`(或部分脚本接受裸 `vxxxx` 并自动补 `vid://`)
- DirectUrl / FileName:`directurl://<vod_file_name>`(媒体类任务用 `DirectUrl` 时会要求 `FileName + SpaceName`)
当用户提供的是以下输入之一,需要先执行上传逻辑,拿到 `Vid` 后再继续:
- 本地文件路径:如 `/path/to/a.mp4`
- `http/https` 链接:如 `https://example.com/a.mp4`(会走 URL 拉取上传,并轮询上传结果)
统一用 `scripts/upload_media.py`:
python <SKILL_DIR>/scripts/upload_media.py "<local_file_path_or_http_url>" [space_name]
脚本输出中 `Source` 字段即 `vid://...`,可直接作为后续处理输入。
> **安全限制**:本地文件上传仅允许 workspace/、userdata/ 和 /tmp 目录下的文件。
2) 识别用户意图 → 选择对应处理脚本
根据用户需求,按以下决策树选择脚本:
| 用户意图 | 脚本 | |---|---| | 多个视频/音频合成一个(顺序拼接) | `stitching` | | 截取视频/音频的某个时间片段 | `clipping` | | 加速/慢放/变速 | `speedup` | | 镜像/上下翻转/左右翻转 | `flip` | | 多张图片串联生成视频 | `image_to_video` | | 替换/叠加视频的背景音乐 | `compile` | | 只要视频里的音频轨 | `extract_audio` | | 多条音频同时叠加播放(混音) | `mix_audios` | | 分离人声和伴奏/背景音 | `voice_separation` | | 去除环境噪音/电流杂音/风噪 | `noise_reduction` | | 模糊/低画质视频修复(压缩伪影/噪点/划痕) | `quality_enhance` | | 低分辨率视频提升(如 720P→1080P) | `super_resolution` | | 低帧率视频插帧提升流畅度(如 30fps→60fps) | `interlacing` | | 语音识别/ASR/提取视频中的文字对白 | `asr_speech_to_text` | | OCR 文字提取/识别视频中的屏幕文字 | `ocr_text_extract` | | 擦除视频硬字幕 | `subtitle_removal` | | 给视频添加/嵌入字幕(烧录字幕) | `add_subtitle` | | 视频场景分割/智能切片 | `intelligent_slicing` | | 人像抠图/人像分割 | `portrait_matting` | | 绿幕抠像/绿屏抠像 | `green_screen` | | AI 漫剧转绘(漫画风/3D卡通风格) | `comic_style` | | 短剧高光剪辑/精彩片段提取 | `highlight` | | AI 视频翻译(字幕/语音/面容翻译) | `video_translation` | | 查询翻译项目状态/重启翻译轮询 | `poll_translation` | | 查询翻译项目列表 | `list_translation` | | AI 解说视频生成(短剧解说/二创) | `drama_recap` | | AI 剧本还原(视频转结构化剧本) | `drama_script` | | 查询媒资信息(Vid 详情+播放地址) | `get_media_info` |
3) 构造参数并执行
视频编辑类
| 脚本 | 用途 | 详细参数 | |------|------|---------| | `stitching.py '<json>'` | 视频/音频拼接 | [references/01-stitching.md](references/01-stitching.md) | | `clipping.py '<json>'` | 视频/音频裁剪 | [references/02-clipping.md](references/02-clipping.md) | | `flip.py '<json>'` | 视频翻转 | [references/03-flip.md](references/03-flip.md) | | `speedup.py video '<json>'` | 视频变速 | [references/04-speedup.md](references/04-speedup.md) | | `speedup.py audio '<json>'` | 音频变速 | [references/04-speedup.md](references/04-speedup.md) | | `image_to_video.py '<json>'` | 图片转视频 | [references/05-image-to-video.md](references/05-image-to-video.md) | | `compile.py '<json>'` | 音视频合成 | [references/06-compile.md](references/06-compile.md) | | `extract_audio.py '<json>'` | 提取音轨 | [references/07-extract-audio.md](references/07-extract-audio.md) | | `mix_audios.py '<json>'` | 混音 | [references/08-mix-audios.md](references/08-mix-audios.md) |
媒体处理类
| 脚本 | 用途 | 详细参数 | |------|------|---------| | `voice_separation.py '<json>'` | 人声分离 | [references/10-voice-separation.md](references/10-voice-separation.md) | | `noise_reduction.py '<json>'` | 音频降噪 | [references/11-noise-reduction.md](references/11-noise-reduction.md) | | `quality_enhance.py '<json>'` | 综合画质修复 | [references/12-quality-enhance.md](references/12-quality-enhance.md) | | `super_resolution.py '<json>'` | AI 超分辨率 | [references/13-super-resolution.md](references/13-super-resolution.md) | | `interlacing.py '<json>'` | 智能补帧 | [references/14-interlacing.md](references/14-interlacing.md) |
AI 内容分析类
| 脚本 | 用途 | 详细参数 | |------|------|---------| | `asr_speech_to_text.py '<json>'` | 语音识别 ASR | [references/15-asr-speech-to-text.md](references/15-asr-speech-to-text.md) | | `ocr_text_extract.py '<json>'` | OCR 文字提取 | [references/16-ocr-text-extract.md](references/16-ocr-text-extract.md) | | `subtitle_removal.py '<json>'` | 硬字幕擦除 | [references/17-subtitle-removal.md](references
Read more
name: byted-vod-process-tools
description: "Volcengine VOD audio and video processing tools skill. Use when users need VOD-based media processing or editing: upload local/URL media, stitch videos, trim clips, flip frames, change playback speed, create image-to-video, compose audio/video, extract audio, mix audio, separate vocals/accompaniment, denoise audio, enhance quality, AI super-resolution, frame interpolation, ASR speech-to-text, OCR text extraction, subtitle removal, subtitle embedding, scene slicing, portrait/green-screen matting, highlight extraction, comic style transfer, video translation, drama recap narration, drama script restoration, media info lookup, or playback URL retrieval. The skill submits async VOD jobs, polls task status, and returns generated output links. Not for pure text generation, real-time streaming, or source-free generative video creation."
version: 1.0.5
license: Apache-2.0
metadata:
display_name: 火山引擎 VOD 音视频处理工具集
version: 1.0.5
permissions:
- network
- file_read
- file_write
- temp_storage
env:
- name: ARK_SKILL_API_BASE
description: SkillHub 网关 Origin
required: false
secret: false
default: ''
- name: ARK_SKILL_API_KEY
description: SkillHub 网关 Bearer Token
required: false
secret: true
default: ''
- name: VOLCENGINE_ACCESS_KEY
description: 火山引擎 AccessKey
required: false
secret: true
default: ''
- name: VOLCENGINE_SECRET_KEY
description: 火山引擎 SecretKey
required: false
secret: true
default: ''
- name: VOD_SPACE_NAME
description: 点播空间名称
required: true
secret: false
default: ''Volcengine VOD Tools
---
前置条件
- **Python**:确认 `python --version` ≥ 3.6
- **环境变量**(必需,也可通过工作目录下的 `.env` 文件配置,脚本会自动加载):
- `VOLCENGINE_ACCESS_KEY` — 火山引擎 Access Key
- `VOLCENGINE_SECRET_KEY` — 火山引擎 Secret Key
- `VOD_SPACE_NAME` — VOD 空间名称
- **依赖**:脚本依赖 `python-dotenv`
---
参数传入方式
所有脚本支持两种 JSON 参数传入方式:
1. **内联 JSON**(适合简单参数):`python script.py '{"key":"value"}'` 2. **文件引用**(推荐,避免 shell 转义问题):`python script.py @params.json`
`@` 前缀表示从文件读取 JSON 内容,文件路径相对于当前工作目录。
---
结果交付规则
- 提交异步任务成功后会返回异步任务id,字段为 `VCCreativeId` 或 `TaskId`,在给用户交付最终产物时,**必须**包含异步任务id
- 在展示最终产物链接时,**禁止**随意修改链接内容
- **优先**将产物链接提供给用户
---
工作流程
1) 识别输入视频类型(必要时先上传拿 `vid://...`)
后续所有处理脚本**优先使用 VOD 侧资源引用**:
- Vid:`vid://vxxxx`(或部分脚本接受裸 `vxxxx` 并自动补 `vid://`)
- DirectUrl / FileName:`directurl://<vod_file_name>`(媒体类任务用 `DirectUrl` 时会要求 `FileName + SpaceName`)
当用户提供的是以下输入之一,需要先执行上传逻辑,拿到 `Vid` 后再继续:
- 本地文件路径:如 `/path/to/a.mp4`
- `http/https` 链接:如 `https://example.com/a.mp4`(会走 URL 拉取上传,并轮询上传结果)
统一用 `scripts/upload_media.py`:
python <SKILL_DIR>/scripts/upload_media.py "<local_file_path_or_http_url>" [space_name]
脚本输出中 `Source` 字段即 `vid://...`,可直接作为后续处理输入。
> **安全限制**:本地文件上传仅允许 workspace/、userdata/ 和 /tmp 目录下的文件。
2) 识别用户意图 → 选择对应处理脚本
根据用户需求,按以下决策树选择脚本:
| 用户意图 | 脚本 | |---|---| | 多个视频/音频合成一个(顺序拼接) | `stitching` | | 截取视频/音频的某个时间片段 | `clipping` | | 加速/慢放/变速 | `speedup` | | 镜像/上下翻转/左右翻转 | `flip` | | 多张图片串联生成视频 | `image_to_video` | | 替换/叠加视频的背景音乐 | `compile` | | 只要视频里的音频轨 | `extract_audio` | | 多条音频同时叠加播放(混音) | `mix_audios` | | 分离人声和伴奏/背景音 | `voice_separation` | | 去除环境噪音/电流杂音/风噪 | `noise_reduction` | | 模糊/低画质视频修复(压缩伪影/噪点/划痕) | `quality_enhance` | | 低分辨率视频提升(如 720P→1080P) | `super_resolution` | | 低帧率视频插帧提升流畅度(如 30fps→60fps) | `interlacing` | | 语音识别/ASR/提取视频中的文字对白 | `asr_speech_to_text` | | OCR 文字提取/识别视频中的屏幕文字 | `ocr_text_extract` | | 擦除视频硬字幕 | `subtitle_removal` | | 给视频添加/嵌入字幕(烧录字幕) | `add_subtitle` | | 视频场景分割/智能切片 | `intelligent_slicing` | | 人像抠图/人像分割 | `portrait_matting` | | 绿幕抠像/绿屏抠像 | `green_screen` | | AI 漫剧转绘(漫画风/3D卡通风格) | `comic_style` | | 短剧高光剪辑/精彩片段提取 | `highlight` | | AI 视频翻译(字幕/语音/面容翻译) | `video_translation` | | 查询翻译项目状态/重启翻译轮询 | `poll_translation` | | 查询翻译项目列表 | `list_translation` | | AI 解说视频生成(短剧解说/二创) | `drama_recap` | | AI 剧本还原(视频转结构化剧本) | `drama_script` | | 查询媒资信息(Vid 详情+播放地址) | `get_media_info` |
3) 构造参数并执行
视频编辑类
| 脚本 | 用途 | 详细参数 | |------|------|---------| | `stitching.py '<json>'` | 视频/音频拼接 | [references/01-stitching.md](references/01-stitching.md) | | `clipping.py '<json>'` | 视频/音频裁剪 | [references/02-clipping.md](references/02-clipping.md) | | `flip.py '<json>'` | 视频翻转 | [references/03-flip.md](references/03-flip.md) | | `speedup.py video '<json>'` | 视频变速 | [references/04-speedup.md](references/04-speedup.md) | | `speedup.py audio '<json>'` | 音频变速 | [references/04-speedup.md](references/04-speedup.md) | | `image_to_video.py '<json>'` | 图片转视频 | [references/05-image-to-video.md](references/05-image-to-video.md) | | `compile.py '<json>'` | 音视频合成 | [references/06-compile.md](references/06-compile.md) | | `extract_audio.py '<json>'` | 提取音轨 | [references/07-extract-audio.md](references/07-extract-audio.md) | | `mix_audios.py '<json>'` | 混音 | [references/08-mix-audios.md](references/08-mix-audios.md) |
媒体处理类
| 脚本 | 用途 | 详细参数 | |------|------|---------| | `voice_separation.py '<json>'` | 人声分离 | [references/10-voice-separation.md](references/10-voice-separation.md) | | `noise_reduction.py '<json>'` | 音频降噪 | [references/11-noise-reduction.md](references/11-noise-reduction.md) | | `quality_enhance.py '<json>'` | 综合画质修复 | [references/12-quality-enhance.md](references/12-quality-enhance.md) | | `super_resolution.py '<json>'` | AI 超分辨率 | [references/13-super-resolution.md](references/13-super-resolution.md) | | `interlacing.py '<json>'` | 智能补帧 | [references/14-interlacing.md](references/14-interlacing.md) |
AI 内容分析类
| 脚本 | 用途 | 详细参数 | |------|------|---------| | `asr_speech_to_text.py '<json>'` | 语音识别 ASR | [references/15-asr-speech-to-text.md](references/15-asr-speech-to-text.md) | | `ocr_text_extract.py '<json>'` | OCR 文字提取 | [references/16-ocr-text-extract.md](references/16-ocr-text-extract.md) | | `subtitle_removal.py '<json>'` | 硬字幕擦除 | [references/17-subtitle-removal.md](references
欢迎来到 AgentKit 代码工坊(Samples)仓库! AgentKit 是火山引擎推出的企业级 AI Agent 开发平台,为开发者提供完整的 Agent 构建、部署和运维解决方案。平台通过标准化的开发工具链和云原生基础设施,显著降低复杂智能体应用的开发部署门槛。 本代码库包含了一系列示例和教程,帮助您理解、实现和集成 AgentKit 的各项功能到您的应用中。
Other skills on agentkit-samples.
- /code-optimization
Optimize code performance through iterative improvements (max 2 rounds). Benchmark execution time and memory usage, compare against baseline implementations, and generate detailed optimization reports. Supports C++, Python, Java, Rust, and other languages.
Open skill - /image-video-gen
根据文字描述生成视频,一个生成图片和视频的工作流技能。依赖 skills: byted-web-search, image-generate, video-generate。注意:此 workflow 没有执行脚本,只是一个描述性的文档。
Open skill - /skills-management
Manage AgentKit skills, SkillHub/skillhub, skill centers, and skill spaces. Use this skill whenever the user has a management intent for AgentKit skills, skill中心, skill 空间, skill space, or skill hub, including listing, inspecting, downloading, fetching, uploading, publishing,
Open skill - /tos-file-access
Upload files or directories to TOS-compatible object storage for Volcano Engine or BytePlus and download files from URLs. Use this skill when (1) Upload Agent-generated files or directories for sharing, (2) Download files from URLs before Agent processing.
Open skill - /veadk-go-skills
根据用户的功能需求,完成与 VeADK-Go 相关的功能; 包括:直接根据需求生成 Agent;将Enio Agent转换为VeADK-Go Agent。
Open skill - /veadk-skills
根据用户的功能需求,完成与 VeADK 相关的功能。
Open skill

