Fix batch queue not properly loading input files

This commit is contained in:
N00MKRAD
2025-02-06 20:38:18 +01:00
parent cd8f93d436
commit 05cb41d818
4 changed files with 7 additions and 7 deletions

View File

@@ -86,7 +86,7 @@ namespace Flowframes
public void InitArgs ()
{
outFps = inFps * (double)interpFactor;
outFps = inFps == null ? new Fraction() : inFps * (double)interpFactor;
outFpsResampled = new Fraction(Config.Get(Config.Key.maxFps));
alpha = false;
stepByStep = false;

View File

@@ -152,7 +152,7 @@ namespace Flowframes.Forms
{
Logger.Log($"BatchForm: Dropped path: '{path}'", true);
InterpSettings current = Program.mainForm.GetCurrentSettings();
InterpSettings current = Program.mainForm.GetCurrentSettings(path);
current.inFpsDetected = await IoUtils.GetFpsFolderOrVideo(path);
current.inFps = current.inFpsDetected;

View File

@@ -307,14 +307,14 @@ namespace Flowframes.Forms.Main
mainTabControl.Update();
}
public InterpSettings GetCurrentSettings()
public InterpSettings GetCurrentSettings(string path = "")
{
SetTab(interpOptsTab.Name);
AiInfo ai = GetAi();
var s = new InterpSettings()
{
inPath = inputTbox.Text.Trim(),
inPath = path.IsNotEmpty() ? path : inputTbox.Text.Trim(),
outPath = outputTbox.Text.Trim(),
ai = ai,
dedupe = Config.GetInt(Config.Key.dedupMode) != 0,

View File

@@ -80,14 +80,14 @@ namespace Flowframes.Main
return;
}
MediaFile mf = new MediaFile(entry.inPath, false);
var mf = new MediaFile(entry.inPath, false);
Interpolate.currentMediaFile = mf;
mf.InputRate = entry.inFps;
await mf.Initialize();
Interpolate.currentMediaFile = mf;
Logger.Log($"Queue: Processing {mf.Name} ({entry.interpFactor}x {entry.ai.NameShort}).");
Program.mainForm.LoadBatchEntry(entry); // Load entry into GUI
Program.mainForm.LoadBatchEntry(entry); // Load entry into GUI
Interpolate.currentSettings = entry;
Program.mainForm.runBtn_Click(null, null);