FFmpeg recipe

FFmpeg: Burn Subtitles into a Video (Hard-Subs)

subtitles filter renders the SRT directly into the video pixels. The result has subtitles baked in, regardless of player settings.

Command

ffmpeg -i input.mp4 -vf "subtitles=subs.srt:force_style='Fontsize=28,PrimaryColour=&Hffffff&,OutlineColour=&H000000&'" -c:v libx264 -crf 23 -c:a copy -y output.mp4
Prefer no terminal?
Use the Subtitle Burner in your browser
Open Subtitle Burner

What each flag does

-iInput file. Can be a video, audio, or image. Repeat for multiple inputs.
-vfVideo filter chain. e.g. scale=1280:720, crop=, fps=30.
-c:vVideo codec for output. e.g. libx264, libx265, libvpx-vp9.
-crfConstant Rate Factor — quality target (lower = better, larger file). 23 is visually lossless for libx264.
-c:aAudio codec for output. e.g. aac, libmp3lame, copy.
subtitles=subs.srtPath to the SRT file. Also accepts ASS/SSA for advanced styling.
force_styleInline ASS-style overrides: Fontsize, PrimaryColour, OutlineColour, Bold, Italic, etc.

Notes & gotchas

  • For ASS subtitles with embedded styling, you don't need force_style — the file controls appearance.
  • On Windows, escape the colon in paths: subtitles=subs.srt → subtitles=subs.srt:fontsdir=...

Related recipes