diff --git a/Code/Media/FfmpegAudioAndMetadata.cs b/Code/Media/FfmpegAudioAndMetadata.cs index f686198..6d572d7 100644 --- a/Code/Media/FfmpegAudioAndMetadata.cs +++ b/Code/Media/FfmpegAudioAndMetadata.cs @@ -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}";