Skip to content

iivmok/srtlib.net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

srtlib.net

A set of C#/.NET APIs for:

  • Reading .srt files
  • Modifying times
  • Writing .srt files
  • Getting subtitles at a specific time.

Usage

var srt = new SRTFile("test.srt");
var time = new TimeSpan(1, 45, 10);
var subtitles = srt.GetSubtitlesAt(time); //Subtitles that should be displayed at 1:45:10
srt.Multiply(0.95904); //23.976 -> 25.000 fps
srt.Subtitles[0].Text = "hello, world!";
srt.WriteToFile("test2.srt");

About

A C# library for working with SubRip (.srt) file format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages