The video and audio codec is the way in which the images and audio on a video is encoded into binary data (1s and 0s). The container is the one that compresses the binary data. For example, we can have: MPEG-4 container + H.264 video codec + AAC audio codec.