tmoroney / auto-subs

Generate subtitles using OpenAI Whisper in Davinci Resolve editing software.
https://tom-moroney.com/auto-subs/
MIT License
594 stars 35 forks source link

Splitting Captions Over Multiple Lines #106

Open lpar105 opened 1 week ago

lpar105 commented 1 week ago

Hi all,

I've been using this tool to generate subtitles but came across a use case where I wanted to be able to split my subtitles over multiple lines.

"This is a very long subtitle line"

Becomes

"This is a very long subtitle line"

Which is useful for emulating this kind of subtitle style: https://www.youtube.com/@PirateSoftware/shorts

I've added a function to the code to split this for me past a certain character length.

I'm not sure how niche this desire is... but if there is interest I'd be happy to clean it up, add the hard-coded values to be more flexible in the UI and share here.

HEXW1N2 commented 1 week ago

This would be amazing. I have had to do this manually, but this would save so much time