Local Context Review
python scripts/_handler.py is a local diagnostics helper for the AI Video Upscale Skill skill. It may inspect env. Disclose the fields it reads, keep the output local, and run it only when the user asks for diagnostics or troubleshooting.
AI Video Upscale Skill
AI-powered video upscaling with progress tracking and job isolation.
Quick Usage
After installation (see below), run:
~/video-tools/real-video-enhancer/upscale_video.sh "{{filepath}}" "{{output_path}}" "{{mode}}" "{{preset}}" "{{engine}}" "{{job_id}}"
Or if you added the tool paths to your PATH:
upscale_video.sh "{{filepath}}" "{{output_path}}" "{{mode}}" "{{preset}}" "{{engine}}" "{{job_id}}"
Parameters
| Parameter | Default | Description |
|---|---|---|
| filepath | required | Input video path |
| mode | auto | anime or real (auto-detects) |
| preset | fast | fast (2x) or high (4x) |
| engine | auto | waifu2x or realesrgan |
| job_id | auto | tg_<chatid>_<messageid> |
Mode Selection
- anime → Waifu2x (better for anime with text)
- real → Real-ESRGAN (better for photorealistic)
Preset Selection
| Preset | Upscale | CRF | Speed |
|---|---|---|---|
| fast | 2x | 20 | Quick |
| high | 4x | 16 | Slower |
Example Prompts
- "Upscale this"
- "Upscale this anime clip"
- "Make this 4K"
- "Enhance in high quality, keep me updated"
Output Format
JOB_ID: tg_123_456
PHASE: EXTRACTING_FRAMES
FRAMES_TOTAL: 780
PHASE: UPSCALING
PROGRESS: 78/780
...
STATUS: OK
UPSCALED_VIDEO: /path/to/output.mp4
Installation
See INSTALL.md for setup instructions.