Skip to content

aarshtalati/SubtitlesToClassNotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Subtitles To ClassNotes

Converts standard subtitle files for each chapter of each lesson into a single text file. Version 2 just got released! What's new?

Motivation

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 ...

  1. I was spending too much time in just typing what was being spoken to take my notes so now I can simply copy-paste
  2. 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 )

Assumption

The srt file follows the standard format.

Caveat

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.

Configurations

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

Installation

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

About

Convertes standard subtitle files for each chapter of each lesson into a single text file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages