Fixed subtitles being always disabled

This commit is contained in:
N00MKRAD
2021-03-25 18:57:29 +01:00
parent 664e35628b
commit cf7f4fe676
3 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<Costura>
<Costura IncludeDebugSymbols='false' />
<Costura DisableCompression='false' />
</Costura>
</Weavers>

View File

@@ -201,7 +201,7 @@ namespace Flowframes.Media
if (!enableAudio)
audioArgs = "-an";
if (!enableSubs || (enableSubs && Utils.ContainerSupportsSubs(containerExt)))
if (!enableSubs || (enableSubs && !Utils.ContainerSupportsSubs(containerExt)))
subArgs = "-sn";
string mkvFix = I.current.outMode == I.OutMode.VidMkv ? "-max_interleave_delta 0" : ""; // https://www.reddit.com/r/ffmpeg/comments/efddfs/starting_new_cluster_due_to_timestamp/

View File

@@ -35,6 +35,7 @@ namespace Flowframes
public static async Task ConcatVideos(string concatFile, string outPath, int looptimes = -1)
{
Logger.Log($"ConcatVideos('{Path.GetFileName(concatFile)}', '{outPath}', {looptimes})", true, false, "ffmpeg");
Logger.Log($"Merging videos...", false, Logger.GetLastLine().Contains("frame"));
string loopStr = (looptimes > 0) ? $"-stream_loop {looptimes}" : "";
string vfrFilename = Path.GetFileName(concatFile);