SRT is well-known text file format for subtitles. Below is a simple example of this format:
1
00:05:00,400 --> 00:05:15,300
This is an example of
a subtitle.
2
00:05:16,400 --> 00:05:25,300
This is an example of
a subtitle - 2nd subtitle.
Sometimes, unfortunately, a downloaded subtitle file isn't in sync with the purchased movie. How would one write a simple utility in C# that applies a time shift to an existing subtitle file?
The following .NET 8 console application demonstrates a minimal working version to applies a time shift on an .srt file: