Prompt
How do I burn subtitles into a video with an encoding API?
Latest observation
Oct 22, 2026
OpenAI APIWeb search: off
To burn subtitles into a video with an encoding API, the general workflow is:
- Upload or reference the source video
- Upload the subtitle file (usually
.srt,.vtt, or.ass) - Create an encode job that:
- uses the video as input
- adds the subtitle track
- enables burn-in / hard subtitles so the text is rendered into the picture
- Start the job and poll for completion
- Download the encoded output
Typical API concepts
Most encoding APIs use some version of:
- Input video
- Subtitle asset
- Encoding preset / output settings
- Subtitle burn-in option
- Job submission endpoint
Important distinction
There are two subtitle types:
- Soft subtitles: selectable on/off in the player
- Burned-in subtitles: permanently rendered into the video frames
You want burned-in subtitles.
Example request pattern
A job payload often looks something like this:
{
"input": "https://example.com/video.mp4",
"subtitles": {
"file": "https://example.com/subtitles.srt",
"mode": "burn"
},
"output": {
"format": "mp4",
"video_codec": "h264",
"audio_codec": "aac"
}
}
If your API supports FFmpeg-style filters
Burn-in is usually done with a subtitles filter:
ffmpeg -i input.mp4 -vf "subtitles=subtitles.srt" -c:a copy output.mp4
For APIs that expose filter chains, you’d typically set something equivalent to:
subtitles=...- or
burn_in=true - or
render_subtitles=true
Things to watch out for
- Font availability: styling may depend on fonts installed on the encoding worker
- Subtitle format:
.assoften gives better styling control than.srt - Character encoding: ensure UTF-8 for non-English text
- Resolution changes: subtitle position and size may vary if the video is scaled
- Performance: burning subtitles requires re-encoding video, not just muxing
If you’re using a specific API
The exact steps depend on the provider. If you tell me which encoding API you’re using, I can give you:
- the exact request body
- a working cURL example
- or sample code in Python/JavaScript/Go
If you want, I can also show you how to do this with FFmpeg, AWS MediaConvert, Mux, Cloudinary, or another API.