Subtitles recipe
Add Subtitles to MP4 with FFmpeg
Burn SRT or ASS subtitles permanently into an MP4 video.
Command
Use this when
- You want subtitles permanently visible in the video.
- You need a video that works on players without separate subtitle support.
- You have an SRT or ASS subtitle file ready.
Customize it
Generate FFmpeg commands to burn SRT or ASS subtitles into video, or attach a selectable subtitle track to MP4.
Open Add SubtitlesParameter breakdown
subtitles=subtitles.srt
Loads and renders the subtitle file onto the video frames.
-c:v libx264
Re-encodes the video because subtitle burn-in is a filter.
-crf 23
Controls output quality and file size.
-c:a copy
Copies the original audio stream.