video_add_text
Overlay text on video for titles, captions, or watermarks. Specify position, timing, font, size, color, and shadow.
Instructions
Overlay text on a video (titles, captions, watermarks).
Args: input_path: Absolute path to the input video. text: Text to overlay. position: Position on screen. Named (top-left, top-center, etc.), pixel" " {"x": 100, "y": 50}, or percentage {"x_pct": 0.5, "y_pct": 0.5}. font: Path to font file. Uses system default if omitted. size: Font size in pixels. color: Text color (CSS color name or hex). shadow: Add text shadow for readability. start_time: When the text appears (seconds). Null = always visible. duration: How long text is visible (seconds). Requires start_time. 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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | ||
| text | Yes | ||
| position | No | top-center | |
| font | No | ||
| size | No | ||
| color | No | white | |
| shadow | No | ||
| start_time | No | ||
| duration | No | ||
| output_path | No | ||
| crf | No | ||
| preset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||