How to Merge an SRT File With an MP4 (Soft Subtitles or Burned-In Captions)
ยท 6 min read

You have a video (video.mp4) and a subtitle file (subtitles.srt), and you want them to travel together as one file. Search for "merge SRT and MP4" and you'll find two very different jobs hiding behind the same phrase:
- Soft subtitles (muxing): the SRT is added to the MP4 as a separate subtitle track. Viewers can switch it on or off, and the video itself is not re-encoded.
- Burned-in captions (hardcoding): the text is drawn into the video frames. It always shows, looks the same everywhere, and can't be turned off.
Which one you need depends almost entirely on where the video is going. This guide explains the difference, gives you FFmpeg commands we tested on FFmpeg 7.1, and covers the mistakes that make subtitles vanish or drift.
Soft subtitles vs. burned-in captions: which do you need?
Use soft subtitles when the destination is a media player (VLC, QuickTime, a TV), an archive, or a client who wants an editable deliverable. You can carry several languages in one file and fix a typo later without re-exporting the video.
Use burned-in captions when you're posting short-form video. Instagram doesn't let you attach your own caption file to posts, Reels, or Stories; the University of Colorado Boulder's social media captioning guide says human-edited captions "must be added as open captions to the original video" before upload, and UC Berkeley's caption support table lists closed captions as "Not supported" for Instagram posts, Reels, and Stories. Berkeley lists TikTok the same way. Guidance on TikTok caption files varies between sources, but burned-in text is the one method that shows reliably on every app.
Skip both when you're uploading to YouTube (including Shorts). YouTube accepts the SRT directly in YouTube Studio. Per YouTube's help page on supported caption files, SRT works as long as it's plain UTF-8, but "no style info (markup) is recognized," so colors and fonts in the file are ignored. Uploading the file separately keeps captions searchable and toggleable.
Burning in also makes sense whenever the look of the captions is part of the content: big bold words, a highlighted active word, or brand colors. A subtitle track can't guarantee any of that, because the player decides how it renders.
Before you start: check the SRT file
Most "my subtitles don't show up" problems are file problems, not merge problems.
- Encoding: save the file as UTF-8. Accented letters and non-Latin scripts turn into garbage characters otherwise.
- Timestamps: each cue needs the
00:00:01,000 --> 00:00:03,500format, with a comma before the milliseconds. A cue with a broken timestamp is often skipped silently. - Sync: if every line is early or late by the same amount, fix it before merging. Our free subtitle time shifter moves every timestamp at once and can rescale for frame-rate drift.
- Two files? If the video was edited from two clips that each have their own SRT, combine them first with the SRT merger, which applies an offset to the second file and renumbers the cues.
- Got a VTT instead? Convert it with the subtitle converter. For styled burn-in, you can turn the SRT into an ASS file with SRT to ASS.
Method 1: Add an SRT track to an MP4 with FFmpeg (no re-encoding)
FFmpeg is free and runs on Windows, macOS, and Linux. MP4 files can't hold SRT text directly, so the subtitle has to be converted to MP4's own text format, mov_text:
ffmpeg -i video.mp4 -i subtitles.srt -map 0 -map 1 -c copy -c:s mov_text -metadata:s:s:0 language=eng output.mp4
What each part does:
-map 0 -map 1keeps the video and audio from the first input and adds the subtitle from the second.-c copycopies video and audio as-is, so the export takes seconds and loses no quality.-c:s mov_textconverts the SRT into a subtitle track that MP4 supports.-metadata:s:s:0 language=englabels the track so players show "English" instead of "Unknown." Use the three-letter code for other languages (spa,fra,deu).
Want an MKV instead? Matroska stores SRT as-is, so the command is even simpler:
ffmpeg -i video.mp4 -i subtitles.srt -map 0 -map 1 -c copy output.mkv
Open the result in a player such as VLC and pick the track from its Subtitle menu. Remember that social apps generally ignore embedded subtitle tracks, so this method is for players and archives, not feeds.
Method 2: Burn SRT subtitles into the video
To hardcode the text, FFmpeg's subtitles filter renders each cue onto the frames using the libass library:
ffmpeg -i video.mp4 -vf "subtitles=subtitles.srt" -c:a copy output.mp4
You can adjust the look with force_style, which takes ASS style fields:
ffmpeg -i video.mp4 -vf "subtitles=subtitles.srt:force_style='FontSize=18,Outline=2,MarginV=60'" -c:a copy output.mp4
A few things to know:
- Burning in re-encodes the video. That takes longer than Method 1, and quality depends on your encoder settings. If the platform recompresses your upload anyway, start from the highest-quality export you can. Our video bitrate calculator helps when you have a file size limit.
- Raise the captions on vertical video. On a 9:16 clip, the bottom of the screen is covered by usernames, captions, and buttons. A higher
MarginVlifts the text into the safe area. - Fonts must be installed. libass uses system fonts; if a named font is missing, it falls back to another one. The FFmpeg wiki page on burning subtitles covers font folders and ASS styling.
Common problems and quick fixes
- Subtitles don't appear in the MP4: the track may be off by default. Choose it in the player's subtitle menu, and check that you used
-c:s mov_text(copying SRT straight into MP4 fails). - Captions are a second late from start to finish: shift the whole file once instead of editing cues by hand.
- Weird symbols instead of letters: re-save the SRT as UTF-8.
- Text is too small on a phone: SRT has no size information, so the player decides. Burn in with a larger
FontSize, or use a caption tool built for vertical video. - Two sets of captions on Instagram or TikTok: if you burned captions in, leave the app's automatic captions off so the two don't overlap.
When you don't have an SRT at all
Everything above assumes you already have a clean subtitle file. For short-form creators, the slower part is usually getting there: transcribing, timing each line, then styling captions so they're readable on a phone.
That's the job AutoCaptions handles. Upload a clip, get word-timed captions in 48 language options, adjust the words and style, and export a vertical video with captions burned in, ready for YouTube Shorts, Instagram Reels, and TikTok. If you're comparing tools, our alternatives page covers how it stacks up against CapCut's auto captions and others. And if you just need to fix an existing subtitle file, every free subtitle tool on our site works without an account.
The bottom line
"Merging" an SRT with an MP4 means one of two things. Mux it as a soft track (fast, lossless, toggleable) for players and archives, upload the SRT on its own for YouTube, and burn it in for Instagram Reels, TikTok, and anywhere the look of your captions matters. Check the file's encoding and sync first, and the merge itself takes one command.
Sources: YouTube Help, CU Boulder Digital Accessibility, UC Berkeley Digital Accessibility, FFmpeg filters documentation, FFmpeg wiki.