Don't remove new stream when original stream removed

make-only-subtitle-default
HaveAGitGat 2 years ago
parent 9653007fb2
commit 079c03d551

@ -203,6 +203,7 @@ var attemptMakeStream = function (_a) {
}
args.jobLog("Adding ".concat(langTag, " stream in ").concat(audioEncoder, ", ").concat(targetChannels, " channels \n"));
var streamCopy = JSON.parse(JSON.stringify(streamWithHighestChannel));
streamCopy.removed = false;
streamCopy.index = streams.length;
streamCopy.outputArgs.push('-c:{outputIndex}', audioEncoder);
streamCopy.outputArgs.push('-ac', "".concat(targetChannels));

@ -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}`);

Loading…
Cancel
Save