mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 14:32:35 +01:00
Fix for two pass encoding when burn-in subs - thx Nounours :)
This commit is contained in:
parent
7893582811
commit
b3465261ef
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user