Testing burn-in with smpte

This commit is contained in:
niksedk 2023-10-20 19:50:31 +02:00
parent 17166821df
commit 1ca6e2c3d9

View File

@ -412,6 +412,15 @@ namespace Nikse.SubtitleEdit.Forms
}
}
if (Configuration.Settings.General.CurrentVideoIsSmpte && (decimal)_videoInfo.FramesPerSecond % 1 != 0)
{
foreach (var assaP in _assaSubtitle.Paragraphs)
{
assaP.StartTime.TotalMilliseconds /= 1.001;
assaP.EndTime.TotalMilliseconds /= 1.001;
}
}
FileUtil.WriteAllText(assaTempFileName, format.ToText(_assaSubtitle, null), new TextEncoding(Encoding.UTF8, "UTF8"));
groupBoxSettings.Enabled = false;