Skip to content

Commit

Permalink
Make sure to include all streams in loop mux command
Browse files Browse the repository at this point in the history
  • Loading branch information
n00mkrad committed Nov 29, 2024
1 parent 6278fed commit 2769b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodeLegacy/Media/FfmpegCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static async Task LoopVideo(string inputFile, int times, bool delSrc = fa
string loopSuffix = Config.Get(Config.Key.exportNamePatternLoop).Replace("[LOOPS]", $"{times}").Replace("[PLAYS]", $"{times + 1}");
string outpath = $"{pathNoExt}{loopSuffix}{ext}";
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);

if (delSrc)
Expand Down

0 comments on commit 2769b7d

Please sign in to comment.