video_add_texts
Add multiple text overlays to a video in a single FFmpeg pass. Automatically distributes texts vertically to avoid overlap.
Instructions
Overlay multiple text elements on a video in a single FFmpeg pass.
Automatically detects overlapping text and distributes vertically stacked texts when they share the same named position.
Args: input_path: Absolute path to the input video. texts: List of text overlay dicts. Each dict may contain: - text (str, required) - position (str|dict, default "center") - font (str, optional) - size (int, default 48) - color (str, default "white") - shadow (bool, default True) - start_time (float, optional) - duration (float, optional) output_path: Where to save the output. Auto-generated if omitted. crf: Override CRF value (0-51, lower = better quality). Default 23. preset: Override FFmpeg encoding preset (ultrafast, fast, medium, slow, veryslow). auto_layout: Automatically distribute vertically stacked texts at the same named position. Default True.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | ||
| texts | Yes | ||
| output_path | No | ||
| crf | No | ||
| preset | No | ||
| auto_layout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||