diff --git a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.js index f823ed2c5..78ee1d46a 100644 --- a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.js @@ -26,16 +26,6 @@ var details = function () { return ({ }, tooltip: 'Tdarr will add this name to the metadata title of the audio stream.', }, - { - label: 'Modify existing audio tracks Title', - name: 'enableTitleAdjust', - type: 'boolean', - defaultValue: 'false', - inputUI: { - type: 'switch', - }, - tooltip: 'Append "(original)" to the existing audio tracks Title', - }, { label: 'Audio Encoder', name: 'audioEncoder', @@ -162,7 +152,8 @@ var details = function () { return ({ inputUI: { type: 'switch', }, - tooltip: 'Toggle whether to enable setting audio upmixing this will only get used if there is no higher channel count available', + tooltip: 'Toggle whether to enable setting audio upmixing this' + + 'will only get used if there is no higher channel count available', }, { label: 'Upmixing pan filter', @@ -274,14 +265,14 @@ var attemptMakeStream = function (_a) { streamCopy.mapArgs = []; } else { - streamCopy.outputArgs.push('-ac', "".concat(targetChannels)); + streamCopy.outputArgs.push('-ac:a:{outputTypeIndex}', "".concat(targetChannels)); } - streamCopy.outputArgs.push('-c:{outputIndex}', audioEncoder); + streamCopy.outputArgs.push('-c:a:{outputTypeIndex}', audioEncoder); if (enableBitrate) { - streamCopy.outputArgs.push("-b:a:{outputTypeIndex}", "".concat(bitrate)); + streamCopy.outputArgs.push('-b:a:{outputTypeIndex}', "".concat(bitrate)); } if (enableSamplerate) { - streamCopy.outputArgs.push('-ar', "".concat(samplerate)); + streamCopy.outputArgs.push('-ar:a:{outputTypeIndex}', "".concat(samplerate)); } if (streamName !== '') { streamCopy.outputArgs.push('-metadata:s:a:{outputTypeIndex}', "title=".concat(streamName)); diff --git a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.ts index 018049bd6..0b953999a 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.ts @@ -305,16 +305,16 @@ const attemptMakeStream = ({ streamCopy.outputArgs.push('-map', '[a_{outputIndex}]'); streamCopy.mapArgs = []; } else { - streamCopy.outputArgs.push('-ac', `${targetChannels}`); + streamCopy.outputArgs.push('-ac:a:{outputTypeIndex}', `${targetChannels}`); } - streamCopy.outputArgs.push('-c:{outputIndex}', audioEncoder); + streamCopy.outputArgs.push('-c:a:{outputTypeIndex}', audioEncoder); if (enableBitrate) { streamCopy.outputArgs.push('-b:a:{outputTypeIndex}', `${bitrate}`); } if (enableSamplerate) { - streamCopy.outputArgs.push('-ar', `${samplerate}`); + streamCopy.outputArgs.push('-ar:a:{outputTypeIndex}', `${samplerate}`); } if (streamName !== '') {