Movie subtitles (*.SRT)

From Audacity Wiki
Jump to: navigation, search
Audacity does not yet directly support movie subtitle files (*.srt). This page explains the use case for *.srt support in Audacity and offers a tool to convert an .srt file to and from a .txt file which can display the subtitles as Audacity labels.


Use Case

You can already use Audacity's labels feature to read or write subtitles (such as translations, transcriptions or comments) for a movie audio track. Use the current Audacity and add the optional FFmpeg library to your computer. This will allow you to import the audio from a video file such as AVI or MPEG, or from a VOB file from an unencrypted DVD. Then convert your .srt file to .txt using the converter below and choose File > Import > Labels to import the .txt file.

You can also use movie subtitles in Audacity to record your own dubbing of the subtitles and then mix your voice into the movie audio track.

Unfortunately the layout of timings and text in .srt subtitle files is slightly different to that used in the .txt files for Audacity labels. It would be easier if you could directly import and export .srt files instead of having to convert them to .txt to import them into Audacity, then convert them back to .srt for use in a video player. Other features suggested in Proposal Transcription Editor would also improve the experience of working with subtitles in Audacity, such as:

  • A movie window synchronised with the audio track
  • A way of nudging labels along with a shortcut in order to position them accurately
  • Text-to-Speech (TTS) support in Audacity would allow a synthesized voice to read or record the subtitles automatically.


Spreadsheet tool to convert between .srt and .txt

>> Download: Audacity Labels (TXT) Subtitles (SRT, SBV) Convertor.xls (88.5 kB); Forum location: Spoken movie subtitles?

Supported formats: Audacity Labels (TXT), Movie SubRip Subtitles (SRT), YouTube Captions (SBV)

It is an .xls (Microsoft Excel) file with a single sheet and two macros. To open it you have to install a spreadsheet application such as Microsoft Excel or OpenOffice.org.

Opening the Convertor

After opening the .xls file you may have to give authorisation for the macros to run. To do this you can just enable macros at the security prompt (menu bar or popup window) or better could be to mark the signed publisher (mederi) as a trusted source. Marking as "trusted" will remove any further prompts when you re-open the file. You can also either reduce the default security level for all documents (not recommended) in the spreadsheet tool's options, or add the location (folder) you are opening the file from in a list of trusted locations.

Converting Subtitles.srt to Labels.txt and vice versa

Follow the simple instructions in the file. There is an example of .srt format subtitles in the first column on the left.

To convert the movie subtitle file (*.srt) content to Audacity label file (*.txt) format:

  1. Press the SRT to TXT >> button - the converted content will appear in the three columns on the right
  2. CTRL + C to copy
  3. Open a text editor that supports Unicode or UTF-8 like Notepad++
  4. CTRL + V to paste the content in
  5. Save the file in UTF-8 or Unicode encoding with .txt extension.
If you use Microsoft Notepad (included with Windows) to save the file, be sure to use File > Save As and choose UTF-8 or a Unicode encoding. If you just File > Save, the file will be encoded in ANSI. This will result in Audacity not being able to open the saved file properly if it contains other than English characters.


Converting from .txt to .srt after exporting the labels.txt file from Audacity is similar:

  1. Open labels.txt in the text editor
  2. CTRL + A followed by CTRL + C
  3. Open the .xls file
  4. Click in column G of row 4 and CTRL + V to paste into the three columns on the right
  5. Press TXT to << SRT to place the result in the single column on the left
  6. Now you can copy this content, paste it into your text editor and save it with .srt extension (ANSI encoding should be fine).
Personal tools