Burn in captions
burn_captionsPermanently burn subtitles from SRT, ASS, SSA, or VTT files into video, with control over font, size, colors, position, and encoding settings.
Instructions
Burn an SRT or ASS subtitle file permanently into the video.
Font, size, fill and outline colour, position and margins are all controllable. Colours are given as hex (#RRGGBB) and converted to ASS's inverted BGR form internally. The subtitle file is handed to ffmpeg by path, so caption text containing colons, commas or brackets cannot corrupt the filter graph.
For styling of an .ass file's own embedded styles, note that these overrides replace them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | ||
| encode | No | ||
| fonts_dir | No | Directory to search for the font, if it is not installed. | |
| input_path | Yes | Path to the source media file. | |
| output_path | No | Destination file. If omitted, the output is written into the job's workspace directory and its path is returned by job_result. | |
| subtitle_path | Yes | Path to an .srt, .ass, .ssa or .vtt file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| job_id | Yes | ||
| status | No | queued | |
| message | No | Job queued. Poll job_status for progress, then job_result. |