Make sure to include all streams in loop mux command

This commit is contained in:
N00MKRAD
2024-11-29 10:27:34 +01:00
parent 6278fedbc2
commit 2769b7dff7

View File

@@ -88,7 +88,7 @@ namespace Flowframes
string loopSuffix = Config.Get(Config.Key.exportNamePatternLoop).Replace("[LOOPS]", $"{times}").Replace("[PLAYS]", $"{times + 1}"); string loopSuffix = Config.Get(Config.Key.exportNamePatternLoop).Replace("[LOOPS]", $"{times}").Replace("[PLAYS]", $"{times + 1}");
string outpath = $"{pathNoExt}{loopSuffix}{ext}"; string outpath = $"{pathNoExt}{loopSuffix}{ext}";
IoUtils.RenameExistingFileOrDir(outpath); IoUtils.RenameExistingFileOrDir(outpath);
string args = $" -stream_loop {times} -i {inputFile.Wrap()} -c copy {outpath.Wrap()}"; string args = $" -stream_loop {times} -i {inputFile.Wrap()} -map 0 -c copy {outpath.Wrap()}";
await RunFfmpeg(args, LogMode.Hidden); await RunFfmpeg(args, LogMode.Hidden);
if (delSrc) if (delSrc)