public static async Task CreateOutputVid() { if (IoUtils.GetAmountOfFiles(current.interpFolder, false) < 2) { if (Config.GetBool(Config.Key.sbsRunPreviousStepIfNeeded)) { Logger.Log($"There are no interpolated frames to export - Running interpolation step first..."); await InterpolateStep(); } if (IoUtils.GetAmountOfFiles(current.interpFolder, false) < 2) { Cancel($"There are no interpolated frames to encode!\n\nDid you delete the folder?"); return; } } if (!(await InterpolateUtils.CheckEncoderValid())) { return; } string[] outFrames = IoUtils.GetFilesSorted(current.interpFolder, current.interpExt); if (outFrames.Length > 0 && !IoUtils.CheckImageValid(outFrames[0])) { UiUtils.ShowMessageBox("Invalid frame files detected!\n\nIf you used Auto-Encode, this is normal, and you don't need to run " + "this step as the video was already created in the \"Interpolate\" step.", UiUtils.MessageType.Error); return; } await Export.ExportFrames(current.interpFolder, current.outPath, current.outMode, true); }