← 返回
AI智能 Key 中文

Alibaba Super Resolution

Enhance video resolution using Alibaba Cloud Super Resolution API. Use when the user wants to: (1) upscale low-res videos to higher resolution, (2) improve v...
使用阿里云超分辨率API提升视频分辨率。适用于:①将低分辨率视频上采样至高分辨率;②提升视频质量。
blackeight4752
AI智能 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 522
下载
💾 15
安装
1
版本
#latest

概述

Alibaba Cloud Super Resolution (阿里云视频超分辨率)

Enhance video resolution using Alibaba Cloud's video super resolution API, converting low-resolution videos to higher resolution (e.g., 480p → 960p).

Prerequisites

Set the following environment variables for authentication:

export ALIBABA_CLOUD_ACCESS_KEY_ID="your-access-key-id"
export ALIBABA_CLOUD_ACCESS_KEY_SECRET="your-access-key-secret"

Optional OSS Configuration (for large files)

For files larger than 2GB or when using OSS directly:

export ALIYUN_OSS_BUCKET="your-bucket-name"
export ALIYUN_OSS_ENDPOINT="oss-cn-shanghai.aliyuncs.com"

Execution (Python CLI Tool)

A Python CLI tool is provided at ~/.openclaw/workspace/skills/alibaba-super-resolution/alibaba_super_resolve.py.

Quick Examples

# Basic usage: local file → local HD file
python3 ~/.openclaw/workspace/skills/alibaba-super-resolution/alibaba_super_resolve.py \
  --input videos/input-480p.mp4 \
  --output videos/output-960p.mp4

# Custom bit rate (higher = better quality, larger file)
python3 ~/.openclaw/workspace/skills/alibaba-super-resolution/alibaba_super_resolve.py \
  --input videos/input-480p.mp4 \
  --output videos/output-960p.mp4 \
  --bit-rate 8

# Do not wait for completion (return job ID immediately)
python3 ~/.openclaw/workspace/skills/alibaba-super-resolution/alibaba_super_resolve.py \
  --input videos/input-480p.mp4 \
  --no-wait

# Check status of an existing job
python3 ~/.openclaw/workspace/skills/alibaba-super-resolution/alibaba_super_resolve.py \
  --status <JOB_ID>

# Wait for an existing job and download result
python3 ~/.openclaw/workspace/skills/alibaba-super-resolution/alibaba_super_resolve.py \
  --wait <JOB_ID> \
  --output videos/output-960p.mp4

Input Requirements

Video Files

  • Formats: MP4, MOV, AVI, MKV
  • Max Size: 2GB (direct upload) / No limit (OSS URL)
  • Max Duration: 30 minutes
  • Input Resolutions: 480p, 720p

Output Resolutions

InputOutput
---------------
480p960p (2x upscale)
720p2K (2x upscale)

Bit Rate Settings

Bit RateQualityFile SizeProcessing TimeUse Case
---------------------------------------------------------
1-3LowSmallFastPreview/Testing
4-6MediumMediumMediumSocial Media
7-10HighLargeSlowHD Publishing

Rules

  1. Always check that credentials are configured before making API calls.
  2. Files over 2GB must use OSS URL instead of direct upload.
  3. Default bit rate: 5 (balanced quality/size).
  4. Default timeout: 1200 seconds (20 minutes).
  5. Download immediately - output URLs expire after 24 hours.
  6. Handle errors gracefully - display clear error messages.

Troubleshooting

VideoTooLarge

Error: File exceeds 2GB limit

Fix: Use OSS URL instead of direct upload

Timeout

Error: Task timed out

Fix: Increase timeout parameter: --timeout 1800 (30 minutes)

OSSAccessDenied

Error: OSSAccessDenied

Fix: Verify RAM permissions for the access key, ensure it has OSS read/write access.

Related Documents

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 23:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,056 📥 796,118
content-creation

Volcengine Ata Subtitle

blackeight4752
使用火山引擎ATA API生成带自动时间对齐的字幕。适用于用户需要:(1) 为视频添加时间对齐的字幕,(2) 转换...
★ 0 📥 539
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,350 📥 317,716