Export filename is now fully customizable with placeholders in settings

This commit is contained in:
N00MKRAD
2021-03-03 21:53:17 +01:00
parent a6dca1906e
commit ba9406aeed
9 changed files with 146 additions and 42 deletions

View File

@@ -35,8 +35,10 @@ namespace Flowframes
{
string pathNoExt = Path.ChangeExtension(inputFile, null);
string ext = Path.GetExtension(inputFile);
string args = $" -stream_loop {times} -i {inputFile.Wrap()} -c copy \"{pathNoExt}-Loop{times}{ext}\"";
string loopSuffix = Config.Get("exportNamePatternLoop").Replace("[LOOPS]", $"{times}").Replace("[PLAYS]", $"{times + 1}");
string args = $" -stream_loop {times} -i {inputFile.Wrap()} -c copy \"{pathNoExt}{loopSuffix}{ext}\"";
await RunFfmpeg(args, LogMode.Hidden);
if (delSrc)
DeleteSource(inputFile);
}