This question has been asked before but my query is different and more specific. In MPV player I use this command af=format=channels=stereo,dynaudnorm
which is like live normalising the audio. However, I want use ffmpeg to output the surround (5.1/7.1) audio to stereo(2 channels) and I'm not sure about what command syntax I should use for this af=format=channels=stereo,dynaudnorm
Optional: I would also like to convert dts audio to FLAC or eac3 in the same command and mux it into the same video all in a single command, but this is optional, the main focus is on the above query