diff --git a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.js index b822c4e40..7cfabd437 100644 --- a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.js @@ -107,11 +107,11 @@ var plugin = function (args) { && ((_c = stream.channels) !== null && _c !== void 0 ? _c : 0) === channels && !defaultSet) { args.jobLog("Setting stream ".concat(index, " (language ").concat(languageCode, ", channels ").concat(channels, ") has default")); - stream.outputArgs.push("-disposition:".concat(index), 'default'); + stream.outputArgs.push("-c:".concat(index), 'copy', "-disposition:".concat(index), 'default'); defaultSet = true; } else - stream.outputArgs.push("-disposition:".concat(index), '0'); + stream.outputArgs.push("-c:".concat(index), 'copy', "-disposition:".concat(index), '0'); } }); if (defaultSet) { diff --git a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.ts index cd95b7a4a..66adbf2fc 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.ts @@ -118,9 +118,9 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => { && (stream.channels ?? 0) === channels && !defaultSet) { args.jobLog(`Setting stream ${index} (language ${languageCode}, channels ${channels}) has default`); - stream.outputArgs.push(`-disposition:${index}`, 'default'); + stream.outputArgs.push(`-c:${index}`, 'copy', `-disposition:${index}`, 'default'); defaultSet = true; - } else stream.outputArgs.push(`-disposition:${index}`, '0'); + } else stream.outputArgs.push(`-c:${index}`, 'copy', `-disposition:${index}`, '0'); } });