burn_subtitles
Hardcode subtitles directly into video frames with adjustable font size, colors, outline, and position. This ensures captions display consistently on TikTok, Instagram Reels, and YouTube Shorts.
Instructions
Hardcode/burn subtitles directly into video frames with customizable font size, colors, and positioning. Unlike soft subtitles, burned subtitles render on all platforms including TikTok, Instagram Reels, and YouTube Shorts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| marginV | No | Vertical margin distance in pixels from the bottom edge. Default: 35. | |
| fontSize | No | Subtitle font size in points. Default: 24. | |
| fontColor | No | Primary subtitle text color: 'white', 'yellow', 'cyan', or ASS hex e.g. '&H00FFFFFF'. Default: 'white'. | white |
| videoPath | Yes | Path to the source video file. | |
| outputPath | Yes | Target output video path (.mp4, .mov, or .mkv). | |
| outlineColor | No | Subtitle border/outline color: 'black', 'white', or ASS hex. Default: 'black'. | black |
| outlineWidth | No | Outline thickness in pixels. Default: 2. | |
| subtitlesPath | Yes | Path to the subtitle file (.srt, .vtt, or .ass) to burn into the video. | |
| hardwareAcceleration | No | Use hardware-accelerated video encoding when available. Default: true. |