I want to export subtitles without the code

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline
User avatar

Edwin Street

  • Posts: 175
  • Joined: Fri Sep 29, 2017 8:10 pm
  • Location: Melbourne, Australia

I want to export subtitles without the code

PostFri Sep 18, 2020 4:57 am

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>
M2 Pro Mac mini, 16GB RAM, Studio 19
Offline
User avatar

Uli Plank

  • Posts: 25476
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: I want to export subtitles without the code

PostFri Sep 18, 2020 10:49 am

SRT without formatting (the second option) might help a bit.
My disaster protection: export a .drp file to a physically separated storage regularly.
www.digitalproduction.com

Studio 19.1.3
MacOS 13.7.4, 2017 iMac, 32 GB, Radeon Pro 580 + eGPU
MacBook M1 Pro, 16 GPU cores, 32 GB RAM, MacOS 14.7.2
SE, USM G3
Offline
User avatar

iddos-l

  • Posts: 803
  • Joined: Sat Mar 30, 2019 7:55 pm
  • Real Name: iddo lahman

Re: I want to export subtitles without the code

PostFri Sep 18, 2020 11:14 am

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
Offline
User avatar

TheBloke

  • Posts: 1905
  • Joined: Sat Nov 02, 2019 11:49 pm
  • Location: UK
  • Real Name: Tom Jobbins

Re: I want to export subtitles without the code

PostFri Sep 18, 2020 11:59 am

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.
Resolve Studio 17.4.3 and Fusion Studio 17.4.3 on macOS 11.6.1

Hackintosh:: X299, Intel i9-10980XE, 128GB DDR4, AMD 6900XT 16GB
Monitors: 1 x 3840x2160 & 3 x 1920x1200
Disk: 2TB NVMe + 4TB RAID0 NVMe; NAS: 36TB RAID6
BMD Speed Editor
Offline
User avatar

Edwin Street

  • Posts: 175
  • Joined: Fri Sep 29, 2017 8:10 pm
  • Location: Melbourne, Australia

Re: I want to export subtitles without the code

PostFri Sep 18, 2020 1:17 pm

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
M2 Pro Mac mini, 16GB RAM, Studio 19
Offline

AntoineBurgos

  • Posts: 1
  • Joined: Sun May 11, 2025 2:07 pm
  • Real Name: Antoine Burgos

Re: I want to export subtitles without the code

PostSun May 11, 2025 2:12 pm

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
Offline
User avatar

Edwin Street

  • Posts: 175
  • Joined: Fri Sep 29, 2017 8:10 pm
  • Location: Melbourne, Australia

Re: I want to export subtitles without the code

PostSat May 17, 2025 6:33 am

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
M2 Pro Mac mini, 16GB RAM, Studio 19
Offline

jhoepffner

  • Posts: 217
  • Joined: Wed Sep 05, 2018 9:43 am
  • Location: Paris
  • Real Name: Jacques Hoepffner

Re: I want to export subtitles without the code

PostSat May 17, 2025 9:11 am

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
W10 Ryzen7 3800X nVidia 3090 RAM 64 DVR-Fusion Studio 20b3 SSD 2To raid0 32To (HD) raid0 8To (SSD)
MSI G65 W10 / RAM 32 nVidia 1070 Intel Core i7-8750H DVR Studio 19.0.1
MBP 15" (2012) OS 10.14.6 RAM 16 nVidia 650M Intell i7 DVR Studio 17.4

Return to DaVinci Resolve

Who is online

Users browsing this forum: Alan Dater, Bing [Bot], EditWiz, panos_mts, Steve Alexander, tim.wiesner and 310 guests