Add SRT to MP4: Keep Subtitles as a Selectable Track

Add an existing SRT to an MP4 with FFmpeg, copy the selected video and audio, then check the subtitle track, language, timing and playback.

You can add an existing SRT file to an MP4 as a selectable text subtitle track. FFmpeg can convert the subtitles to mov_text while copying the selected video and audio without re-encoding them. The receiving player must support that subtitle track; a successful export alone does not establish that it will display it.

This workflow starts with a local MP4 and SRT you own or are authorized to process. Keep both originals. If your starting point is a Blu-ray subtitle track rather than an SRT, use the source audio and subtitle preservation guide first.

Choose a separate file, a track or permanent text

What you need Suitable starting point What to check
Subtitles for your own playback Load the SRT as a separate file in a player that supports it Keep the MP4 and SRT together; automatic filename matching varies
One file with subtitles that can be switched off Add an MP4 text subtitle track The recipient’s player must recognize and display it
Text that stays visible in the picture Burn subtitles into a separate video copy This changes video pixels and requires video encoding; the text cannot be switched off

The command below follows the second route. It does not generate captions, translate speech, perform OCR or convert image-based PGS subtitles.

Check the two inputs

Make sure ffmpeg -version and ffprobe -version run in your terminal. Save a working copy of the SRT as UTF-8, and check that its cues belong to this edit of the recording. A subtitle file for a longer or differently cut video will not become synchronized merely by adding it to the container.

Inspect the MP4 before choosing streams:

ffprobe -v error -show_entries stream=index,codec_type,codec_name:stream_tags=language:stream_disposition=default,forced -of json "family.mp4"

The example selects the first video stream, every audio stream if present, and the new SRT. Existing subtitle tracks, additional video streams, data streams and attachments are not selected. If any of these matter, stop and plan their mapping separately. This is not an instruction to preserve every source track or all metadata.

Add the SRT without re-encoding selected video or audio

Run this as one line from the folder containing both inputs, using a new output filename:

ffmpeg -n -i "family.mp4" -i "captions.srt" -map 0:v:0 -map "0:a?" -map 1:s:0 -c:v copy -c:a copy -c:s mov_text -metadata:s:s:0 language=eng -disposition:s:0 default "family-captioned.mp4"

Input 0 is the MP4 and input 1 is the SRT. The optional ? on the audio map also permits a silent video. copy applies only to the selected video and audio; the subtitles are encoded as mov_text, and a new container is written. The new MP4 is therefore not a byte-for-byte copy of the old file. -n refuses to overwrite an existing output.

Here the subtitle text is English, so the language tag is eng. Use the language of the actual subtitles, such as jpn, deu or fra; changing this tag does not translate the text.

The default disposition marks a preferred subtitle track. It does not burn text into the picture, force playback or guarantee that a player will select it. In our installed older build, even an earlier attempt to clear the disposition with 0 read back as default=1 after MP4 muxing. Check the written file and the player instead of treating that option as a reliable “subtitles off” switch.

Verify the output before sharing it

ffprobe -v error -show_entries stream=index,codec_type,codec_name:stream_tags=language:stream_disposition=default,forced:format=duration -of json "family-captioned.mp4"

Look for a subtitle stream with codec_name of mov_text, the intended language, and the expected video and audio tracks. Compare the overall duration with the source. Stream information can confirm the presence of a track; it cannot confirm readable characters or synchronization with speech.

Open the output in the actual receiving player. Select the subtitle track, then turn it off again. Check an early cue, a middle cue and the final cue against the recording, including accented or non-Latin characters used in your SRT. Switch through the audio tracks you intended to keep. Do not delete the original MP4 or SRT after this check; see the backup file verification guide for retaining a recoverable source.

If the track exists but the subtitles are wrong

What our generated-file test established

We used a four-second 320×180 H.264 sample with two AAC tracks and two UTF-8 SRT cues. The output retained identical encoded payload hashes for 100 video packets and 174 packets in each audio track. Extracting the new subtitle track back to SRT recovered both texts, including “café”, and their timestamps. The container duration remained 4.024 seconds, and the subtitle was reported as mov_text, language eng, default 1.

The source-file hashes were unchanged, an existing output was protected by -n, and the optional audio map also worked with a generated silent video. These are narrow structural results from FFmpeg N-100410-gcd821c18dc, not a test of VLC’s interface, television support, styled captions or perceptual synchronization.

Sources checked on November 25, 2026: FFmpeg stream selection and output options, ffprobe inspection options, HandBrake subtitle types and output choices, and VideoLAN subtitle controls.