Page 1 of 1

I want to export subtitles without the code

PostPosted: Fri Sep 18, 2020 4:57 am
by Edwin Street
Is there a way to export subtitles, just the words? ...and not the code that comes with an SRT file.

I'm trying to make a word document of a speech my Grandfather did and it's taking me forever to reformat the SRT file to delete all the code.

For example, I just want the words in bold and not the rest. This is the first of 295 seperate subtitle lines.

1
00:00:07,133 --> 00:00:10,833
<b><font color='#ffd109'>- It was ninety one years ago, today</font></b>

Re: I want to export subtitles without the code

PostPosted: Fri Sep 18, 2020 10:49 am
by Uli Plank
SRT without formatting (the second option) might help a bit.

Re: I want to export subtitles without the code

PostPosted: Fri Sep 18, 2020 11:14 am
by iddos-l
You need only the words that are in bold parsed from srt file?
Did I understand correctly?
Some basic regex should do it.
Can you share the file?
What platform are you on? Mac Linux, Windows?



Sent from my iPhone using Tapatalk

Re: I want to export subtitles without the code

PostPosted: Fri Sep 18, 2020 11:59 am
by TheBloke
Edwin Street wrote:Is there a way to export subtitles, just the words? ...and not the code that comes with an SRT file.

I'm trying to make a word document of a speech my Grandfather did and it's taking me forever to reformat the SRT file to delete all the code.

For example, I just want the words in bold and not the rest. This is the first of 295 seperate subtitle lines.

1
00:00:07,133 --> 00:00:10,833
<b><font color='#ffd109'>- It was ninety one years ago, today</font></b>
I did an example Regex that I hope will work, at least assuming all the lines of text match that format.

Go to this url: https://regex101.com/r/B1Lvwy/3

You will see the following:
Image

In the Test String box, paste your full SRT file

In the Substitution box, you will hopefully get your lines output, one line per subtitle.

If the full file format differs from the input, you might not get the exact right results. In which case, post the full file somewhere and I can have another look. To share the full file, you could:
a. Upload it here, in a ZIP file
b. Paste it into PasteBin.com and share the link
c. Paste it into the TEST STRING box of the RegEx parser I linked above, then click Update Regex in the top left, and share the resulting link.

Re: I want to export subtitles without the code

PostPosted: Fri Sep 18, 2020 1:17 pm
by Edwin Street
Guys, to be honest I was kinda in a hurry so ended up removing all the code manually. It took a bit of time, but I was able to get it to where it needed to be on time.

TheBloke, thank you so much for making this. I'll be using it in the future when I need to convert another SRT file. I tested it out with my current one and it worked really well. There were a few stray lines of code here and there but 90% of it was exactly what I needed and would have been so much easier copying and pasting into Word.

I won't share the SRT file because I've finished working on it and it's kinda personal for the family but thanks again. :D

Re: I want to export subtitles without the code

PostPosted: Sun May 11, 2025 2:12 pm
by AntoineBurgos
Hello there, here comes your solution for the very same issue I just solveed thanks to a youtube video I'm not allowed to post, apparently:

1-On your Edit/Cut page, click on File/Export/Subtitle
2-On the window, select SRT Without formating (*.srt)

Hope it will help for further users with the same issue,
Take care everybody !
Antoine

Re: I want to export subtitles without the code

PostPosted: Sat May 17, 2025 6:33 am
by Edwin Street
Your method still doesn't work using Resolve v19, I tried it.

Exporting a .srt file and selecting "Without Formatting" still exports a .srt file with formatting. This might be a bug in Resolve. When I open the .srt file in TextEdit on my Mac all the formatting is still there.

I know this is a very old post but the problem remains. You still need to use an external program like:

https://subtitletools.com/convert-subti ... ext-online

Re: I want to export subtitles without the code

PostPosted: Sat May 17, 2025 9:11 am
by jhoepffner
Hello,
Formating is not about "code", but about tags for letter formating, as <b>bold</b> for bold.
What you need to supress is numbering and timecode lines.
With the free great software Subtitle Edit (only Windows:-(, you can open your .srt and export it without timecode
https://www.nikse.dk/subtitleedit
– File/Open yourfile.srt
– File/export/Plain text… choose Encoding : UTF-8 with BOM and choose other options
Save with .txt suffix
open in your favorite text editor, save as your favorite text format.
Jacques