​​ ​

The Apple Support Community will permanently close on November 20, 2026. Starting today, the site will no longer accept new posts and is available in a read-only state.


You can continue to find trusted guidance and support on the official Apple Support site. 


We want to thank the community members who have contributed their time and expertise to help others with their Apple products.


How to use SRT file with MP4

I want to use soft subtitles with video so I still have the option to play them without subtitles if I wish. How can I enable QuickTime Player to play MP4 with soft subtitles SRT extension? I can play AVI with subtitles in QuickTime (QT doesn't have codecs for AVI, duh, but I installed Perian to overcome that weakness). I can export the MP4 as AVI, but when I do, the result looks terrible. It seems QuickTime cannot correctly export MP4 to AVI. I can play MP4 with SRT subtitles in VLC Player, but the subtitles don't have decent shading to make them readable, like they do in QuickTime Player. Because of that, I want to find a solution for using MP4 with SRT in QuickTime Player. Any suggestions?

three Macs, Mac OS X (10.4.11)

Posted on Aug 14, 2009 8:03 AM

52 replies

Jun 25, 2015 11:14 PM in response to Moof666

I realize this post is ancient, but apparently people still find it relevant.

The easiest approach imo. is to use ffmpeg, which you can install via homebrew (brew install ffmpeg) or through some other means.


To embed a srt ("softsub") file into an mp4 container so that QuickTime Player can use it, run the following command:

ffmpeg -i video.mp4 -i sub.srt -c:v copy -c:a copy -c:s mov_text -metadata:s:s:0 language=eng out.mp4


video.mp4
is your source video clip.

sub.srt
is your subrip subtitle file.

eng
is the language the subtitle will be tagged with, and consequently listed as in Quicktime's subtitle menu. If the sub is in another language, specify that language instead (e.g. fra, ger, rus ..)

out.mp4
is the name of the target file that will contain the combined three streams (video, audio and subtitle).


This procedure is completely lossless, so you retain full quality of all three streams.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to use SRT file with MP4

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.