SuperAPI AI Directory

video-lowlight-enhance

Design & creation

View repository

Updated 10-16 06:46

About this skill

Video Lowlight Enhance

Overview

Call meitu video-lowlight-enhance to perform video shadow detail recovery, low-light environment brightening, and highlight-shadow balance adjustment. Only applicable to videos shot in dark/low-light environments; calling it on normally lit videos may cause overexposure.

Does not handle: comprehensive quality repair, super-resolution, video denoising, image shadow enhancement, video color grading/color optimization.

API Mapping

DAG tool backend API
video-lowlight-enhance video_lowlight_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; if not installed, go through npm install -g meitu-cli@latest
  2. meitu auth verify --json → if credentials are invalid, guide configuration
  3. Confirm that the Config Phase has been run (meitu tools update);MEITU_OPENAPI_TOOL_TASK_MODE=command
  4. output_dir resolution: openclaw.yaml → ./output/ | else → $VISUAL/output/video-lowlight-enhance/;mkdir -p {output_dir}

Execute

Trigger signals/routing

Matched signal words: "video is too dark, night scene, brighten, shadows, dark light, low light, shot too dark at night, pitch black, insufficient light".

Single API tool; call once parameters are complete video_lowlight_enhance. No cross-tool fallback.

Example:

  • "This video is too dark, can't see clearly" → call directly
  • "The video shot at night is too dark" → call directly
  • "Make the video a bit brighter" → lightly confirm "night scene shadow brightening or normal quality repair?"

Parameter definitions

Parameter Type Required Range Default value Description
video_url STRING Yes -- -- Video URL; if missing → "Please provide the video link that needs shadow enhancement"

Not needed prompt. Only applicable to dark/low-light videos; calling it on normally lit videos will cause overexposure.

Tool invocation

meitu video-lowlight-enhance --video_url {video_url} --json --download-dir {output_dir} --skill_name skill_video-lowlight-enhance

Error degradation

Scenario Handling
video_url missing Prompt "Please provide the video link that needs shadow enhancement"
video_url inaccessible Do not retry, prompt "Please provide a valid video link"
Video lighting is normal but user says "brighten" Call normally, but prompt "This video has normal lighting; enhancement may cause overexposure"
video_lowlight_enhance call failed Retry once; if it still fails, return an error
Timeout Retry once; if it still times out, return an error
Content compliance interception Return the compliance prompt directly, do not retry
Input is an image Reject; this tool only processes videos
User says "video color grading" Inform them it is outside this tool's scope

Deliver

Parse --json output:

  • ok: true → downloaded_files[0].saved_path is the locally downloaded result; or take media_urls[0]
  • ok: false → check code and hint

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

Output

  • Format:MP4
  • Naming:{YYYY-MM-DD}_{descriptive-name}_lowlight.mp4
  • Location: project → ./output/; one-time → $VISUAL/output/video-lowlight-enhance/

Baseline Task ID

t_mt1a3i5n7b30763966-8e69-4c6d-8a0f-384fe6206447