Convert all text filters from timeline clips to soft subtitles

I’m usually adding a bunch of text:simple comments throughout my travel videos to add context and info on the current clip and I realised 99% of them could be replaced by a separate subtitle so the original video can remain “clean”.

I tried starting using the subtitle feature but I do so much trimming and moving around that it’s very counterproductive to try to keep them in sync.

So I think a script that just goes through all the text filters and adds the text as a subtitle (taking into consideration the in/out points) then disables the original text filters would be useful for many people. I’m talking basic .srt style subs for this suggestion (as in: not advanced .ssa style that also convert formatting and position).

I used chatgpt to create a python script to do this by parsing the .mlt file, it worked fine for my project after a bit of back and forth and some fixes. There’s still some small (like 0.1s after 30mins) issues with the timing on very long timelines but I couldn’t get that fixed in a reasonable amount of time so I gave up.

Here’s the files if anyone else wants to do this:

shotcut_disable_all_text_filters_v1.py.txt (1.7 KB)
shotcut_mlt_text_to_srt_v3.py.txt (5.9 KB)

Last week i learned that with pressed Control-Key you can select and move multiple Subtitles together. Also i create subtitles only at the very end of each project

Yep, this is the important thing, I just create them as I’m editing - basically just writing down my thoughts.

1 Like