mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-23 19:59:31 +01:00
Skip muxing from input if input is frames, not a video
This commit is contained in:
@@ -10,6 +10,7 @@ using I = Flowframes.Interpolate;
|
||||
using System.Diagnostics;
|
||||
using Flowframes.Data;
|
||||
using Flowframes.Media;
|
||||
using Microsoft.VisualBasic.Logging;
|
||||
|
||||
namespace Flowframes.Main
|
||||
{
|
||||
@@ -231,6 +232,12 @@ namespace Flowframes.Main
|
||||
|
||||
bool muxFromInput = Config.GetInt("audioSubTransferMode") == 0;
|
||||
|
||||
if (muxFromInput && I.current.inputIsFrames)
|
||||
{
|
||||
Logger.Log("Skipping muxing from input step as there is no input video, only frames.", true);
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
if (muxFromInput)
|
||||
|
||||
@@ -170,7 +170,7 @@ namespace Flowframes.Main
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Logger.Log("Error updating preview: " + e.Message, true);
|
||||
//Logger.Log("Error updating preview: " + e.Message, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -295,7 +295,7 @@ namespace Flowframes.Main
|
||||
return Path.Combine(basePath, Path.GetFileNameWithoutExtension(inPath).StripBadChars().Remove(" ").Trunc(30, false) + "-temp");
|
||||
}
|
||||
|
||||
public static bool InputIsValid(string inDir, string outDir, Fraction fpsOut, float factor, Interpolate.OutMode outMode)
|
||||
public static bool InputIsValid(string inDir, string outDir, Fraction fpsOut, float factor, I.OutMode outMode)
|
||||
{
|
||||
bool passes = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user