Converts standard subtitle files for each chapter of each lesson into a single text file. Version 2 just got released! What's new?
So, I was looking at some online course, which come with subtitles. The website had a straighforward way to download the course video files and subtitle files (*.srt).
I noticed that ...
- I was spending too much time in just typing what was being spoken to take my notes so now I can simply copy-paste
- Sometimes had to shuffle to multiple videos if I was looking for something in particular to refresh my memory so now I can open the text file and simply search to pin point the corresponding video clip in the course videos
Another positive side effect is it let's the student set the offsets of subtitles ( I actually, developed this capability to fine tune a French movie I was watching and the only English subtitle were little off from what was being spoken )
The srt file follows the standard format.
Later it was found that not all srt files were formatted exactly the same way, and the program would not be able to match the pattern. Hence, more Regular Expressions were later added for other known variants.
Variable | Function |
---|---|
basePath | This is valid root directory path string the where you've extracted your zip file containing subtitle dir and/or files |
condensed | Could be True or False ( boolean ) |
verboseLogging | Controls if you want to include tracing information related to Regualar Expressions ( boolean ) |
ignoreWarnings | Controls if you want to surpress warnings related to Regualar Expressions ( boolean ) |
outputFullFileName | Controls where to save output file (absolute path) Default: Notes.txt in present working dir |
In v2.0 release, this application converted to .NET Core from .NET Framework. The legacy code is no longer actively being maintained. v1.0 can be accessed from release tab or from legacy branch.
To install .NET core, go to https://www.microsoft.com/net/learn/get-started/
Commands:
$ git clone https://github.com/ablaze8/SubtitlesToClassNotes.git
$ cd SubtitlesToClassNotes
$ dotnet build
$ dotnet run