Frame sequence import now ignores invalid files

This commit is contained in:
N00MKRAD
2021-05-19 16:18:24 +02:00
parent 607bbc6ae2
commit fed3312713
5 changed files with 50 additions and 23 deletions

View File

@@ -32,7 +32,10 @@ namespace Flowframes.Media
if (Config.GetBool(Config.Key.allowSymlinkEncoding, true) && Symlinks.SymlinksAllowed())
{
if (await Symlinks.MakeSymlinksForEncode(framesFile, linksDir, Padding.interpFrames))
inArg = $"-i {Path.GetFileName(framesFile) + Paths.symlinksSuffix}/%{Padding.interpFrames}d.png";
{
string ext = Path.GetExtension(File.ReadAllLines(framesFile).FirstOrDefault()).Remove("'");
inArg = $"-i \"{linksDir}/%{Padding.interpFrames}d{ext}\"";
}
}
string extraArgs = Config.Get(Config.Key.ffEncArgs);