r/fanedits • Faneditor🏅 • Oct 01 '22

Discussion Automatic Subtitle Script

Hey guys, thought I'd share this script in case it's useful to anyone else. It takes an edit file and the subtitles from your original movie or show, and creates an edited subtitle file that matches your edit.

 

Your edits need to be done in Premiere Pro to use it, although I may make a Davinci Resolve version if there's significant demand. But out of the box the XML that Resolve outputs is a bit different so it won't work with this version.

Basically you export your edit as XML from Premiere, run it through another script I provide to clean it up a bit and fix the buggy Adobe XML, and then give this script that cleaned XML file, along with SRT subtitle files for any movies or episodes you used in your edit.

This script will then go through the XML and figure out which subtitles from the SRT files it needs for your edit, rearrange them in the proper order and adjust their timecodes, and then output a new SRT file just for your edit. It will give you warnings about any subtitles that it isn't sure about - ones that don't fully overlap an audio clip, and you can use the information it gives you to manually check those.

This can be a way to save you time if you forgot to subtitle an edit, or you can use it to make foreign language subtitles for your edit. For example you'd want to make an English subtitle file for your edit, and then based off the manual edits you make to clean up that file, you should be able to make nearly perfect subtitles in other languages. If you delete the subtitle at 02:35:12,056 in the english version, do the same in the spanish and french versions, for instance.

Here's the download link: http://bestedit.net/premiere-pro-automatic-subtitles/

Let me know if you have any problems or anything in the tutorial is unclear.

25 Upvotes

26 comments sorted by

2

u/Heavysyde Feb 16 '23

thanks for this, I've added it to Resources at the top of the sub

2

u/Ben_Jameson Oct 18 '22

For anyone creating TikTok length videos there's https://captok.ai for automatic subtitles. You can also export a CSV of the individual words and timings to use in a custom workflow.

Disclaimer: I'm the creator of CapTok. I'm really interested in custom professional workflows. Let me know if you'd like something for DaVinci or after effects and I'll code something for it

1

u/DyslexicFcuker Jan 27 '23

Hello. I'd like to be your friend.

1

u/Ben_Jameson Mar 08 '23

Hello! Absolutely! I've replied to your dm

1

u/DyslexicFcuker Oct 03 '22

This is so cool! The way I'm editing my movie it's hardcoding the subs, so this might help me solve my problem!

3

u/imunfair Oct 03 '22

Premiere does harcode them by default but there's a setting to change that in the export settings. It will change the quality from the presets to "custom" though, so select the Export > Media preset you want first (Quality: High - Match Source, or whatever), then go to the Captions tab in the export settings, and change it to Sidecar > SRT

1

u/DyslexicFcuker Oct 03 '22

The way I built it, that isn't working. I wanted to be able to easily swap out languages when done, so I made 10 sequences, 1 for each episode. The video, audio, and sub is in 1 sequence, then I drag each of the 10 sequences into a new sequence and edit that.

Being within, it won't export the sidecar like it does when I export from the sequence holding the sub. It's hard-coded or not.

→ More replies (11)

3

u/StromboliBones Oct 02 '22

Bro this is a game changer. Absolutely going to use this to make foreign subs for my Hobbit edit. I'll let you know how it goes!

2

u/Alseid_Temp Oct 02 '22

I, too, would love a DaVinci version of this. I've been thinking of reworking a fanedit I did and finally fulfill my promise of providing subs for languages other than English, and this'd help immensely.

8

u/wotfanedit Oct 01 '22

Please please please tag me if you do a DaVinci Resolve version. It would be an amazing help!

3

u/imunfair Oct 03 '22

I'll try to knock something together this week if I have time. Assuming the XML isn't too different I shouldn't have to rewrite a ton of it, haven't examined it carefully yet.

I may enlist your help for testing if you don't mind, I don't use Resolve very often, so I don't have any edits actually made in it, just imported ones.

1

u/--Kestrel-- Nov 20 '23

Was a davinci version of this script ever made available?

2

u/wotfanedit Oct 03 '22

I have an 8-episode TV series to movie fan edit of The Wheel of Time. There are two places where I cut mid-sentence but the rest should be clean. Also, the original files have subtitles in a ton of languages that I'd love to preserve. Will it work for those?

Looking forward to it!

→ More replies (2)