video-outpainting

Extend video canvas spatially—swap aspect ratio, uncrop vertically or horizontally while preserving central action. Routes prompt-shaped canvas extension through Wan 2-7 Edit-Video for quick aspect-ratio swaps (9:16 to 16:9, square to wide), and points to dedicated ComfyUI LTX 2-3 outpainting workflows when hero-grade seam quality is required Invoked via runcomfy run wan-ai/wan-2-7/edit-video with video URL and spatial extension prompt; accepts TikTok-to-YouTube, Instagram-to-banner, and old-footage-to-modern-ratio use cases Seam quality varies with Wan 2-7; multi-pass outpainting degrades after two iterations; ComfyUI workflows recommended for strict temporal consistency and motion-aware fill in premium deliverables

INSTALLATION
npx skills add https://github.com/agentspace-so/runcomfy-agent-skills --skill video-outpainting
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

Video Outpainting

Extend a video's spatial canvas — uncrop vertically or horizontally, change aspect ratio while preserving the central action. This skill routes spatial extension through Wan 2-7 edit-video for prompt-shaped canvas changes, and points the agent at dedicated ComfyUI outpaint workflows when hero-grade seam quality matters.

runcomfy.com · Wan 2-7 edit-video · CLI docs

Powered by the RunComfy CLI

# 1. Install (see runcomfy-cli skill for details)

npm i -g @runcomfy/cli      # or:  npx -y @runcomfy/cli --version

# 2. Sign in

runcomfy login              # or in CI: export RUNCOMFY_TOKEN=<token>

3. Spatially extend a video (closest CLI-reachable approach)

runcomfy run wan-ai/wan-2-7/edit-video

--input '{"video_url": "...", "prompt": "...extend canvas..."}'

--output-dir ./out

CLI deep dive: [`runcomfy-cli`](https://www.skills.sh/agentspace-so/runcomfy-agent-skills/runcomfy-cli) skill.

---

## Pick the right model

**Wan 2-7 Edit-Video** — `wan-ai/wan-2-7/edit-video` *(default)*

> Prompt-driven video edit; accepts spatial extension language ("extend the canvas to 16:9 by adding matching environment on the left and right"). Wide enough quality for social and most internal uses.

> Pick for: aspect-ratio swap (vertical ↔ horizontal), social-cuts, uncrop where seam quality is acceptable.

> Avoid for: hero ad delivery with strict seam-quality requirements — use a ComfyUI outpainting workflow.

For broader video edit see [`video-edit`](https://www.skills.sh/agentspace-so/runcomfy-agent-skills/video-edit).

---

## Route 1: Wan 2-7 Edit-Video — closest CLI path

**Model**: `wan-ai/wan-2-7/edit-video`

**Catalog**: [Wan 2-7 edit-video](https://www.runcomfy.com/models/wan-ai/wan-2-7/edit?utm_source=skills.sh&utm_medium=skill&utm_campaign=video-outpainting)

### Invoke

**Aspect-ratio swap (9:16 vertical → 16:9 horizontal):**

runcomfy run wan-ai/wan-2-7/edit-video \

--input '{

"video_url": "https://your-cdn.example/vertical-clip.mp4",

"prompt": "Extend the canvas to 16:9 horizontal by adding matching environment on the left and right sides. Continue the existing background style, lighting, and camera distance throughout the clip. Preserve the original action and subject framing in the center."

}' \

--output-dir ./out

BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card