Your profile is using the handbrake
encoder, if that fails it falls back to ffmpeg
and then to mencoder
Your handbrake profile audio is set to encode the audio to AAC, if you want it to use ac3 instead of aac then change faac
to ffac3
and similarly for ffmpeg, it’s also using AAC audio
Change libfdk_aac
to ac3
You can refer to the MKV profiles for samples if needed, they use AC3 audio instead of AAC audio.
It’s better to create a new profile with a new name than to change existing profiles.