
Should I use the MP3 or AAC codec for the .mp4 file?

We have a coding process. This process will take the original video and a couple of files from it: .m3u8 video, .mp4 video, and .mp3 audio file.

By default, we use video from our m3u8 process, which is h264 video (via libx264) with AAC audio (via libfaac).
We mainly use these videos on mobile devices (hence m3u8 files), but we also use .mp4 files for Android phones, Windows, etc. Increasingly, we also have to offer these same videos on the Internet through a flash player. or HTML5 player.
So we would like to have a better combination of audio / video codecs for all these purposes … where I am confused is what is the “standard” for an .mp4 file?
If .mp4 uses mp3 codec then it plays fine everywhere except QuickTime, in QuickTime the video plays, but there is no sound (it works fine in VLC player though).
They told me it has something to do with the way QuickTime uses file extensions to get information about the video instead of trying to get the codec data from the file. It makes some sense, if we encode the same file but use AAC for the audio codec, then it works fine in QuickTime.
So what is a “correct” or “ideal” combo audio / video codec? Is it the best and safest to use AAC (ie will it work on a wide range of devices) even if it is not a “free” codec?





