Volcengine Video Understanding logo

Volcengine Video Understanding

Community
freestylefly
volcengine-video-understanding

火山视频理解 - 使用火山方舟视频理解 API 分析视频内容。通过 Files API 上传视频(推荐),支持大文件(最大512MB),可用于视频内容分析、物体识别、动作理解等。当用户需要分析视频、理解视频内容、提取视频信息时激活此技能。

Overview

Publisherfreestylefly
Repositorycanghe-skills
Skill namevolcengine-video-understanding
Stars
466
Forks
101
Bundled files
1
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.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by freestylefly on GitHub. Read the source before you install it.

Installation

Install the Volcengine Video Understanding 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/freestylefly/canghe-skills/tree/master/skills/canghe-volcengine-video-understanding
  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/freestylefly/canghe-skills.git /tmp/canghe-skills
mkdir -p .claude/skills
cp -r /tmp/canghe-skills/skills/canghe-volcengine-video-understanding .claude/skills/volcengine-video-understanding
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Volcengine Video Understanding 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 Volcengine Video Understanding 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 Volcengine Video Understanding 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.

火山视频理解

使用字节跳动火山方舟视频理解 API(doubao-seed-2-0-pro-260215 等模型)对视频进行深度理解和分析。

推荐方式:Files API 上传 + Responses API 分析

  • 支持最大 512MB 视频文件
  • 自动视频预处理(FPS采样)
  • 文件可重复使用(存储7天)

功能

  • 视频上传:通过 Files API 上传本地视频(推荐,最大512MB)
  • 内容理解:分析视频场景、人物、动作、情感
  • 视频问答:基于视频内容回答用户问题
  • 视频描述:自动生成视频描述和摘要

前置要求

需要设置 ARK_API_KEY 环境变量。

配置方式(推荐)

  1. 复制配置模板:
bash
cp .canghe-skills/.env.example .canghe-skills/.env
  1. 编辑 .canghe-skills/.env 文件,填写你的 API Key:
ARK_API_KEY=your-actual-api-key-here

或使用环境变量

bash
export ARK_API_KEY="your-api-key"

加载优先级

  1. 系统环境变量 (process.env)
  2. 当前目录 .canghe-skills/.env
  3. 用户主目录 ~/.canghe-skills/.env

使用方法

1. 基础视频分析(Files API 方式 - 推荐)

bash
cd ~/.openclaw/workspace/skills/volcengine-video-understanding
python3 scripts/video_understand.py /path/to/video.mp4 "描述这个视频的内容"

2. 视频问答

bash
python3 scripts/video_understand.py /path/to/video.mp4 "视频中出现了哪些人物?"

3. 情感分析

bash
python3 scripts/video_understand.py /path/to/video.mp4 "分析视频中人物的情感变化"

4. 指定模型和帧率

bash
python3 scripts/video_understand.py /path/to/video.mp4 "总结视频要点" \
  --model doubao-seed-2-0-pro-260215 \
  --fps 2

5. 保存结果到文件

bash
python3 scripts/video_understand.py /path/to/video.mp4 "描述视频" --output result.json

参数说明

参数默认值说明
video_path必填视频文件路径
instruction必填分析指令/问题
--modeldoubao-seed-2-0-pro-260215模型 ID
--fps1视频采样帧率(预处理)
--output-结果输出文件路径

支持的模型

  • doubao-seed-2-0-pro-260215 (默认)
  • doubao-seed-2-0-lite-250728
  • doubao-seed-1-6-251015
  • 其他 Seed 系列视频理解模型

分析示例

示例 1:视频内容描述

bash
python3 scripts/video_understand.py ~/Desktop/video.mp4 "详细描述这个视频的内容,包括场景、人物和动作"

示例 2:视频摘要

bash
python3 scripts/video_understand.py ~/Desktop/video.mp4 "用3句话总结这个视频的要点"

示例 3:动作识别

bash
python3 scripts/video_understand.py ~/Desktop/video.mp4 "视频中的人物在做什么动作?按时间顺序描述"

示例 4:场景分析

bash
python3 scripts/video_understand.py ~/Desktop/video.mp4 "分析视频中的场景变化和环境特征"

技术细节

调用流程

  1. 上传视频:通过 Files API 上传本地视频文件,指定 FPS 预处理配置
  2. 等待处理:等待视频预处理完成(状态变为 processed)
  3. 创建任务:调用 Responses API 进行视频理解
  4. 获取结果:返回分析结果

API 格式

Files API 上传:

bash
curl https://ark.cn-beijing.volces.com/api/v3/files \
  -H "Authorization: Bearer $ARK_API_KEY" \
  -F 'purpose=user_data' \
  -F 'file=@video.mp4' \
  -F 'preprocess_configs[video][fps]=1'

Responses API 分析:

json
{
  "model": "doubao-seed-2-0-pro-260215",
  "input": [
    {
      "role": "user",
      "content": [
        {
          "type": "input_video",
          "file_id": "file-xxxx"
        },
        {
          "type": "input_text",
          "text": "用户指令"
        }
      ]
    }
  ]
}

FPS 设置建议

FPS适用场景
0.3-0.5慢节奏视频、静态场景、节省token
1一般视频分析(默认)
2-3快速动作、细节分析

限制

  • 视频格式:MP4(推荐)、MOV、AVI
  • 文件大小:最大 512MB(Files API 方式)
  • 存储时间:上传的文件默认存储 7 天
  • 处理时间:根据视频长度和复杂度,通常 10-60 秒

Python API 使用

python
from scripts.video_understand import analyze_video

result = analyze_video(
    file_path="/path/to/video.mp4",
    instruction="描述视频内容",
    model="doubao-seed-2-0-pro-260215",
    fps=1
)

# 提取回答
text = ""
for item in result.get("output", []):
    if item.get("type") == "message":
        for content in item.get("content", []):
            if content.get("type") == "output_text":
                text = content.get("text", "")
                break

print(text)

错误处理

常见错误及解决方案:

错误原因解决方案
API Key 错误未设置或错误检查 ARK_API_KEY 环境变量
文件不存在路径错误检查文件路径
上传失败文件过大或格式不支持检查文件大小(<512MB)和格式
处理超时视频过长或复杂缩短视频或降低 FPS

参考文档

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Volcengine Video Understanding AI skill do?

火山视频理解 - 使用火山方舟视频理解 API 分析视频内容。通过 Files API 上传视频(推荐),支持大文件(最大512MB),可用于视频内容分析、物体识别、动作理解等。当用户需要分析视频、理解视频内容、提取视频信息时激活此技能。

Why use Volcengine Video Understanding on TypingMind?

Because you install it once and use it with any model. Volcengine Video Understanding 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 Volcengine Video Understanding in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/freestylefly/canghe-skills/tree/master/skills/canghe-volcengine-video-understanding. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Volcengine Video Understanding?

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 Volcengine Video Understanding?

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

Is the Volcengine Video Understanding AI skill free?

It is published on GitHub by freestylefly. 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 👇