SuperAPI AI Directory

video-resolution-upscale

Design & creation

View repository

Updated 10-16 06:46

About this skill

Video Resolution Upscale

Overview

Call meitu video-resolution-upscale for dedicated video resolution super-resolution (720P/1080P/2K/4K).Pixel-level resolution reconstruction only, no image quality restoration, no deblurring, no denoising, no frame interpolation, no color grading, no brightness adjustment, keeping the original visual style unchanged.

Not handled: comprehensive image quality restoration (without any resolution signal), frame interpolation/smoothness, video denoising, video night scene enhancement, image super-resolution.

API Mapping

DAG tool backend API
video-resolution-upscale video_superres_enhance

Dependencies

  • meitu-cli: >=2.0.6
  • credentials:CONFIG AKSK → meitu tools update; EXEC AKSK → run command
  • environment variables:MEITU_OPENAPI_TOOL_TASK_MODE=command

Path alias:$VISUAL = {OPENCLAW_HOME}/workspace/visual/

Core Workflow

Preflight → Execute → Deliver

Preflight

  1. meitu --version ≥ 2.0.6;meitu auth verify --json
  2. Confirm Config Phase has been run;MEITU_OPENAPI_TOOL_TASK_MODE=command
  3. output_dir resolution: openclaw.yaml → ./output/ | else → $VISUAL/output/video-resolution-upscale/;mkdir -p {output_dir}

Execute

Trigger signals/routing (two-layer determination)

  • First layer (enter the flow): contains any signal of "resolution / super-resolution / upscale / upscale clarity / 720P / 1080P / 2K / 4K"
  • Second layer (direct call vs follow-up question): target value already specified → direct call; not specified ("resolution too low"/"upscale a bit") → follow-up question

Decision order:

  1. Contains resolution-related request? No → this tool does not handle it (outside capability scope, guide to video-quality-enhance)
  2. Target resolution clarity: no specific value → prompt "Please specify the target resolution: 720P / 1080P / 2K / 4K"
  3. video_url missing → follow-up question
  4. Target resolution must be higher than the original video
  5. Unique route → video_superres_enhance

Example:

  • "Upscale the video to 4K" → target_resolution=4K
  • "Restore a blurry old video to 4K" → target_resolution=4K(contains resolution request, handled by this tool)
  • "Help me restore this video" → this tool does not handle it (no resolution request)

Parameter definitions

Parameter Type Required Range Default value Description
video_url STRING Yes -- -- Video URL; if missing → "Please provide the video link"
target_resolution STRING Yes 720p / 1080p / 2K / 4K -- Must be explicitly provided by the user, no default value; higher than the original video resolution

Without target_resolution , this tool cannot be called。

Tool invocation

meitu video-resolution-upscale \
  --skill_name skill_video-resolution-upscale \
  --video_url {video_url} \
  --target_resolution {720p|1080p|2K|4K} \
  --json --download-dir {output_dir}

Error fallback

Scenario Handling
video_url missing Prompt "Please provide the video link"
video_url inaccessible Do not retry, prompt "Please provide a valid video link"
target_resolution missing but has resolution request Prompt "Please specify the target resolution: 720P/1080P/2K/4K"
target_resolution missing and no resolution request at all This tool does not handle it, return outside capability scope
Target resolution ≤ original video Do not call, prompt "Target resolution must be higher than the original video"
target_resolution invalid value Prompt "Only 720P/1080P/2K/4K are supported"
Call failed Retry once, if still failing return an error
Timeout Retry once at a lower target resolution; if it still times out, return an error
Content compliance interception Return the compliance prompt directly without retrying
Input is an image Reject; this tool only processes videos

Deliver

Parse --json → downloaded_files[0].saved_path or media_urls[0]. Ultra-high resolution (4K) takes longer to process.

mv {file} {output_dir}/{YYYY-MM-DD}_{name}_{target_resolution}.mp4

Output

  • Format: MP4 (target 720p/1080p/2K/4K)
  • Naming:{YYYY-MM-DD}_{descriptive-name}_{target_resolution}.mp4
  • Location: Project → ./output/; one-time → $VISUAL/output/video-resolution-upscale/

Baseline Task ID

t_mt1a3i5n7b6aae04c9-f602-468d-920f-3cc73501c44c