Add additional common profile presets

This commit is contained in:
Martijn van Berkel (Flitskikker) 2019-12-10 23:05:44 +01:00
parent 8475e06579
commit 580efbe28e

View File

@ -939,7 +939,21 @@ $HorzAlign = Center
SubtitleMinimumDisplayMilliseconds = 833,
SubtitleMaximumWordsPerMinute = 300,
CpsIncludesSpace = true,
MinimumMillisecondsBetweenLines = 84, // 2 frames for 23.97 videos
MinimumMillisecondsBetweenLines = 84, // 2 frames for 23.976 fps videos
});
profiles.Add(new RulesProfile
{
Name = "Netflix (Other languages)",
SubtitleLineMaximumLength = 42,
MaxNumberOfLines = 2,
MergeLinesShorterThan = 42,
SubtitleMaximumCharactersPerSeconds = 17,
SubtitleOptimalCharactersPerSeconds = 12,
SubtitleMaximumDisplayMilliseconds = 7000,
SubtitleMinimumDisplayMilliseconds = 833,
SubtitleMaximumWordsPerMinute = 200,
CpsIncludesSpace = true,
MinimumMillisecondsBetweenLines = 84, // 2 frames for 23.976 fps videos
});
profiles.Add(new RulesProfile
{
@ -955,6 +969,174 @@ $HorzAlign = Center
CpsIncludesSpace = true,
MinimumMillisecondsBetweenLines = 200, // 5 frames for 25 fps videos
});
profiles.Add(new RulesProfile
{
Name = "Dutch professional subtitles (23.976/24 fps)",
SubtitleLineMaximumLength = 42,
MaxNumberOfLines = 2,
MergeLinesShorterThan = 37,
SubtitleMaximumCharactersPerSeconds = 15,
SubtitleOptimalCharactersPerSeconds = 11,
SubtitleMaximumDisplayMilliseconds = 7007,
SubtitleMinimumDisplayMilliseconds = 1400,
SubtitleMaximumWordsPerMinute = 180,
CpsIncludesSpace = true,
MinimumMillisecondsBetweenLines = 125,
});
profiles.Add(new RulesProfile
{
Name = "Dutch professional subtitles (25 fps)",
SubtitleLineMaximumLength = 42,
MaxNumberOfLines = 2,
MergeLinesShorterThan = 37,
SubtitleMaximumCharactersPerSeconds = 15,
SubtitleOptimalCharactersPerSeconds = 11,
SubtitleMaximumDisplayMilliseconds = 7000,
SubtitleMinimumDisplayMilliseconds = 1400,
SubtitleMaximumWordsPerMinute = 180,
CpsIncludesSpace = true,
MinimumMillisecondsBetweenLines = 120,
});
profiles.Add(new RulesProfile
{
Name = "Dutch fansubs (23.976/24 fps)",
SubtitleLineMaximumLength = 45,
MaxNumberOfLines = 2,
MergeLinesShorterThan = 40,
SubtitleMaximumCharactersPerSeconds = 22.5m,
SubtitleOptimalCharactersPerSeconds = 12,
SubtitleMaximumDisplayMilliseconds = 7007,
SubtitleMinimumDisplayMilliseconds = 1200,
SubtitleMaximumWordsPerMinute = 240,
CpsIncludesSpace = true,
MinimumMillisecondsBetweenLines = 125,
});
profiles.Add(new RulesProfile
{
Name = "Dutch fansubs (25 fps)",
SubtitleLineMaximumLength = 45,
MaxNumberOfLines = 2,
MergeLinesShorterThan = 40,
SubtitleMaximumCharactersPerSeconds = 22.5m,
SubtitleOptimalCharactersPerSeconds = 12,
SubtitleMaximumDisplayMilliseconds = 7000,
SubtitleMinimumDisplayMilliseconds = 1200,
SubtitleMaximumWordsPerMinute = 240,
CpsIncludesSpace = true,
MinimumMillisecondsBetweenLines = 120,
});
profiles.Add(new RulesProfile
{
Name = "Danish professional subtitles (23.976/24 fps)",
SubtitleLineMaximumLength = 40,
MaxNumberOfLines = 2,
MergeLinesShorterThan = 40,
SubtitleMaximumCharactersPerSeconds = 15,
SubtitleOptimalCharactersPerSeconds = 10,
SubtitleMaximumDisplayMilliseconds = 8008,
SubtitleMinimumDisplayMilliseconds = 2002,
SubtitleMaximumWordsPerMinute = 180,
CpsIncludesSpace = true,
MinimumMillisecondsBetweenLines = 125,
});
profiles.Add(new RulesProfile
{
Name = "Danish professional subtitles (25 fps)",
SubtitleLineMaximumLength = 40,
MaxNumberOfLines = 2,
MergeLinesShorterThan = 40,
SubtitleMaximumCharactersPerSeconds = 15,
SubtitleOptimalCharactersPerSeconds = 10,
SubtitleMaximumDisplayMilliseconds = 8000,
SubtitleMinimumDisplayMilliseconds = 2000,
SubtitleMaximumWordsPerMinute = 180,
CpsIncludesSpace = true,
MinimumMillisecondsBetweenLines = 120,
});
profiles.Add(new RulesProfile
{
Name = "SW2 (French) (23.976/24 fps)",
SubtitleLineMaximumLength = 40,
MaxNumberOfLines = 2,
MergeLinesShorterThan = 37,
SubtitleMaximumCharactersPerSeconds = 25,
SubtitleOptimalCharactersPerSeconds = 18,
SubtitleMaximumDisplayMilliseconds = 5005,
SubtitleMinimumDisplayMilliseconds = 792,
SubtitleMaximumWordsPerMinute = 300,
CpsIncludesSpace = true,
MinimumMillisecondsBetweenLines = 125,
});
profiles.Add(new RulesProfile
{
Name = "SW2 (French) (25 fps)",
SubtitleLineMaximumLength = 40,
MaxNumberOfLines = 2,
MergeLinesShorterThan = 37,
SubtitleMaximumCharactersPerSeconds = 25,
SubtitleOptimalCharactersPerSeconds = 18,
SubtitleMaximumDisplayMilliseconds = 5000,
SubtitleMinimumDisplayMilliseconds = 800,
SubtitleMaximumWordsPerMinute = 300,
CpsIncludesSpace = true,
MinimumMillisecondsBetweenLines = 120,
});
profiles.Add(new RulesProfile
{
Name = "SW3 (French) (23.976/24 fps)",
SubtitleLineMaximumLength = 40,
MaxNumberOfLines = 2,
MergeLinesShorterThan = 37,
SubtitleMaximumCharactersPerSeconds = 25,
SubtitleOptimalCharactersPerSeconds = 18,
SubtitleMaximumDisplayMilliseconds = 5005,
SubtitleMinimumDisplayMilliseconds = 792,
SubtitleMaximumWordsPerMinute = 300,
CpsIncludesSpace = true,
MinimumMillisecondsBetweenLines = 167,
});
profiles.Add(new RulesProfile
{
Name = "SW3 (French) (25 fps)",
SubtitleLineMaximumLength = 40,
MaxNumberOfLines = 2,
MergeLinesShorterThan = 37,
SubtitleMaximumCharactersPerSeconds = 25,
SubtitleOptimalCharactersPerSeconds = 18,
SubtitleMaximumDisplayMilliseconds = 5000,
SubtitleMinimumDisplayMilliseconds = 800,
SubtitleMaximumWordsPerMinute = 300,
CpsIncludesSpace = true,
MinimumMillisecondsBetweenLines = 160,
});
profiles.Add(new RulesProfile
{
Name = "SW4 (French) (23.976/24 fps)",
SubtitleLineMaximumLength = 40,
MaxNumberOfLines = 2,
MergeLinesShorterThan = 37,
SubtitleMaximumCharactersPerSeconds = 25,
SubtitleOptimalCharactersPerSeconds = 18,
SubtitleMaximumDisplayMilliseconds = 5005,
SubtitleMinimumDisplayMilliseconds = 792,
SubtitleMaximumWordsPerMinute = 300,
CpsIncludesSpace = true,
MinimumMillisecondsBetweenLines = 250,
});
profiles.Add(new RulesProfile
{
Name = "SW4 (French) (25 fps)",
SubtitleLineMaximumLength = 40,
MaxNumberOfLines = 2,
MergeLinesShorterThan = 37,
SubtitleMaximumCharactersPerSeconds = 25,
SubtitleOptimalCharactersPerSeconds = 18,
SubtitleMaximumDisplayMilliseconds = 5000,
SubtitleMinimumDisplayMilliseconds = 800,
SubtitleMaximumWordsPerMinute = 300,
CpsIncludesSpace = true,
MinimumMillisecondsBetweenLines = 240,
});
}
}