mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 00:17:44 +01:00
Fix batch queue not properly loading input files
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user