overlays_video
Add a video overlay to another video with customizable positioning and scaling. The overlay loops automatically to match the background video duration while preserving audio options.
Instructions
Overlay a video on top of another with simple positioning. Loops the overlay video until the background video ends, trimming any extra frames.
Args: input_video_path (str): Path to background video. overlay_video_path (str): Path to overlay video. output_filename (str): Name of the output video file (saved inside VIDEO_OVERLAY_PATH). positioning (Literal): Where to place overlay. scale (tuple): (width, height) to resize overlay video before placing. keep_audio (bool): Whether to keep background audio.
Returns: str: Path to the generated video.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_video_path | Yes | ||
| overlay_video_path | Yes | ||
| output_filename | No | output.mp4 | |
| positioning | No | bottom_right | |
| scale | No | ||
| keep_audio | No |