Fix for two pass encoding when burn-in subs - thx Nounours :)

This commit is contained in:
niksedk 2023-10-30 19:14:33 +01:00
parent 7893582811
commit b3465261ef

View File

@ -183,7 +183,9 @@ namespace Nikse.SubtitleEdit.Logic
if (pass == "1")
{
outputVideoFileName = Configuration.IsRunningOnWindows ? "-f null NUL" : "-f null /dev/null";
var ext = Path.GetExtension(outputVideoFileName.Trim('"')).ToLowerInvariant().TrimStart('.');
var outputType = ext == "mkv" ? "matroska" : ext;
outputVideoFileName = Configuration.IsRunningOnWindows ? $"-f {outputType} NUL" : "-f mp4 /dev/null";
}
}