21

I have subtitles in .srt file format, and I need to render them on top of video file (prefereably mp4). I have tried handbrake and mediacoder so far, with no luck. What should I do?

2
  • 1
    I don't know about Handbrake features in 2012, but currently it's able to burn-in subtitles
    – janot
    Commented Oct 20, 2015 at 11:53
  • @janot I tried handbrake on ubuntu 20.04 and it can burn subtitles in video, but does not allow to set font color or font or font size or background color (transparent or otherwise), and it prints the html/css srt tags directly in the video; just big white text
    – jmarina
    Commented Oct 20, 2023 at 13:44

4 Answers 4

22

With a recent version of ffmpeg (requires the subtitles to be in a separate file, due to current libavfilter limitations):

ffmpeg -i input.mp4 -filter:v subtitles=subtitle.srt -c:a copy -c:v libx264 -crf 22 -preset veryfast output.mp4

If your SRT subtitles are muxed into an MKV container, you can extract them like this:

ffmpeg -i input.mkv -map 0:s:0 subtitles.srt
3
7

Here are three ways to burn subtitles onto video:
http://blogs.princeton.edu/hrc/2011/01/three_ways_to_burn_subtitles_into_a_video_avi_file.html

  1. You must use or convert to an AVI file

  2. The subtitle file (.srt) must be named the same exact name as the video file (AVI)

  3. The video file and the subtitle (.srt) file should reside in the same folder.

I will link to the first method I discovered in June: https://blogs.princeton.edu/hrc/2010/06/how_to_burn_subtitles_into_a_video_file.html

The second method I used requires a Mac that has Toast Titanium. You will then have to download a free program called Perian: http://www.perian.org/ (make sure you have the latest version of both programs.

Method 2 (Mac): Using Toast Titanium (not free) with Perian (free)

  1. Open Perian and keep Perian open before and while you either burn a DVD using Toast Titanium or burn a ISO (which is what I did). To see if Perian is doing it's job, open the AVI file in VLC (VideoLan Client) and see if subtitles show up (you can also check in Quicktime) when you play the video. If they do, you are ready to use Toast to burn the subtitles into the file.

  2. Open Toast and choose DVD. Drop the AVI file into the space to burn. Don't drop the srt file, but make sure the srt file is in the SAME folder as the AVI video file. If you drop the srt file in Toast you will get an error, but Perian will work it's magic and burn the subtitles into the video, so no need to worry.

  3. Choose either burn to DVD or Disc Image (Disc Image is at the bottom of the window where you dropped the video file into).

  4. Burn the video. You will now either have an ISO or a burned DVD. The files will now be in a DVD structure (VOBs, etc). You can now use Handbrake to rip the ISO or DVD to convert the video into another format (like mp4).

*Note: My subtitles did get cut off when I converted the video into an mp4 using Handbrake, not sure why.

Method 3 (Windows): Any Video Converter (AVC-free)

  1. Download and install AVC http://www.any-video-converter.com/products/for_video_free/.

  2. Make sure your AVI and .srt files are in the same folder. For AVC, if you have an mp4, you can actually load the mp4 and not have to convert it into an AVI file before burning the subtitles into the file.

  3. Drag and drop the video file into AVC.

  4. For Output file, choose Customized AVI Movie (*.avi)

  5. Highlight the file (by clicking on it) and under audio options (scroll to bottom) click on the drop down menu next to Subtitle.

  6. The .srt file should appear in the drop down if the video file and the srt file are in the same folder. Choose the correct srt fie.

  7. Choose the rest of your settings for the AVI and click Convert at the top of the program screen.

I hope this helps :-). Here are a few sources I used to figure these steps out and find these resources:

http://www.mac-forums.com/forums/os-x-applications-games/101010-how-burn-avi-srt-files-toast.html

http://www.any-video-converter.com/add-srt-subtitle-to-output-video.php

http://forums.support.roxio.com/topic/35597-adding-srt-files-to-dvd/

1
  • Please, remove the method 3. AVC free doesn't let you convert anything and prompt a screen to buy the ultimate version. Commented Nov 18, 2014 at 19:59
3

Freemake would be my best choice. It gives you great flexibility and also enables you to add subtitles to your video also. There is a variety of codecs and formats available for your testing. Just give a try , after all its free na ? Here is the Link.

`.freemake: Free Video Converter with Subtitles Support

Convert DVD, MKV, MOV with embedded subtitles to any video format or device for free. Add SSA/SRT/ASS external subtitles to any video with our free video converter.`

says so in the official site.And they also says,

.freemake: Fastest Video Converter with CUDA and DXVA

Freemake is the only free video converter that features integrated both CUDA and DXVA technologies for the fastest ever video conversion and less CPU usage. The software automatically detects the optimal conversion parameters and switches on/off CUDA and DXVA for better conversion results.

2

I've just discovered Subler, which makes it super easy to add subtitles to an existing m4v file, and then burn that.

1
  • sadly subler is mac only.
    – wischi
    Commented Nov 2, 2020 at 18:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.