/byted-byteplus-vod-frame-extraction
VOD space name
$ npx -y skills add bytedance/agentkit-samples --skill byted-byteplus-vod-frame-extraction --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-byteplus-vod-frame-extraction
Context preview
The summary Claude sees to decide when to auto-load this skill.
VOD space name
SKILL.md
byted-byteplus-vod-frame-extraction.SKILL.mdname: byted-byteplus-vod-frame-extraction
description: "Upload video/audio media to BytePlus VOD (Video on Demand) storage, returning the Vid and playback references; supports local file upload (ApplyUploadInfo + TOS + CommitUploadInfo) and URL pull upload (UploadMediaByUrl); also submits frame extraction jobs on ingested media (StartExecution / Operation.Task.Snapshot), including specified time, fixed interval, specified frame, scene-change, sprite image, and output index modes. Trigger keywords: VOD frame extraction, frame extraction, extract frames, video snapshot, thumbnail, screenshot from video, StartExecution Snapshot."
version: 1.0.0
license: Apache-2.0
env:
- name: BYTEPLUS_ACCESSKEY
description: BytePlus Access Key
required: true
secret: true
default: ''
- name: BYTEPLUS_SECRETKEY
description: BytePlus Secret Key
required: true
secret: true
default: ''
- name: VOD_SPACE_NAME
description: VOD space name
required: true
secret: false
default: ''VOD frame extraction
Uploads video/audio to a BytePlus VOD space (from a **local file** or a **public URL**) and returns a `vid://...` reference. For media already in VOD, submits **Snapshot** tasks (`StartExecution` -> `Operation.Task.Type: Snapshot`) for frame extraction.
---
Product scope
| Aspect | Behaviour | |--------|-----------| | **Input** | `Vid` or `DirectUrl` (JSON field `video`) | | **Extraction strategy** | Default: specified time at 0 ms. Supported: specified time, fixed interval, specified frames, scene-change detection. | | **Target image size** | Default `resolution: 720p` because the API Snapshot Target requires a resolution. Optional `scale_long` / `scale_short`. | | **Sprite image** | Optional `sprite` / `sprite_config`. | | **Output index mode** | Optional `output_mode`: `Files` or `Index`. | | **Advanced API fields** | Use `snapshot` for complete passthrough or `snapshot_options` to deep-merge extra fields into generated `Snapshot`. |
If the user does not specify a strategy, use **specified time at 0 ms**. If they ask for multiple thumbnails but do not provide times, ask for the timestamps or use fixed interval only when they explicitly request evenly-spaced extraction.
---
Prerequisites
- **Environment variables** (required; optionally place a `.env` in the working directory — scripts load it automatically):
- `BYTEPLUS_ACCESSKEY` — BytePlus Access Key
- `BYTEPLUS_SECRETKEY` — BytePlus Secret Key
- `VOD_SPACE_NAME` — VOD space name
- **Environment template:** see `scripts/env.md`.
- **Execution:** examples use `uv run python ...` (`python scripts/...` works if deps are installed).
---
Workflow overview
Upload pipeline (local file):
[S1_APPLY] ApplyUploadInfo -> TOS upload address + SessionKey
[S2_TOS] PUT file to TOS (direct or chunked)
[S3_COMMIT] CommitUploadInfo -> Vid
Output: { Vid, Source, PlayURL, FileName, SpaceName, SourceUrl }
Upload pipeline (URL):
[S1_UPLOAD] Submit URL upload job (UploadMediaByUrl) -> JobId
[S2_POLL] Poll QueryUploadTaskInfo -> Vid
Output: { Vid, Source, PlayURL, FileName, SpaceName, SourceUrl, JobId }
Snapshot pipeline:
[S3_SNAPSHOT] Submit frame extraction task (StartExecution / Task.Type Snapshot) -> RunId
[S4_POLL] Poll GetExecution -> output snapshot files / raw Snapshot output
Output: { Status, SpaceName, ImageUrls[], Snapshot }---
Quick self-check
Before running any script:
- `.env` or env vars contain `BYTEPLUS_ACCESSKEY`, `BYTEPLUS_SECRETKEY`, and `VOD_SPACE_NAME`.
Pick the pipeline from user intent:
| User intent | Pipeline | Entry script | |-------------|----------|--------------| | Upload video to VOD | Upload | `scripts/upload.py` | | Extract frames / thumbnails | Frame extraction | `scripts/snapshot.py` |
---
S1_UPLOAD & S2_POLL: upload and obtain Vid
Run from the Skill root directory (`byted-byteplus-vod-frame-extraction/`):
uv run python scripts/upload.py "/path/to/video.mp4" [space_name]
uv run python scripts/upload.py "https://example.com/video.mp4" [space_name]
- First argument: **local file path** or public `http://` / `https://` URL.
- Second argument (optional): space name; if omitted, `VOD_SPACE_NAME` is used.
- Paths and URLs **must include a file extension**.
On success, preserve `Source` (`vid://...`) for downstream processing.
---
S3_SNAPSHOT & S4_POLL: frame extraction
Run from the Skill root directory (`byted-byteplus-vod-frame-extraction/`):
# Default: first frame at 0 ms, 720p
uv run python scripts/snapshot.py '{"type":"Vid","video":"v0310abc"}'
# Three exact timestamps in milliseconds
uv run python scripts/snapshot.py '{"type":"Vid","video":"vid://v0d225gxxx","strategy":"specified_time","times":[0,5000,10000],"resolution":"720p"}' production_space
# Every 3 seconds
uv run python scripts/snapshot.py '{"type":"Vid","video":"v0310abc","strategy":"interval","interval_ms":3000}'
# Scene-change snapshots
uv run python scripts/snapshot.py '{"type":"Vid","video":"v0310abc","strategy":"scene_change","threshold":0.1}'
uv run python scripts/snapshot.py @params.json
# Resume after timeout
uv run python scripts/poll_execution.py '<RunId>' [space_name]Parameter reference
| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | `type` | string | no | `Vid` or `DirectUrl`. Default `Vid`. | | `video` | string | yes | Vid or VOD `FileName`; `vid://` / `directurl://` prefixes are stripped automatically. | | `strategy` | string/object | no | `specified_time`, `interval`, `specified_frames`, or `scene_change`. Default `specified_time`. If object, used directly as API `Strategy`. | | `times` | integer/array | no | Millisecond offsets for `specified_time`. Default `[0]`. | | `interval_ms` | integer | for interval | Millisecond interval for fixed interval snapshots. | | `frames` | integer array | for specified frames | Frame indexes for `specified_fr
Read more
name: byted-byteplus-vod-frame-extraction
description: "Upload video/audio media to BytePlus VOD (Video on Demand) storage, returning the Vid and playback references; supports local file upload (ApplyUploadInfo + TOS + CommitUploadInfo) and URL pull upload (UploadMediaByUrl); also submits frame extraction jobs on ingested media (StartExecution / Operation.Task.Snapshot), including specified time, fixed interval, specified frame, scene-change, sprite image, and output index modes. Trigger keywords: VOD frame extraction, frame extraction, extract frames, video snapshot, thumbnail, screenshot from video, StartExecution Snapshot."
version: 1.0.0
license: Apache-2.0
env:
- name: BYTEPLUS_ACCESSKEY
description: BytePlus Access Key
required: true
secret: true
default: ''
- name: BYTEPLUS_SECRETKEY
description: BytePlus Secret Key
required: true
secret: true
default: ''
- name: VOD_SPACE_NAME
description: VOD space name
required: true
secret: false
default: ''VOD frame extraction
Uploads video/audio to a BytePlus VOD space (from a **local file** or a **public URL**) and returns a `vid://...` reference. For media already in VOD, submits **Snapshot** tasks (`StartExecution` -> `Operation.Task.Type: Snapshot`) for frame extraction.
---
Product scope
| Aspect | Behaviour | |--------|-----------| | **Input** | `Vid` or `DirectUrl` (JSON field `video`) | | **Extraction strategy** | Default: specified time at 0 ms. Supported: specified time, fixed interval, specified frames, scene-change detection. | | **Target image size** | Default `resolution: 720p` because the API Snapshot Target requires a resolution. Optional `scale_long` / `scale_short`. | | **Sprite image** | Optional `sprite` / `sprite_config`. | | **Output index mode** | Optional `output_mode`: `Files` or `Index`. | | **Advanced API fields** | Use `snapshot` for complete passthrough or `snapshot_options` to deep-merge extra fields into generated `Snapshot`. |
If the user does not specify a strategy, use **specified time at 0 ms**. If they ask for multiple thumbnails but do not provide times, ask for the timestamps or use fixed interval only when they explicitly request evenly-spaced extraction.
---
Prerequisites
- **Environment variables** (required; optionally place a `.env` in the working directory — scripts load it automatically):
- `BYTEPLUS_ACCESSKEY` — BytePlus Access Key
- `BYTEPLUS_SECRETKEY` — BytePlus Secret Key
- `VOD_SPACE_NAME` — VOD space name
- **Environment template:** see `scripts/env.md`.
- **Execution:** examples use `uv run python ...` (`python scripts/...` works if deps are installed).
---
Workflow overview
Upload pipeline (local file):
[S1_APPLY] ApplyUploadInfo -> TOS upload address + SessionKey
[S2_TOS] PUT file to TOS (direct or chunked)
[S3_COMMIT] CommitUploadInfo -> Vid
Output: { Vid, Source, PlayURL, FileName, SpaceName, SourceUrl }
Upload pipeline (URL):
[S1_UPLOAD] Submit URL upload job (UploadMediaByUrl) -> JobId
[S2_POLL] Poll QueryUploadTaskInfo -> Vid
Output: { Vid, Source, PlayURL, FileName, SpaceName, SourceUrl, JobId }
Snapshot pipeline:
[S3_SNAPSHOT] Submit frame extraction task (StartExecution / Task.Type Snapshot) -> RunId
[S4_POLL] Poll GetExecution -> output snapshot files / raw Snapshot output
Output: { Status, SpaceName, ImageUrls[], Snapshot }---
Quick self-check
Before running any script:
- `.env` or env vars contain `BYTEPLUS_ACCESSKEY`, `BYTEPLUS_SECRETKEY`, and `VOD_SPACE_NAME`.
Pick the pipeline from user intent:
| User intent | Pipeline | Entry script | |-------------|----------|--------------| | Upload video to VOD | Upload | `scripts/upload.py` | | Extract frames / thumbnails | Frame extraction | `scripts/snapshot.py` |
---
S1_UPLOAD & S2_POLL: upload and obtain Vid
Run from the Skill root directory (`byted-byteplus-vod-frame-extraction/`):
uv run python scripts/upload.py "/path/to/video.mp4" [space_name] uv run python scripts/upload.py "https://example.com/video.mp4" [space_name]
- First argument: **local file path** or public `http://` / `https://` URL.
- Second argument (optional): space name; if omitted, `VOD_SPACE_NAME` is used.
- Paths and URLs **must include a file extension**.
On success, preserve `Source` (`vid://...`) for downstream processing.
---
S3_SNAPSHOT & S4_POLL: frame extraction
Run from the Skill root directory (`byted-byteplus-vod-frame-extraction/`):
# Default: first frame at 0 ms, 720p
uv run python scripts/snapshot.py '{"type":"Vid","video":"v0310abc"}'
# Three exact timestamps in milliseconds
uv run python scripts/snapshot.py '{"type":"Vid","video":"vid://v0d225gxxx","strategy":"specified_time","times":[0,5000,10000],"resolution":"720p"}' production_space
# Every 3 seconds
uv run python scripts/snapshot.py '{"type":"Vid","video":"v0310abc","strategy":"interval","interval_ms":3000}'
# Scene-change snapshots
uv run python scripts/snapshot.py '{"type":"Vid","video":"v0310abc","strategy":"scene_change","threshold":0.1}'
uv run python scripts/snapshot.py @params.json
# Resume after timeout
uv run python scripts/poll_execution.py '<RunId>' [space_name]Parameter reference
| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | `type` | string | no | `Vid` or `DirectUrl`. Default `Vid`. | | `video` | string | yes | Vid or VOD `FileName`; `vid://` / `directurl://` prefixes are stripped automatically. | | `strategy` | string/object | no | `specified_time`, `interval`, `specified_frames`, or `scene_change`. Default `specified_time`. If object, used directly as API `Strategy`. | | `times` | integer/array | no | Millisecond offsets for `specified_time`. Default `[0]`. | | `interval_ms` | integer | for interval | Millisecond interval for fixed interval snapshots. | | `frames` | integer array | for specified frames | Frame indexes for `specified_fr
欢迎来到 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

