Fix fontsize/opaque box in burn-in preview via mpv - thx David :)

This commit is contained in:
niksedk 2023-07-04 16:40:07 +02:00
parent a285ed6003
commit 383ddc0073

View File

@ -1223,6 +1223,11 @@ namespace Nikse.SubtitleEdit.Forms
if (LibMpvDynamic.IsInstalled && Configuration.Settings.General.VideoPlayer == "MPV")
{
var temp = new Subtitle(_assaSubtitle);
if (!_isAssa)
{
SetStyleForNonAssa(temp);
}
FixRightToLeft(temp);
var subFileName = GetAssaFileName(_inputVideoFileName);
FileUtil.WriteAllText(subFileName, new AdvancedSubStationAlpha().ToText(temp, null), new TextEncoding(Encoding.UTF8, "UTF8"));