Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
input_video_pathYes
overlay_video_pathYes
output_filenameNooutput.mp4
positioningNobottom_right
scaleNo
keep_audioNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yubraaj11/ffmpeg-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server