-
Notifications
You must be signed in to change notification settings - Fork 913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I use the "Take time from current file" option in Import plain text? #8946
Comments
I only just tried it myself, so feel free to take this with a grain of salt, but: It would also be helpful if you attached a sample of what you're trying to import. |
Ah I see, I was hoping I could get the timecodes and text from just one file, with the timecodes before the start of each line, something like this: 00:01:06.460 --> 00:01:09.983 Hello! Here is text line 1 00:01:09.983 --> 00:01:20.682 Here's the next line. 00:01:20.682 --> 00:01:27.190 This is the third line But it's not too much effort just to create another file and reformat it with just the timecodes I guess. |
It looks like what you have there is some strange form of srt file. I think the simplest solution here is, using your text editor of choice which supports regular expressions (I use EditPad), to perform the following search and replace operation: The result will be this:
And you can just save that as a text file and simply open it in Subtitle Edit, without having to import it. |
That works, thanks! |
Wouldn't it be nice if it had an option to create timestamps from scratch by using the waveform of the video and comparing it to your finished text? I think only YouTube uses this technology at an advanced level. I need it for copyright material so YouTube is not a choice. I've contacted several companies that use AI and they all say they can't do it. |
The best you can do for free is use some flavor of Whisper, and then run the results, along with your finished text, through this: |
So I guess there are some options out there but you need to get into the code/python, etc. Frankly, I will need to take some time to familiarize myself with it. Do you request these prompts through the Google Colab workspace? |
No, no. You can use Whisper in Subtitle Edit and get a file with somewhat accurate timing (or at least better than nothing). That doesn't require interacting with Python directly. Then you need to download the above jar file and run it from the command line as described in this step: |
Thanks for the details. Will give it a shot. |
I don't understand how to format the text file so Subtitle Edit can extract the timestamps.
Whatever I try, the program just has a - for Start time, End time, and Duration:
The text was updated successfully, but these errors were encountered: