Loading...
Loading...
Video outpainting on RunComfy via the `runcomfy` CLI — extend the spatial canvas of a video, change aspect ratio (9:16 vertical to 16:9 horizontal or vice versa), add environment beyond the original frame while preserving the central action. Routes prompt-shaped spatial extension through Wan 2-7 edit-video and points the agent at dedicated ComfyUI outpaint workflows when seam quality matters for hero delivery. Triggers on "video outpaint", "video outpainting", "extend video canvas", "expand video frame", "uncrop video", "aspect ratio change", "vertical to horizontal video", "16:9 from 9:16", "TikTok to YouTube", or any explicit ask to extend a video spatially beyond its original frame.
npx skill4agent add agentspace-so/runcomfy-agent-skills video-outpainting# 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 ./outruncomfy-cliwan-ai/wan-2-7/edit-videoPrompt-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.
video-editwan-ai/wan-2-7/edit-videoruncomfy 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"Extend the canvas to 16:9""Extend downward to show more ground""Add environment on the left and right by ~30% each""Preserve the original action and subject framing in the center"| Workflow | What |
|---|---|
| LTX 2-3 outpainting in ComfyUI — spatial frame expansion | Dedicated video outpainting workflow using LTX 2-3 |
| Browse comfyui-workflows for "outpaint" | Additional video outpainting graphs from the community |
image-outpaintingvideo-extendvideo-inpaintingwan-models| code | meaning |
|---|---|
| 0 | success |
| 64 | bad CLI args |
| 65 | bad input JSON / schema mismatch |
| 69 | upstream 5xx |
| 75 | retryable: timeout / 429 |
| 77 | not signed in or token rejected |
runcomfy run--output-dirnpm i -g @runcomfy/clinpx -y @runcomfy/cliruncomfy login~/.config/runcomfy/token.jsonRUNCOMFY_TOKEN--inputmodel-api.runcomfy.net*.runcomfy.net*.runcomfy.comBash(runcomfy *)runcomfy-clivideo-editvideo-extendvideo-inpaintingimage-outpainting