video_layout_pip
Overlay a smaller video on top of a main video as a picture-in-picture. Customize position, size, margin, border, and rounded corners.
Instructions
Picture-in-picture overlay.
Overlay a smaller video on top of a main video.
Args: main_path: Absolute path to main video. pip_path: Absolute path to picture-in-picture video. output_path: Absolute path for output video. position: Position (top-left, top-right, bottom-left, bottom-right). Default bottom-right. size: PIP size as fraction of main. Default 0.25. margin: Margin from edges in pixels. Default 20. border: Add border around PIP. Default true. border_color: Border color hex. Default #CCFF00. border_width: Border width in pixels. Default 2. rounded_corners: Apply rounded corners to PIP. Default true.
Returns: Dict with success status and output_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| main_path | Yes | ||
| pip_path | Yes | ||
| output_path | Yes | ||
| position | No | bottom-right | |
| size | No | ||
| margin | No | ||
| border | No | ||
| border_color | No | #CCFF00 | |
| border_width | No | ||
| rounded_corners | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||