Okay, here is what I came up with. DISCLAIMER: I could not test this and my ffmpeg knowledge is mediocre at best. But it might be a good starting point for others to chime in and help out.
Add this to the profile you want to normalize the stereo audio.
CustomCommandPath=C:\Windows\System32\cmd.exe
CustomCommandParameters="/c ren "%convertedfile%" %convertedfilename%-1.%convertedext% & "C:\Program Files\MCEBuddy2x\ffmpeg\ffmpeg.exe" -i "%workingpath%\%convertedfilename%-1.%convertedext% -map 0:v -c:v copy -map 0:1 -map 0:2 -map 0:3 -af dynaudnorm=f=150 -c:a:1 copy -c:a:2 copy "%convertedfile%" & del "%workingpath%\%convertedfilename%-1.%convertedext%""
CustomCommandHangPeriod=3600
CustomCommandCritical=false
CustomCommandUISession=false
CustomCommandShowWindow=false
CustomCommandExitCodeCheck=false
Basically how this should work is that after the files has been converted but before it moves it to the destination it will execute CMD with the parameters specified. Let’s break down the parameters:
/c
Run command prompt and exit when done. Don’t worry about this one
ren “%convertedfile%” %convertedfilename%-1.%convertedext%
This renames the converted file in it’s current location (since we are using CustomCommand this will be in the working directory) by adding a -1 to it. We want to rename it so that we can have our new file be what it needs to be after we finish these custom commands and MCEBuddy takes back over.
&
This means basically new command to run. Don’t worry about this. But if you want more commands to run then separate it with an &.
“C:\Program Files\MCEBuddy2x\ffmpeg\ffmpeg.exe” -i “%workingpath%%convertedfilename%-1.%convertedext% -map 0:v -c:v copy -map 0:1 -map 0:2 -map 0:3 -af dynaudnorm=f=150 -c:a:1 copy -c:a:2 copy “%convertedfile%””
The real magic is here and if any tweaks need to be done to the execution it will need to be in here. This should copy the video over as is, apply the normalization to the first audio track and copy the remaining 2 audio track over as is.
del “%workingpath%%convertedfilename%-1.%convertedext%”
Deletes the original file we renamed in the first command. Just some housekeeping.