Captions guide
How to add subtitles to a video: soft track or burned in

Short answer
You can add subtitles to a video file in two ways. A soft track keeps the text in a separate stream inside the file, so viewers can turn it off and you can fix a typo later without touching the picture. Burned-in subtitles are drawn onto every frame, so they show everywhere but cannot be turned off and the video must be re-encoded. In our test, adding a soft track took 0.08 seconds and left the video stream byte for byte identical, while burning took 6.5 seconds, re-encoded all 600 frames and changed the file size by -9.4% at the same quality setting.
Key takeaways
- A soft track is a copy, not a re-encode. ffmpeg 6.1.1 added our four-cue SRT to an MP4 in 0.08 s and to an MKV in 0.10 s; the video stream had the same md5 as the source and the SSIM was 1.0000 (our test, 20 s 720p clip).
- The track costs almost nothing in size: 897 bytes more in the MP4 for four cues. The MKV came out 2,352 bytes smaller than the MP4 source, which is a container difference, not the subtitles.
- Burning re-encodes the whole video. At CRF 23 (the same setting as our source) the file was 9.4% smaller with SSIM 0.9751; at CRF 18 it was 27.8% bigger with SSIM 0.9794.
- Most of that loss is the re-encode, not the text. A control re-encode with no text scored SSIM 0.9893, and in the last 4 seconds, where no cue is on screen, the burned file and the control scored the same, 0.9888.
- Fixing a typo is the real difference: replacing the text in the soft track took 0.08 s, re-burning took 6.4 s, 80 times longer, and the burn must start again from your unsubtitled video.
- The free Koldflux Add subtitles tool burns in your browser. On the same clip and the same SRT it took 54 s, produced an H.264 file 18.0% smaller than the source with SSIM 0.9732, and two runs gave the same file (same md5).
- W3C wording: most captions are "closed" and viewers can hide them; "open" captions are always displayed and cannot be turned off. That is the choice this page measures.
Quick route: add subtitles without ffmpeg
If you just need subtitles on a video and do not need to pick between a soft track and burned in, use the free browser tool:
- Open the free Koldflux Add subtitles tool.
- Upload your video.
- Add an SRT or VTT file, or generate captions automatically.
- Pick a style and position for the text.
- Preview the result and export the MP4.
The tool burns the subtitles in; it does not write a soft track. The measured comparison below is for people who need a soft track, need to batch files, or want to know the size and quality cost before picking a method.
Free tool:Add subtitles to a video (free, in your browser, burn in)
What is the difference between a soft track and burned-in subtitles?
A soft track (also called closed captions or a subtitle stream) is text plus times that sits next to the video inside the same file. The player draws it, so the viewer can switch it on, switch it off or pick a language. Burned-in subtitles (open captions, hardcoded subtitles) are painted onto the picture itself, so every player shows them the same way and nobody can remove them.
The W3C Web Accessibility Initiative puts it like this: "Most are “closed captions” that can be hidden or shown by people watching the video. They can be “open captions” that are always displayed and cannot be turned off." (official, read November 4, 2026). Our page on closed against open captions covers when each one suits a platform; this page measures what each one does to your file.
The FFmpeg documentation describes the burn-in step in one line: "Draw subtitles on top of input video using the libass library." (official, read November 4, 2026). Everything below used ffmpeg 6.1.1, and we ran the free Koldflux tool on the same task.
What did each method do to the file?
We made one test file and four subtitle versions of it. The source is 20 seconds of the Wood Lake clip (CC0 on Wikimedia Commons) at 1280x720 and 30 fps, no audio, encoded once as H.264 at CRF 23 to stand in for your exported video. The subtitle file has four cues. We then added the subtitles four ways, plus a control that re-encodes the video with no text at all, so the damage from re-encoding can be told apart from the damage from the text.
| File | Size | Against source | SSIM | Seconds |
|---|---|---|---|---|
| Source (H.264, CRF 23) | 12,448,217 bytes | reference | 1.0000 | 7.35 to make |
| Soft track in MP4 (mov_text) | 12,449,114 bytes | +897 bytes | 1.0000 | 0.08 |
| Soft track in MKV (SRT) | 12,445,865 bytes | -2,352 bytes | 1.0000 | 0.10 |
| Burned in, CRF 23 | 11,281,615 bytes | -9.37% | 0.9751 | 6.50 |
| Burned in, CRF 18 | 15,912,868 bytes | +27.83% | 0.9794 | 7.18 |
| Control: re-encode, no text, CRF 23 | 11,416,977 bytes | -8.28% | 0.9893 | 6.42 |
Source: our measurement on November 4, 2026 with ffmpeg 6.1.1 on one Linux server (libx264 preset medium, pixel format yuv420p). SSIM is a 0 to 1 score that compares every frame with the source, where 1 is identical; it is not a viewer rating. Seconds are single runs and read as an order of magnitude. Controls: the source compared with itself scored SSIM 1.000000, the video stream of both soft files had the same md5 as the source (49189b44ddf6d666eda91c2909ecef63) while the burned file did not, and the burned file lists only a video stream, so the text really is in the pixels.
Read the table in two steps. First the soft rows: nothing was re-encoded, so quality cannot have moved, and the proof is the identical md5. Then the burned rows: SSIM fell to 0.9751, and the control that drew no text already fell to 0.9893, a drop of 0.0107. The text adds a further 0.0142 of SSIM loss on top of that, which is the bigger of the two amounts over the whole clip, so the re-encode is not the main cause of the drop; the text itself is. In the last four seconds, where no cue is on screen, the burned file and the control scored the same (0.9888 for both at CRF 23), which only shows that away from the text the two match; it does not change the whole-clip comparison above. A low SSIM where subtitles sit is partly expected, since the subtitles filter deliberately changes those pixels, so a lower score there is not the same as a worse-looking background; we did not separate the two in this test.

How do you add a soft subtitle track with ffmpeg?
Use this when the player or platform can read a track and you want the viewer to keep control. The video is copied, so it takes a fraction of a second and loses nothing.
- Write or get an SRT file with numbered cues. If you need the format, see our SRT file format guide.
- For an MP4, run the first command below. MP4 stores subtitles as mov_text, so ffmpeg converts the text and copies the video. If your source has an audio track, map it too, or the output will be silent.
- For an MKV, run the second command. MKV keeps the SRT as it is; the same audio rule applies.
- Check the result with ffprobe. A file with sound should list a video, an audio and a subtitle stream; if the audio line is missing, the output lost its sound.
Round trip, with a known answer: we pulled each track back out of the finished MP4 and MKV with ffmpeg and compared the text with our original file. The difference was 0 lines for both, and the four timecode lines came back unchanged (00:00:00,500 to 00:00:03,500 and so on). So the track holds what you wrote.
An earlier version of this page showed the command without -map 0:a?, copied from our silent test clip. On a file with sound, -map 0:v -map 1:0 only copies the streams you name, so the audio is dropped: we added a sine-wave audio track to our test file and confirmed it with ffprobe (h264 video, aac audio, 2026-11-04). The command without the audio map produced a file with only video and subtitle streams, no audio; the command above, with -map 0:a?, produced video, audio and subtitle. If you used the old command on a file with sound, the output is silent and you need to redo it.
Where it fails: a soft track only helps if the player or site reads it. We did not test any player, phone, TV or platform, so we cannot say which of them show the track from an uploaded MP4; the section on what we did not test lists this. If the audience cannot be reached with a track, burn the text in instead.
ffmpeg -i video.mp4 -i captions.srt -map 0:v:0 -map '0:a?' -map 1:0 -c copy -c:s mov_text -metadata:s:s:0 language=eng out.mp4ffmpeg -i video.mp4 -i captions.srt -map 0:v:0 -map '0:a?' -map 1:0 -c copy -c:s srt out.mkvffprobe -v error -show_entries stream=codec_type,codec_name -of csv=p=0 out.mp4How do you burn subtitles into a video with ffmpeg?
Use this when the text must be visible everywhere, for example a vertical clip that autoplays muted. The subtitles filter draws the text on each frame, so the video is re-encoded once. Start from your best copy, not from one that was already compressed.
The quality setting decides the cost. At CRF 23, the same setting as our source, the file was 9.4% smaller and scored SSIM 0.9751. At CRF 18 it scored 0.9794 and grew 27.8% over the source (15,912,868 bytes against 12,448,217). If the file has an upload size limit, check it before you pick CRF 18.
Where it fails: the filter needs an ffmpeg build with libass. Ours had it; if yours prints an error that the filter is missing, use the soft track or the browser tool below.
The second difference is the edit loop. We changed nothing in the subtitle file and timed both routes again: replacing the soft track took 0.08 s, re-burning took 6.4 s, which is 80 times longer for a 20 s clip, and a long video scales the burn up while the mux stays quick. A typo in a burned file means going back to the unsubtitled video and burning again.
ffmpeg -i video.mp4 -vf subtitles=captions.srt:force_style=Fontsize=22 -c:v libx264 -crf 23 -preset medium -pix_fmt yuv420p out.mp4Can you do it in your browser, free?
Yes. The Koldflux Add subtitles tool takes a video and your SRT or VTT file and burns the subtitles in. It burns in; it does not write a soft track.
We ran it in headless Chromium on the same source and the same four-cue SRT, choosing the Use my SRT or VTT file option and the default Classic style. It read "4 cues loaded", processed for 54.3 s (a second run took 54.2 s) and gave an H.264 file of 1280x720, 10,206,230 bytes, which is 18.0% smaller than the source. Both runs produced the same file, with the same md5.
Source: our run on November 4, 2026 (script tool-check.cjs in the log folder), compared with the ffmpeg burn at the same CRF. Controls: the output was decoded and compared with the source, and our ffmpeg burn and the no-text control were measured on the same frames.
What the numbers say: over the whole clip the tool scored SSIM 0.9732 against 0.9751 for our ffmpeg burn at CRF 23. In the last four seconds, with no cue on screen, it scored 0.9813 against 0.9888 for ffmpeg, and its file was smaller, so its encoder spends fewer bits than our command and loses a little more. We did not judge the result by eye beyond one frame, so treat this as a measurement, not a verdict; keep the soft track route for masters. Its default Classic style also draws the text smaller than our ffmpeg command did (we asked for Fontsize 22), so SSIM values across the two are not a like-for-like comparison of the text.
The output had 601 frames for a 20.03 s clip where our source had 600 frames, a one-frame difference we did not investigate. The tool wrote no audio track because our source had none; we did not test a clip with sound.
Free tools:Add subtitles to a video (free, in your browser, burn in)Auto subtitle generator (SRT or VTT)

Which one should you use?
The audience and the way you will edit decide it. A short checklist from our numbers:
- The video will be watched muted in a feed and you cannot rely on a track: burn the text in, and keep your unsubtitled export so a typo costs one re-burn.
- The audience should be able to turn the text off or pick a language, or you want to correct the text later without touching the picture: use a soft track, since the video stays identical and the edit takes under a second.
- You need both, such as an upload plus a muted reel: keep one soft-track master and one burned copy for the platforms that autoplay muted. We did not test any platform, so check its own help page.
- You want the smallest file: a soft track adds a few hundred bytes, while burning re-encodes, and at CRF 23 our result was 9.4% smaller only because the control re-encode is smaller as well.
What we did not test
We read the W3C and FFmpeg pages named above and ran every test on this page. We did not test any player, phone, TV or website, so we cannot say which ones show a mov_text or SRT track from an uploaded file, and we did not upload anything to YouTube, TikTok, Instagram or any other platform, so we cannot say whether a platform keeps or drops an embedded track.
The main clip has no sound, is 20 seconds long and has four short English cues, so we did not test long videos, many languages, right-to-left or non-Latin text, other fonts or styles beyond the two shown, or positioning. We did separately verify, on a copy of the clip with an added audio track, that the soft-track commands above keep the audio stream (ffprobe check, logged above); we did not test more complex audio setups such as multiple tracks or 5.1. We did not measure quality with VMAF (our ffmpeg build has no VMAF filter) or by eye beyond one frame comparison, and the timings are single runs on one server, with a second run only for the typo-fix step and the browser tool.
Do it in your browser
Free Koldflux tool, no account needed.
Questions people ask
What is the difference between soft subtitles and hardcoded subtitles?
Soft subtitles are a separate text track in the file that the viewer can switch on or off. Hardcoded (burned-in) subtitles are drawn onto the picture and cannot be turned off. In our test the soft track left the video stream identical (same md5, SSIM 1.0000) and the burn re-encoded it (SSIM 0.9751 at CRF 23).
Does adding subtitles reduce video quality?
Only if you burn them in. A soft track is copied alongside the video and the video stream stayed byte for byte identical in our test. Burning re-encodes: SSIM was 0.9751 at CRF 23, and a control re-encode with no text scored 0.9893, so most of the loss came from encoding the video again.
How do I add an SRT file to an MP4 without re-encoding?
Use ffmpeg with the video and audio copied and the SRT stored as mov_text: ffmpeg -i video.mp4 -i captions.srt -map 0:v:0 -map '0:a?' -map 1:0 -c copy -c:s mov_text out.mp4. The 0:a? keeps the command working on a silent source too, but on a file with sound it is what keeps the audio; -map 0:v -map 1:0 alone drops it. It took 0.08 s on our 20 s clip. Check it with ffprobe: video, audio and subtitle streams should all be listed.
How do I burn subtitles into a video for free?
Use ffmpeg's subtitles filter, or the free Koldflux Add subtitles tool in your browser. Our run of the tool on a 20 s 720p clip took 54 s and produced a 10.2 MB MP4 (our measurement). Both re-encode the video once, so start from your best copy.
Which is better for social media, open or closed captions?
It depends on the platform and on whether the video autoplays muted. We did not test any platform. Our measurements show the cost of each method on the file; our closed against open captions page lists what each platform documents.
How long does it take to burn subtitles into a video?
On our server, burning a 20 s 720p clip took 6.5 s with ffmpeg at CRF 23 and 54 s in the browser tool in headless Chromium. Adding a soft track took 0.08 s because the video is copied. Your times depend on the machine and the clip.
Can I fix a typo in burned-in subtitles?
Not in the finished file. You have to go back to the video without subtitles, correct the SRT and burn again, which took 6.4 s for our clip against 0.08 s for replacing a soft track. Keep the unsubtitled export.
Related
More guides on this topic
Sources and how we checked
- W3C Web Accessibility Initiative: Captions/Subtitles, closed and open captions (official, read November 4, 2026) (checked 2026-11-04)
- FFmpeg Filters documentation: subtitles filter (official, read November 4, 2026) (checked 2026-11-04)
- Koldflux test log: ffmpeg 6.1.1 commands, sizes, md5, SSIM and timings for soft and burned subtitles (our measurement, November 4, 2026) (checked 2026-11-04)
- Koldflux tool run: Add subtitles in headless Chromium on the same clip (our measurement, November 4, 2026) (checked 2026-11-04)
- Koldflux audio-preservation check: ffprobe on the stream-copy commands with a file that has sound (our measurement, November 4, 2026) (checked 2026-11-04)
- Wikimedia Commons: Looking Northward along the West Shoreline of Wood Lake BC in Summer.webm, CC0 (test clip, read November 4, 2026) (checked 2026-11-04)
We read the W3C and FFmpeg pages on November 4, 2026 and matched every quoted phrase against the page text with a script. We ran every test on this page with ffmpeg 6.1.1 and ffprobe on a Linux server: 20 seconds of the Wood Lake clip (CC0, Wikimedia Commons) encoded once as H.264 at CRF 23 as the source, a four-cue SRT we wrote, a soft track in MP4 (mov_text) and MKV (SRT) with the video copied, burn-in with the subtitles filter at CRF 23 and 18, and a control re-encode with no text. We compared md5 of the video streams, pulled the tracks back out and diffed the text, measured SSIM against the source over the whole clip and over the last four seconds, and timed each step. We ran the live Koldflux Add subtitles tool twice in headless Chromium with the same files. Every percentage comes from post.py in the log folder; the chart is drawn by make-chart.py from the log. We did not test players or platforms.