I think QNAP doesn’t have codecs for AAC out of the box for licensing reasons. You probably have to install third-party ffmpeg codecs manually.