From dbe3468f2d104f77eafcd8bfa7f6d7e9b77b7fb6 Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Mon, 7 Jun 2021 20:39:51 +0200 Subject: [PATCH] Config key for backup muxing --- Code/IO/Config.cs | 1 + Code/Main/CreateVideo.cs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Code/IO/Config.cs b/Code/IO/Config.cs index 1b43227..7afea8e 100644 --- a/Code/IO/Config.cs +++ b/Code/IO/Config.cs @@ -284,6 +284,7 @@ namespace Flowframes.IO allowSymlinkEncoding, allowSymlinkImport, autoDedupFrames, + autoEncBackup, autoEncDebug, autoEncMode, autoEncSafeBufferFlavrCuda, diff --git a/Code/Main/CreateVideo.cs b/Code/Main/CreateVideo.cs index 3e5c28c..a146463 100644 --- a/Code/Main/CreateVideo.cs +++ b/Code/Main/CreateVideo.cs @@ -163,6 +163,9 @@ namespace Flowframes.Main public static async Task ChunksToVideos(string tempFolder, string chunksFolder, string baseOutPath, bool isBackup = false) { + if (isBackup && !Config.GetBool(Config.Key.autoEncBackup)) + return; + if (IOUtils.GetAmountOfFiles(chunksFolder, true, "*" + FFmpegUtils.GetExt(I.current.outMode)) < 1) { I.Cancel("No video chunks found - An error must have occured during chunk encoding!", AiProcess.hasShownError);