Skip to content
Agentmart
Submit a tool

byted-kickart-subtitle-extractor

视频字幕提取SKILL:从视频文件自动提取、识别视频中已有的字幕并导出,支持导出为标准SRT格式字幕文件。适用于视频提取字幕、提取视频内已有的字幕、视频字幕识别、字幕导出、视频转字幕等场景。触发时机:当用户提及或表达等价意图(帮我从视频中提取字幕、提取视频里的字幕、从视频里抠字幕、视频字幕提取、导出视频自带字幕、视频…

Skill by bytedanceOfficial

IndexedApache-2.0★ 473
Write a review

Chalk Labs

Need help deploying byted-kickart-subtitle-extractor?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/bytedance-byted-kickart-subtitle-extractor

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

视频字幕提取SKILL:从视频文件自动提取、识别视频中已有的字幕并导出,支持导出为标准SRT格式字幕文件。适用于视频提取字幕、提取视频内已有的字幕、视频字幕识别、字幕导出、视频转字幕等场景。触发时机:当用户提及或表达等价意图(帮我从视频中提取字幕、提取视频里的字幕、从视频里抠字幕、视频字幕提取、导出视频自带字幕、视频字幕识别、字幕导出、视频转字幕)时,调用此SKILL执行字幕提取任务。

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/byted-kickart-subtitle-extractor

What's inside

Skill name
byted-kickart-subtitle-extractor
Description
视频字幕提取SKILL:从视频文件自动提取、识别视频中已有的字幕并导出,支持导出为标准SRT格式字幕文件。适用于视频提取字幕、提取视频内已有的字幕、视频字幕识别、字幕导出、视频转字幕等场景。触发时机:当用户提及或表达等价意图(帮我从视频中提取字幕、提取视频里的字幕、从视频里抠字幕、视频字幕提取、导出视频自带字幕、视频字幕识别、字幕导出、视频转字幕)时,调用此SKILL执行字幕提取任务。
License
Apache-2.0
Instructions
243 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts
  • Instructions call the network

Agent Skills spec issues

  • body: contains an absolute path from the author's machine

Files (19)

  • LICENSE
  • SKILL.md
  • __init__.py · scripts/core/
  • client.py · scripts/core/api/iccp/
  • service.py · scripts/core/api/iccp/
  • chunks.py · scripts/core/api/meida/
  • media.py · scripts/core/api/meida/
  • __init__.py · scripts/core/auth/
  • strategy.py · scripts/core/auth/
  • exception.py · scripts/core/utils/
  • extractor.py · scripts/core/utils/
  • hash.py · scripts/core/utils/
  • matriel.py · scripts/core/utils/
  • validator.py · scripts/core/utils/
  • extractor.py · scripts/
  • plan.py · scripts/
  • requirements.txt · scripts/
  • upgrade.py · scripts/
  • upload.py · scripts/

SKILL.md (first lines)

# 视频字幕提取SKILL

## 📋 工具说明

### 核心功能
1. 从指定的视频文件提取字幕
2. 支持生成标准SRT规范的字幕文件

### 可用命令
| 命令 | 功能 | 说明 |
|------|------|------|
| `python3.12 scripts/plan.py` | 套餐查询 | 查询用户当前的 Ark Claw 套餐 |
| `python3.12 scripts/upload.py --file <视频路径>` | 视频上传 | 上传本地视频文件获取媒资ID |
| `python3.12 scripts/extractor.py --media-id <媒资ID> --output <输出文件>` | 视频字幕提取 | 从指定视频提取字幕 |

---

## 🚨 强制前置校验流程(必须按顺序执行,任意不通过直接终止流程)
所有用户请求必须先完成以下3步校验,不得跳过:

### 1. 火山鉴权校验
- 执行环境变量检查命令:
  ```bash
  echo "ACCESS_KEY_ID: $ACCESS_KEY_ID" && echo "SECRET_ACCESS_KEY: $SECRET_ACCESS_KEY"
  ```
- 判断鉴权结果:
  - **鉴权通过**:`ACCESS_KEY_ID` 和 `SECRET_ACCESS_KEY` 均为非空值 → 鉴权通过
  - **鉴权不通过**:执行以下引导方案

#### ❌ 鉴权未配置时的引导方案
1. 引导用户直接在聊天中发送ACCESS_KEY_ID/SECRET_ACCESS_KEY内容:
   > 请你提供火山账号AK&SK,用于检查火山创作Agent是否已开通套餐和有可用的创点
2. 收到用户发送的ACCESS_KEY_ID/SECRET_ACCESS_KEY后,执行配置命令:
   ```bash
   export ACCESS_KEY_ID=用户提供的ACCESS_KEY_ID值
   export SECRET_ACCESS_KEY=用户提供的SECRET_ACCESS_KEY值
   ```
3. 配置完成后告知用户:
   > 已完成ACCESS_KEY_ID/SECRET_ACCESS_KEY临时配置,当前配置仅在本次会话生效,不会持久化存储,请放心使用
4. 后续所有相关脚本执行时,均会自动通过`export`指定这两个环境变量,确保鉴权正常,无需用户重复配置

### 2. 套餐有效性校验
- **步骤1:Python版本校验**
  ```bash
  python3.12 --version || (echo "❌ Python 3.12+ 未安装,请先安装Python 3.12" && exit 1)
  ```
- **步骤2:依赖包安装校验**
  ```bash
  python3.12 -m pip install -r ./scripts/requirements.txt
  ```
- **步骤3:执行套餐查询命令**
  ```bash
  python3.12 -m scripts/plan.py
  ```
- **步骤4:结果处理逻辑**
  - ✅ **套餐有效**:返回结果中的 `message` 字段为有效截止时间(北京时间),校验通过
  - ❌ **套餐已过期**:`message` 小于等于当前时间,引导用户开通套餐,终止流程
  - ❌ **接口调用错误**:参考「错误处理规范」匹配错误码,向用户明确告知错误原因和解决方案,并且终止流程

### 3. 技能版本校验
- **步骤1:执行版本检查命令**
  ```bash
  python3.12 -m scripts/upgrade.py
  ```
- **步骤2:解析返回结果**
  返回格式示例:
  ```json
  {"code":"0","message":"success","data":"{\"install_command\":\"\",\"latest_version\":\"1.0.0\",\"latest_version_number\":100000000,\"update_message\":\"\"}"}
  ```
  - `latest_version`:最新版本号(如 "1.0.0")
  - `install_command`:新版本安装指令
- **步骤3:版本对比逻辑**
  - ✅ **当前版本 >= 最新版本**:版本校验通过,继续后续流程
  - ⚠️ **当前版本 < 最新版本**:执行以下更新询问流程
    1. 询问用户是否更新到最新版本:
       > 检测到技能有新版本 {latest_version},是否更新?(是/否)
    2. 用户确认更新(是):执行 `install_command` 安装新版本
    3. 用户不更新(否):跳过更新,继续后续流程

---

## 🛠️ 视频字幕提取执行流程

### 完整流程概览
```
用户请求 → 强制前置校验 → 用户提供视频 → 视频字幕提取 → 结果返回
```

### 前置准备
1. 确保输出目录存在:`mkdir -p /tmp/openclaw/subtitle-extractor/output`
2. 生成唯一输出文件名:`subtitle_<timestamp>_<random>.json`

### 执行步骤
1. **步骤0:强制前置校验**(必须按顺序执行,任意不通过直接终止流程)
   - 执行「🚨 强制前置校验流程」中的所有校验步骤
   - ✅ 火山鉴权校验通过
   - ✅ 套餐有效性校验通过
   - ✅ 技能版本校验通过
   - 只有全部校验通过后,才能进入下一步

2. **步骤1:视频上传引导**
   - 询问用户:「请先提供要提取字幕的视频:可以发我视频tos链接,或上传 MP4/MOV 文件(建议≤10分钟、≤200MB、≥480p,预期处理时长5分钟以内)」
   - 支持两种上传方式:
     - **本地文件**:直接提供本地视频文件的绝对路径(如 `/Users/user/video.mp4`)
     - **公网URL**:提供可直接访问的视频链接(如 `https://example.com/video.mp4`)

3. **步骤2:视频预处理**
   - 若用户提供的是公网URL,先下载到本地:
     ```bash
     mkdir -p /tmp/openclaw/byted-kickart-video-analyzer/input
     curl -L -o /tmp/openclaw/byted-kickart-video-analyzer/input/downloaded_video.mp4 "<视频URL>"
     ```
   - 检查文件是否存在:`ls -la "<视频路径>"`
   - 检查文件类型是否为有效视频(仅支持MP4/MOV格式):
     ```bash
     file /tmp/openclaw/byted-kickart-video-analyzer/input/downloaded_video.mp4 | grep -qE "ISO Media|MPEG v4|QuickTime" && echo "valid" || echo "invalid"
     ```
   - 若文件不存在或类型无效,**终止流程并提示用户**:
     > 文件不可用,请检查路径是否正确,或确认文件为有效视频格式(仅支持 MP4/MOV)

From bytedance/agentkit-samples, Apache-2.0.

More from bytedance/agentkit-samples

Signals

Stars
473
Forks
101
Open issues
14
Last commit (this folder)
Aug 3, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from bytedance

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get byted-kickart-subtitle-extractor running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying byted-kickart-subtitle-extractor?

CallGet help
Cite this page

byted-kickart-subtitle-extractor skill. Agent Mart. https://agentmart.dev/skills/bytedance-byted-kickart-subtitle-extractor (last updated 2026-10-24)