Question: is mpeg a codec or container?
Answer: Example of popular containers are OGG, Matroska, AVI, MPEG. Codecs are ways of "coding" and "decoding" streams. Their job is typically to compress data (and decompress it when playing it back) so that you can store and transmit files with a smaller filesize.