Xpersona
A

Alibabacloud Video Forge

CLAWHUB · Unverified

Alibaba Cloud Media Processing Service (MPS) one-stop video processing skill. Use when users need video processing, transcoding, snapshot generation, content...

62
Rank
84
Safety
977
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 977 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s173swjet2yrebzqrp6hjkvmy583mxef:alibabacloud-video-forge
  1. Install using `clawhub skill install s173swjet2yrebzqrp6hjkvmy583mxef:alibabacloud-video-forge` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/sdk-team/alibabacloud-video-forge before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-sdk-team-alibabacloud-video-forge/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

139,249 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: alibabacloud-video-forge
description: Alibaba Cloud Media Processing Service (MPS) one-stop video processing skill. Use when users need video processing, transcoding, snapshot generation, content moderation, or video upload. For video distribution scenarios, complete video upload, snapshot, multi-resolution transcoding, and content moderation in a single workflow for efficient standardized video asset production.
---

# Alibaba Cloud Video Forge

One-stop video processing through Alibaba Cloud Media Processing Service (MPS), including cover generation, multi-resolution transcoding, content moderation, and more.

## Prerequisites

> **Pre-check: Aliyun CLI >= 3.3.3 required**
> Run `aliyun version` to verify >= 3.3.3. If not installed or version too low,
> run `curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash` to update,
> or see `references/cli-installation-guide.md` for installation instructions.

> **Pre-check: Aliyun CLI plugin update required**
> [MUST] run `aliyun configure set --auto-plugin-install true` to enable automatic plugin installation.
> [MUST] run `aliyun plugin update` to ensure that any existing plugins are always up-to-date.

> **Pre-check: AI-Mode Configuration required**
> [MUST] Before using aliyun CLI commands, configure AI-Mode:
- aliyun configure ai-mode enable
- aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-video-forge"
- aliyun configure ai-mode disable

> **Pre-check: Python >= 3.10 required**
> Run `python3 --version` to verify.

> **Pre-check: Alibaba Cloud Credentials Required**
>
> Run `aliyun configure list` to check credential status. If no valid profile, configure via `aliyun configure`.
> See [references/security-guidelines.md](references/security-guidelines.md) for credential security rules.

## 🚀 Quick Start

**Easiest Way** - One-click video processing:

```bash
# Method 1: Use end-to-end workflow script (Recommended)
python scripts/video_workflow.py --input /path/to/video.mp4

# Method 2: Check environment first
python scripts/health_check.py

# Method 3: Execute steps manually
python scripts/oss_upload.py --local-file video.mp4 --oss-key input/video.mp4
python scripts/mps_transcode.py --oss-object input/video.mp4 --preset multi
python scripts/mps_audit.py --oss-object input/video.mp4
```

### Common Scenarios

#### Scenario 1: Bilibili Video Publishing
```bash
python scripts/video_workflow.py \
  --input my_video.mov \
  --preset 720p \
  --generate-cover \
  --scenes porn terrorism ad
```

#### Scenario 2: UGC Content Moderation
```bash
python scripts/mps_audit.py --oss-object /input/user_uploaded.mp4
```

#### Scenario 3: Multi-Resolution Transcoding
```bash
python scripts/mps_transcode.py \
  --oss-object /input/course_video.mp4 \
  --preset multi \
  --output-prefix output/course_2024/
```

---

## Scenario Description

This skill supports video distribution scenarios:

1. **Transcoding** — Multi-resolution transcoding with Narrowband HD 

_meta.json

{
  "ownerId": "kn74p5w8ywv6prh40g0s82gmqh83nw54",
  "slug": "alibabacloud-video-forge",
  "version": "0.0.2",
  "publishedAt": 1776675825047
}

references/acceptance-criteria.md

# Acceptance Criteria: alibabacloud-video-forge

**Scenario**: 阿里云 MPS 点播视频一站式处理
**Purpose**: Skill 测试验收标准

---

## 1. 环境配置验证

### 1.1 Python 环境
#### ✅ CORRECT
```bash
python3 --version
# Python 3.10.x 或更高版本
```

#### ❌ INCORRECT
```bash
python --version
# Python 2.7.x - 版本过低,不支持
```

### 1.2 SDK 安装
#### ✅ CORRECT
```bash
pip install alibabacloud-mts20140618 alibabacloud-credentials oss2
```

#### ❌ INCORRECT
```bash
# 错误:使用旧版 SDK
pip install aliyun-python-sdk-mts
```

### 1.3 凭证配置
#### ✅ CORRECT
```bash
# 使用 aliyun configure list 检查凭证状态
aliyun configure list
```

#### ❌ INCORRECT
```bash
# 错误:直接打印或读取凭证值
echo $<credential_env_var>    # Never echo credentials
cat ~/.alibabacloud/credentials  # Never read credential files directly
```

---

## 2. OSS 操作验证

### 2.1 上传文件
#### ✅ CORRECT
```bash
python scripts/oss_upload.py --local-file ./video.mp4 --oss-key input/video.mp4
```

#### ❌ INCORRECT
```bash
# 错误:缺少必填参数
python scripts/oss_upload.py --local-file ./video.mp4
# 错误:oss-key 不应以 / 开头
python scripts/oss_upload.py --local-file ./video.mp4 --oss-key /input/video.mp4
```

### 2.2 下载文件
#### ✅ CORRECT
```bash
python scripts/oss_download.py --oss-key output/transcode/video.mp4 --local-file ./output.mp4
```

#### ❌ INCORRECT
```bash
# 错误:直接访问 OSS URL(会返回 403)
curl https://bucket.oss-cn-shanghai.aliyuncs.com/output/video.mp4
```

---

## 3. MPS 任务验证

### 3.1 媒体信息探测
#### ✅ CORRECT
```bash
# 使用 --oss-object 参数(以 / 开头)
python scripts/mps_mediainfo.py --oss-object /input/video.mp4
```

#### ❌ INCORRECT
```bash
# 错误:--oss-object 缺少开头的 /
python scripts/mps_mediainfo.py --oss-object input/video.mp4
```

### 3.2 截图任务
#### ✅ CORRECT
```bash
# normal 模式必须指定 --time 参数(毫秒)
python scripts/mps_snapshot.py --oss-object /input/video.mp4 --mode normal --time 5000
```

#### ❌ INCORRECT
```bash
# 错误:normal 模式缺少 --time 参数
python scripts/mps_snapshot.py --oss-object /input/video.mp4 --mode normal
```

### 3.3 转码任务
#### ✅ CORRECT
```bash
# 自适应模式(推荐)
python scripts/mps_transcode.py --oss-object /input/video.mp4

# 指定预设
python scripts/mps_transcode.py --oss-object /input/video.mp4 --preset 720p

# 多路转码
python scripts/mps_transcode.py --oss-object /input/video.mp4 --preset multi
```

#### ❌ INCORRECT
```bash
# 错误:无效的 preset 值
python scripts/mps_transcode.py --oss-object /input/video.mp4 --preset 720

# 错误:同时指定 preset 和自定义参数(可能冲突)
python scripts/mps_transcode.py --oss-object /input/video.mp4 --preset 720p --width 1920
```

### 3.4 内容审核
#### ✅ CORRECT
```bash
# 默认审核场景
python scripts/mps_audit.py --oss-object /input/video.mp4

# 指定审核场景(空格分隔)
python scripts/mps_audit.py --oss-object /input/video.mp4 --scenes porn terrorism ad
```

#### ❌ INCORRECT
```bash
# 错误:scenes 使用逗号分隔
python scripts/mps_audit.py --oss-object /input/video.mp4 --scenes porn,terrorism,ad
```

### 3.5 任务轮询
#### ✅ CORRECT
```bash
python scripts/poll_task.py --job-id abc123 --job-type transcode --region cn-shanghai
```

#### ❌ INCORRECT
```bash
# 错误:无效的 job-type
python scripts/poll_task.py --job-id abc123 --job-type 

references/capability-overview.md

# Capability Overview

## Feature Tree

```
Alibaba Cloud MPS Video Processing
│
├── 📤 Upload
│   └── Upload video to OSS storage
│
├── 🔍 Probe
│   └── Get media info (duration, bitrate, resolution, etc.)
│
├── 🖼️ Snapshot
│   └── Normal snapshots and sprite sheet generation
│
├── 🎬 Transcode
│   ├── Adaptive single-stream Narrowband HD transcoding (auto-select best resolution based on source)
│   ├── Multi-resolution transcoding (LD/SD/HD/FHD/2K/4K)
│   ├── Super-resolution enhancement
│   └── Narrowband HD compression
│
├── 🛡️ Moderation
│   └── Content moderation (pornography, violence, advertising, etc.)
│
└── 📥 Download
    └── Get download links for processed videos
```

## Automatic Pipeline Management

This skill supports automatic pipeline selection without manual Pipeline ID configuration:

- Scripts automatically select or create appropriate pipelines based on task type when `--pipeline-id` is not specified
- Different task types use different pipelines:
  - Transcoding tasks: Use Standard or NarrowBandHDV2 pipelines
  - Moderation tasks: Use AIVideoCensor pipeline
- `ALIBABA_CLOUD_MPS_PIPELINE_ID` environment variable is optional:
  - If set, this value takes priority
  - If not set, automatically select pipeline suitable for current task type

To manually view or select pipelines:

```bash
# List all pipelines
python scripts/mps_pipeline.py

# List pipelines by type
python scripts/mps_pipeline.py --type standard     # Transcoding pipelines
python scripts/mps_pipeline.py --type audit        # Moderation pipelines

# Auto-select and get Pipeline ID
export ALIBABA_CLOUD_MPS_PIPELINE_ID=$(python scripts/mps_pipeline.py --select)
echo "Pipeline ID: $ALIBABA_CLOUD_MPS_PIPELINE_ID"
```

references/cli-installation-guide.md

# Aliyun CLI Installation & Configuration Guide

Complete guide for installing and configuring Aliyun CLI.

> **Aliyun CLI 3.3.3+**: Supports installing and using all published Alibaba Cloud product plugins. Make sure to upgrade to 3.3.3 or later for full plugin ecosystem coverage.

## Installation

### macOS

**Using Homebrew (Recommended)**
```bash
brew install aliyun-cli
# Upgrade to latest
brew upgrade aliyun-cli

# Verify version (>= 3.3.3)
aliyun version
```

**Using Binary**
```bash
# Download
wget https://aliyuncli.alicdn.com/aliyun-cli-macosx-latest-amd64.tgz

# Extract
tar -xzf aliyun-cli-macosx-latest-amd64.tgz

# Move to PATH
sudo mv aliyun /usr/local/bin/

# Verify
aliyun version
```

### Linux

**Debian/Ubuntu**
```bash
# Download
wget https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz

# Extract and install
tar -xzf aliyun-cli-linux-latest-amd64.tgz
sudo mv aliyun /usr/local/bin/

# Verify
aliyun version
```

**CentOS/RHEL**
```bash
# Download
wget https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz

# Extract and install
tar -xzf aliyun-cli-linux-latest-amd64.tgz
sudo mv aliyun /usr/local/bin/

# Verify
aliyun version
```

**ARM64 Architecture**
```bash
# Download ARM64 version
wget https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-arm64.tgz

# Extract and install
tar -xzf aliyun-cli-linux-latest-arm64.tgz
sudo mv aliyun /usr/local/bin/
```

### Windows

**Using Binary**
1. Download from: https://aliyuncli.alicdn.com/aliyun-cli-windows-latest-amd64.zip
2. Extract the ZIP file
3. Add the directory to your PATH environment variable
4. Open new Command Prompt or PowerShell
5. Verify: `aliyun version`

**Using PowerShell**
```powershell
# Download
Invoke-WebRequest -Uri "https://aliyuncli.alicdn.com/aliyun-cli-windows-latest-amd64.zip" -OutFile "aliyun-cli.zip"

# Extract
Expand-Archive -Path aliyun-cli.zip -DestinationPath C:\aliyun-cli

# Add to PATH (requires admin privileges)
$env:Path += ";C:\aliyun-cli"
[Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::Machine)

# Verify
aliyun version
```

## Configuration

### Quick Start

Configure Aliyun CLI using the interactive command:

```bash
# Interactive configuration (recommended)
aliyun configure
# Follow the prompts to enter your credentials

# After configuration, verify
aliyun configure list
```

All `aliyun configure` commands support non-interactive flags, which is the recommended approach —
it works in scripts, CI/CD pipelines, and agent-driven automation without hanging on stdin prompts.

**Where to Get Access Keys**

1. Log in to Aliyun Console: https://ram.console.aliyun.com/
2. Navigate to: AccessKey Management
3. Create a new AccessKey pair
4. Save the secret immediately — it's only shown once

### Configuration Modes

Aliyun CLI supports 6 authentication modes. The recommended approach is interactive configuration.

#### 1. AK Mode (Access Key)

Most common mode for personal accounts and scripts.

```ba

Sponsored

Ads related to Alibabacloud Video Forge and adjacent AI workflows.