I'm not a pro in how to use codecs compared to other people I've seen, but I'm good enough to be able to compress videos decently.
I use HandBrake for the video but since HandBrake isn't very good with AAC compressing (at least from what I've tried) I use Premiere Pro instead since it supports HE-AAC and Parametric Stereo. Whenever I compress a video I start by encoding the audio in Premiere Pro with HE-AAC v2 parametric stereo, open Avidemux to put the output of the .aac file into the original file, then open HandBrake and put the audio settings on Auto Passthru.
However, I have realized that on any Apple device I've seen so far, the audio is way worse than it should be. I'm not sure if it's because it's an MP4 container, because of Avidemux, because I've been using H.264 (next time I compress something I'll use H.265), or because it just won't work whatsoever on Apple Devices no matter what. Any ideas?
Also, an example of a video that has been compressed that has the same audio issue: https://cdn.discordapp.com/attachments/775102275546644511/873636072402325524/The_heavy_is_dead.mp4