Don't remove new stream when original stream removed

This commit is contained in:
HaveAGitGat 2023-12-22 16:11:40 +00:00
parent 9653007fb2
commit 079c03d551
2 changed files with 2 additions and 0 deletions

View file

@ -242,6 +242,7 @@ const attemptMakeStream = ({
args.jobLog(`Adding ${langTag} stream in ${audioEncoder}, ${targetChannels} channels \n`);
const streamCopy: IffmpegCommandStream = JSON.parse(JSON.stringify(streamWithHighestChannel));
streamCopy.removed = false;
streamCopy.index = streams.length;
streamCopy.outputArgs.push('-c:{outputIndex}', audioEncoder);
streamCopy.outputArgs.push('-ac', `${targetChannels}`);