RasmusBroborg / DotnetTimecode

Dotnet Timecode is a C# class library for working with SMPTE Timecodes defined by the Society of Motion Picture and Television Engineers in the SMPTE 12M specification.
MIT License
8 stars 6 forks source link

[FEATURE] .srt string helper #53

Closed RasmusBroborg closed 1 year ago

RasmusBroborg commented 1 year ago

Description There should be a method in a static manager class which performs an operation where the input is a AsBroadcastScript.cs class and the output is a string formatted as an srt-file.

// Example output should be:

"1
00:00:00:00 --> 00:00:02:01
Here's what I love most
about food and diet.

2
00:00:02:02 --> 00:00:06:14
We all eat several times a day,
and we're totally in charge

3
00:00:06:64 --> 00:00:09:10
of what goes on our plate
and what stays off."

Breakdown:

1 (This is the line number) 00:00:00:00 --> 00:00:02:01 (These are the script lines in and out timecodes) Here's what I love most about food and diet. (This is the script line body)

RasmusBroborg commented 1 year ago

Create a new class in a folder called Managers, classname SrtManager.cs. The class should be static. Create a method called GenerateSrtText(AsBroadcastScript script).

The above will serve as a good baseline for future implementations.. We will refactor this later once the Timecode-class has full support for ms-conversion.

RasmusBroborg commented 1 year ago

This is deemed out of scope for the project. Moved to PostProductionScript