New autoencode chunk-based saving system for resuming

This commit is contained in:
n00mkrad
2021-09-28 20:44:08 +02:00
parent 8fe9c86429
commit dd03af2616
7 changed files with 73 additions and 9 deletions

View File

@@ -45,6 +45,7 @@ namespace Flowframes.Main
public static async Task MainLoop(string interpFramesPath)
{
AutoEncodeResume.Reset();
debug = Config.GetBool("autoEncDebug", false);
try
@@ -142,11 +143,10 @@ namespace Flowframes.Main
if (Interpolate.canceled) return;
encodedFrameLines.AddRange(frameLinesToEncode);
Logger.Log("[AE] Done Encoding Chunk #" + chunkNo, true, false, "ffmpeg");
lastEncodedFrameNum = (frameLinesToEncode.Last() + 1);
chunkNo++;
AutoEncodeResume.Save();
if(!imgSeq && Config.GetInt(Config.Key.autoEncBackupMode) > 0)
{