Skip to main content
Render an SRT subtitle file permanently onto a video (burned-in captions). Useful when the target player doesn’t support subtitle tracks or you need guaranteed rendering.

Code

How the FFmpeg command works

  • -i {{in_video}} — input video
  • -ss 00:00 -to 01:00 — only burn subtitles into the first minute (drop this to process the full video)
  • -vf subtitles={{in_srt}} — subtitles video filter reads the SRT file
  • -c:v libx264 -crf 20 — re-encode video (required, since the filter modifies frames)
  • -c:a aac -b:a 192k — re-encode audio
  • {{out_1}} — output file
For soft subtitles (a separate subtitle track that can be toggled off), use -c:s mov_text with an MP4 container and skip the -vf filter.

Response