Volver

This ComfyUI workflow converts vertical videos to horizontal (and vice versa) by outpainting new canvas areas while keeping the original content intact. It uses LoadVideo and GetVideoComponents to pull frames, FPS, and audio, then normalizes frame size with JWImageResizeByShorterSide so the shorter side matches your target resolution. A masking stage—powered by masquerade-nodes-comfyui and a custom utility node (UUID: 7594b5c0-2b90-4aeb-846b-e3eb8fa89f33)—defines where to synthesize new content versus where to preserve the source. The core transformation happens in KlingOmniProEditVideoNode running the Kling O3 model, which content-aware outpaints the added side bands to reach your target aspect. Video Slice lets you process in manageable chunks for stability and VRAM efficiency, and CreateVideo + SaveVideo assemble and write the final file, with optional audio passthrough from GetVideoComponents.

What makes this useful is that you don’t have to crop away important action. Instead, you reframe with horizontal/vertical offsets and extend the scene, maintaining motion continuity and subject integrity. The workflow is organized into groups—Input Video, Video Resize and Extend, and Video Outpaint—and includes an application mode for a simplified UI: set the target aspect, tweak offsets, and run. Note: this pipeline is optimized for 9:16 ↔ 16:9 conversions. For minor aspect changes or square (1:1), the Kling video edit node isn’t recommended; consider basic crop/pad instead.