OurBigBook About$ Donate
 Sign in Sign up

How to hardcode subtitle into a video with FFmpeg?

Ciro Santilli (@cirosantilli, 37) ... Area of technology Information technology Computer File format Video file format Subtitle
Updated 2025-07-16  0 By others on same topic  0 Discussions Create my own version
  • superuser.com/questions/869248/hardcoding-subs-with-ffmpeg
  • askubuntu.com/questions/485100/how-may-i-burn-srt-subtitles-to-video-with-avconv
On Ubuntu 20.10, just:
ffmpeg -i input.mp4 -vf "subtitles=subtitle.srt" output.mp4
To change font size: stackoverflow.com/questions/21363334/how-to-add-font-size-in-subtitles-in-ffmpeg-video-filter
ffmpeg -i input.mp4 -vf "subtitles=subtitle.srt:force_style='Fontsize=64'" output.mp4
The default appears to be 24, so just multiply that by whatever seems like a reasonable factor.
Note howver that .ass subtitle files can contain style information, which ffmpeg respects. Aegisub can produce and preview such styles, making .ass one of the best options.

 Ancestors (8)

  1. Subtitle
  2. Video file format
  3. File format
  4. Computer
  5. Information technology
  6. Area of technology
  7. Technology
  8.  Home

 View article source

 Discussion (0)

New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook