I have started to learn about mp4 file format, and I just learned that mp4 is nothing but just a container that defines the structure of the video file, and that it has different codecs inside it for audio and video, as well as other data like metadata and subtitles.
I have been searching around for a while now but couldn't find so much on the basics of mp4 containers and the working and complete structure explanation of it.
So far I have read this and this, but there is not enough information specifically about mp4 container.
My question is,
There are so many Audio/Video Codecs available which are used, but which Codecs are used with the mp4 container ?
Can we use any Codec with the mp4 container ? because there are like dozen different Codecs and how one would know which can be used with the mp4 container ?,
and is there a book or a paper on Mp4 container structure and explanation ?