mirror of
https://github.com/n00mkrad/flowframes.git
synced 2026-07-13 22:09:40 +02:00
Skip muxing if original input video no longer exists at expected path
This commit is contained in:
@@ -173,6 +173,12 @@ namespace Flowframes.Media
|
||||
|
||||
public static async Task MergeStreamsFromInput (string inputVideo, string interpVideo, string tempFolder)
|
||||
{
|
||||
if (!File.Exists(inputVideo))
|
||||
{
|
||||
Logger.Log("Warning: Input video file not found, can't copy audio/subtitle streams to output video!");
|
||||
return;
|
||||
}
|
||||
|
||||
string containerExt = Path.GetExtension(interpVideo);
|
||||
string tempPath = Path.Combine(tempFolder, $"vid{containerExt}");
|
||||
string outPath = Path.Combine(tempFolder, $"muxed{containerExt}");
|
||||
@@ -191,8 +197,6 @@ namespace Flowframes.Media
|
||||
if (!Config.GetBool("keepSubs"))
|
||||
subArgs = "-sn";
|
||||
|
||||
// TODO: Check if movflags faststart is needed here!
|
||||
|
||||
if (QuickSettingsTab.trimEnabled)
|
||||
{
|
||||
string otherStreamsName = $"otherStreams{containerExt}";
|
||||
|
||||
Reference in New Issue
Block a user