Take the 2-minute tour ×
Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It's 100% free, no registration required.

Please explain, so confusing. I get that AVC is a video format, MKV is a container (that can contain mp4 video, FLAC audio etc.), but what is mp4 then?

share|improve this question

2 Answers 2

MP4 has not really an official meaning. But it adds a lot to the MPEG-confusion:

MPEG-4 part 14 container: takes an .mp4 file extension, therefore often just called MP4, if it contains audio, it can also have the .m4a extension, for video .m4v, and others (.m4p, .m4b, .m4r). the container format is a derivative of Apple QuickTime's container format (.mov).

MPEG-4 Part 2 codec: Most often just called MPEG-4, sometimes it also takes the name of the encoder software: Xvid, DivX... Became the first de facto standard for web video.

MPEG-4 Part 10 codec: also called MPEG-4 AVC and (ITU-T) H.264, and by the name of it's most popular encoder software: x264. De facto standard video codec today: Web, Blu-Ray, digital TV, camcorders (AVCHD standard), portable devices. Almost all of these devices ship today with H.264/AVC hardware codecs but rarely any other codec. It's successor is now coming to market, but just for fun they decided to give it another name: MPEG-H Part 2 also known as ITU-T H.265 or High Efficiency Video Coding (HEVC).

I'm not even going to start about all the other MPEGs :-)

share|improve this answer

MP4 is a container, not a video format. MP4 generally contains a variant of MPEG for the video, such as h.264 or generic MPEG-4. Sometimes they may contain an MPEG-2 or MPEG-1 stream, though that is pretty uncommon.

share|improve this answer
So MP4 and MKV are only containers? How can MKV contain a MP4 then? This is where I get confused. MP4 can contain AVC, so can MKV. Look this thread. –  evil Jan 16 at 20:24
@evil - an MKV can not contain an MP4, it can contain an h.264 stream or an MPEG-4 stream. People often confuse MP4 with MPEG-4, one is a container format, the other is a video stream format. The thread you linked is incorrect in saying that an MKV can contain an MP4 as far as I know unless it actually can contain other containers. –  AJ Henderson Jan 16 at 20:47
MPEG-4 and h.264 is the same thing though? h.264=AVC=MPEG-4 Part 10. It's really confusing. –  evil Jan 16 at 21:57
h.264 if a portion of the MPEG standard (part 10 as it were), there is also the more general part 2. MP4 is actually also part of the MPEG standard (part 14). MPEG is a broad spectrum developed by the MPEG group and covers more than just one thing. –  AJ Henderson Jan 17 at 0:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.