video_layout_grid
Arrange multiple video clips into grid layouts such as 2x2 or 3x1 and export a single video with configurable gap, padding, and background color.
Instructions
Create grid-based multi-video layout.
Arranges multiple videos in a grid pattern (2x2, 3x1, etc.).
Args: clips: List of absolute paths to video files. layout: Grid layout (2x2, 3x1, 1x3, 2x3). output_path: Absolute path for output video. gap: Pixels between clips. Default 10. padding: Padding around grid. Default 20. background: Background color hex. Default #141414.
Returns: Dict with success status and output_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap | No | ||
| clips | Yes | ||
| layout | Yes | ||
| padding | No | ||
| overwrite | No | Explicitly allow replacing existing media. Existing non-media files are protected. | |
| background | No | #141414 | |
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||