byted-byteplus-vod-frame-extraction
БесплатноЗапускает вложенные скриптыНе проверенUpload video/audio media to BytePlus VOD (Video on Demand) storage, returning the Vid and playback references; supports local file upload (ApplyUploadInfo +…
от bytedance★ 496 звёзд на GitHubОб этом скилле
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
.envin the working directory — scripts load it automatically):BYTEPLUS_ACCESSKEY— BytePlus Access KeyBYTEPLUS_SECRETKEY— BytePlus Secret KeyVOD_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:
.envor env vars containBYTEPLUS_ACCESSKEY,BYTEPLUS_SECRETKEY, andVOD_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_NAMEis 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_frames; 0 means first frame a |
Установить byted-byteplus-vod-frame-extraction в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл byted-byteplus-vod-frame-extraction?
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.
Как установить скилл byted-byteplus-vod-frame-extraction?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл byted-byteplus-vod-frame-extraction запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub