← 返回 Skills 市场
sdk-team

Alibabacloud Video Editor

作者 alibabacloud-skills-team · GitHub ↗ · v0.0.1 · MIT-0
cross-platform ⚠ suspicious
95
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install alibabacloud-video-editor
功能描述
Video editing tool that requires no ffmpeg installation. All video processing is executed in the cloud - no local ffmpeg installation needed. If both input a...
使用说明 (SKILL.md)

Video Editor Skill

Automated video editing tool that submits Alibaba Cloud editing tasks based on provided materials and editing requirements, without requiring ffmpeg installation, waits for task completion, and outputs the final video URL.

Core Design Philosophy

This skill adopts a separation of concerns design:

  1. references/ - LLM knowledge base containing best practice documentation for various scenarios
  2. scripts/ - Pure execution tools responsible only for submitting tasks and polling status

The LLM should refer to documents in references/ to generate Timeline JSON in Alibaba Cloud ICE format, then use scripts to submit tasks.

Prerequisites

Pre-check: Install Python Dependencies

pip install -r requirements.txt

Pre-check: Alibaba Cloud Credentials Required

Scripts automatically obtain credentials via the Alibaba Cloud default credential chain, supporting the following methods (in priority order):

  1. Environment variable credentials
  2. Configuration file: ~/.alibabacloud/credentials.ini
  3. ECS RAM Role (when running on ECS)

It is recommended to use the aliyun configure command to set up credentials:

aliyun configure

Or refer to the [Alibaba Cloud Credential Configuration Documentation](https://help.aliyun.com/document_detail/China Site/2China Site/Chinese2Chinese10China Site/Chinese0China Site/Chinese6China Site/Chinese2China Site.html) to configure the default credential chain.

OSS Bucket Configuration

OSS upload functionality requires Bucket information to be configured via environment variables:

export OSS_BUCKET=your_bucket_name
export OSS_ENDPOINT=oss-cn-shanghai.aliyuncs.com

If OSS_BUCKET is not configured, list the buckets under the customer's current account and let the customer choose one as the output bucket for the final video.

OSS operations reuse the Alibaba Cloud default credential chain; no separate OSS credential configuration is needed.

User-Agent Configuration

All Alibaba Cloud service calls must set User-Agent to AlibabaCloud-Agent-Skills. The script scripts/video_editor.py has already automatically configured this User-Agent.

Workflow

Step 1: Understand User Requirements

Analyze the type of video the user wants to create:

  • Slideshow video (image carousel)
  • Multi-track audio mixing (voiceover + music)
  • Multi-clip stitching
  • Add subtitles/titles
  • Effects and transitions
  • Picture-in-picture/split-screen effects

Step 2: Reference Best Practices

Consult the corresponding documents in references/:

Document Applicable Scenario
01-timeline-basics.md Timeline basic structure explanation
02-multi-track-audio.md Multi-track audio mixing
03-subtitles-and-titles.md Subtitle and title effects
04-effects-and-transitions.md Visual effects and transitions
05-slideshow-template.md Slideshow video templates
06-multi-clip-editing.md Multi-clip video editing

Step 3: Prepare Material URLs

  • If it is a local file, you need to call the oss-upload skill to upload it and obtain the OSS URL, which can be directly spliced into the timeline
  • If you already have a URL, you can directly splice it into the timeline

Step 4: Generate Timeline JSON

Generate a Timeline in Alibaba Cloud ICE format according to the reference documents:

{
  "VideoTracks": [...],
  "AudioTracks": [...],
  "SubtitleTracks": [...]
}

Step 5: Submit Editing Task

Use the script to submit the task (based on Alibaba Cloud Common SDK):

# Submit and wait for completion
python scripts/video_editor.py submit \
  --timeline timeline.json \
  --output-config output.json \
  --wait

# Submit only, do not wait
python scripts/video_editor.py submit \
  --timeline timeline.json \
  --output-config output.json

Parameter Description:

Parameter Description Required
--timeline, -t Timeline JSON file path or JSON string Yes
--output-config, -o Output configuration JSON file path or JSON string Yes
--region, -r Region ID (default: cn-shanghai) No
--wait, -w Wait for task completion No

OutputMediaConfig example:

{
  "MediaURL": "https://{your-bucket}.oss-cn-shanghai.aliyuncs.com/{your-target-video-path}",
  "Width": 1080,  
  "Height": 1920
}

If the output resolution is not explicitly specified in the context, use common resolutions: 10801920, 19201080

After the task is submitted, a JobId will be returned.

Step 6: Poll Task Status

Use the script to query/wait for task completion:

# Query status
python scripts/video_editor.py status --job-id \x3Cjob_id>

# Wait for task completion
python scripts/video_editor.py status --job-id \x3Cjob_id> --wait

When the task status is Success, call GetMediaInfo based on the returned MediaId to obtain the OSS URL with authentication, and return it.

Timeline Example

Simplest Slideshow

{
  "VideoTracks": [{
    "VideoTrackClips": [
      {
        "Type": "Image",
        "MediaURL": "https://bucket.oss-cn-shanghai.aliyuncs.com/image1.jpg",
        "In": 0,
        "Out": 5,
        "TimelineIn": 0,
        "TimelineOut": 5
      },
      {
        "Type": "Image",
        "MediaURL": "https://bucket.oss-cn-shanghai.aliyuncs.com/image2.jpg",
        "In": 0,
        "Out": 5,
        "TimelineIn": 5,
        "TimelineOut": 10,
        "Effects": [
            {
                "Type": "Transition",
                "SubType": "linearblur",
                "Duration":0.3
            }
        ]
      }
    ]
  }],
  "AudioTracks": [{
    "AudioTrackClips": [{
      "Type": "Audio",
      "MediaURL": "https://bucket.oss-cn-shanghai.aliyuncs.com/music.mp3",
      "In": 0,
      "Out": 10,
      "TimelineIn": 0,
      "TimelineOut": 10,
      "Effects": [
        {
          "Type": "Volume",
          "Gain": 0.3
        }
      ]
    }]
  }],
  "SubtitleTracks": []
}

LLM Prompt Suggestions

When generating a Timeline, think like this:

  1. What type of video does the user need? → Find the corresponding reference document
  2. Which tracks are needed? (video track, audio track, subtitle track)
  3. What clips are in each track?
  4. Do you need to set In/Out/TimelineIn/TimelineOut (simple stitching does not require setting)? If setting is needed, what are In/Out/TimelineIn/TimelineOut respectively?
  5. Are effects, transitions, volume adjustments, etc. needed?
  6. Generate the complete JSON

Related Files

alibabacloud-video-editor/
├── SKILL.md                          # This document
├── references/
│   ├── 01-timeline-basics.md         # Timeline basics
│   ├── 02-multi-track-audio.md       # Multi-track audio
│   ├── 03-subtitles-and-titles.md    # Subtitles and titles
│   ├── 04-effects-and-transitions.md # Effects and transitions
│   ├── 05-slideshow-template.md      # Slideshow templates
│   └── 06-multi-clip-editing.md      # Multi-clip editing
└── scripts/
    ├── requirements.txt              # Python dependencies
    └── video_editor.py               # Common SDK script
安全使用建议
This skill genuinely integrates with Alibaba Cloud ICE/OSS and will need your Alibaba Cloud credentials (environment variables, ~/.alibabacloud/credentials.ini, or an ECS RAM role) and may upload local files to OSS. Before installing or running: 1) Understand you are granting it ability to list/upload objects and submit ICE jobs — follow the included ram-policies.md and consider creating a least-privilege RAM user with only the ICE and OSS actions you need. 2) There is no requirements.txt in the package but the script imports Alibaba Cloud SDKs — inspect and pin Python dependencies before running pip install to avoid pulling unexpected packages. 3) Confirm the output bucket and paths (MediaURL) to ensure results go to a bucket you control. 4) If you have sensitive local files, be cautious: uploading media to OSS will transmit their contents to Alibaba Cloud. 5) The registry metadata omits environment/config declarations; treat that omission as a red flag and verify credentials and env vars manually before use.
功能分析
Type: OpenClaw Skill Name: alibabacloud-video-editor Version: 0.0.1 The skill is a legitimate tool for automating video editing tasks using Alibaba Cloud's Intelligent Media Services (ICE). The core logic in `scripts/video_editor.py` uses official Alibaba Cloud SDKs to submit and monitor media processing jobs, following standard credential management practices. It includes proactive safety features such as input validation, region whitelisting, and a mandatory user confirmation prompt (`confirm_high_risk_operation`) for high-cost or destructive operations. The documentation in `SKILL.md` and the `references/` directory provides clear, non-malicious guidance for the AI agent to construct valid editing timelines.
能力评估
Purpose & Capability
The skill's stated purpose (cloud-based video editing via Alibaba Cloud ICE and OSS) matches the included references and the script, so needing Alibaba Cloud credentials and OSS access is coherent. However, the registry metadata declares no required environment variables or config paths, while the SKILL.md and script explicitly require Alibaba Cloud credentials and optionally OSS_BUCKET/OSS_ENDPOINT — a metadata/instruction mismatch.
Instruction Scope
SKILL.md instructs the agent to obtain credentials via the Alibaba Cloud default credential chain (env vars, ~/.alibabacloud/credentials.ini, or ECS RAM role) and to upload local files to OSS (or list buckets). Those are legitimate for the task but are not declared in the skill metadata. The instructions also tell the user to 'pip install -r requirements.txt' but there is no requirements.txt in the file manifest, so dependency installation guidance is incomplete and could lead to ad-hoc installs. The skill will read local credential files and may upload local media to a cloud bucket — users should expect cloud access and potential transfer of local files.
Install Mechanism
There is no formal install spec (instruction-only), which limits automatic disk changes. However, SKILL.md recommends running 'pip install -r requirements.txt' even though no requirements.txt is included in the package. The script imports Alibaba Cloud SDK packages; installing dependencies would pull third-party packages from PyPI, so users should inspect and pin those dependencies before installing.
Credentials
The skill requires access to Alibaba Cloud credentials and may use OSS_BUCKET and OSS_ENDPOINT environment variables (documented in SKILL.md and the ram-policies.md describes required RAM permissions). The registry metadata does not declare any required env vars or config paths, creating an omission. Requesting cloud credentials and OSS access is proportionate to the stated cloud editing purpose, but the lack of declared requirements is a coherence risk — users need to be aware they must provide credentials and potentially grant ICE/OSS permissions.
Persistence & Privilege
The skill is not always-enabled, does not request system-wide persistence, and does not modify other skills. It uses the platform's normal credential chain and performs remote API calls; autonomous invocation is allowed by default but is not combined with 'always: true' or other elevated privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install alibabacloud-video-editor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /alibabacloud-video-editor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.1
- Initial release of alibabacloud-video-editor. - Cloud-based video editing with no need for local ffmpeg installation. - Supports generating Alibaba Cloud ICE Timeline configurations for various editing scenarios (slideshow, audio mixing, multi-clip, subtitles, effects, and more). - Automates task submission, polling, and retrieval of the final video URL from Alibaba Cloud. - OSS integration included for handling local and remote media files via Alibaba Cloud's credential chain. - Comprehensive documentation provided for workflow, best practices, and configuration.
元数据
Slug alibabacloud-video-editor
版本 0.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Alibabacloud Video Editor 是什么?

Video editing tool that requires no ffmpeg installation. All video processing is executed in the cloud - no local ffmpeg installation needed. If both input a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 95 次。

如何安装 Alibabacloud Video Editor?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install alibabacloud-video-editor」即可一键安装,无需额外配置。

Alibabacloud Video Editor 是免费的吗?

是的,Alibabacloud Video Editor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Alibabacloud Video Editor 支持哪些平台?

Alibabacloud Video Editor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Alibabacloud Video Editor?

由 alibabacloud-skills-team(@sdk-team)开发并维护,当前版本 v0.0.1。

💬 留言讨论