: He remembered that Avidemux struggles with AAC/M4A or Ogg Vorbis files when they are added externally without being in a "raw" format (like ADTS-encapsulated AAC).

This is the overwhelming cause of the error. Look at the main Avidemux window. On the left-hand sidebar, you’ll see a section labeled with a dropdown menu.