Comparison of video container formats


These tables compare features of multimedia container formats, most often used for storing or streaming digital video or digital audio content. To see which multimedia players support which container format, look at comparison of media players.

General information

In many ways, derived containers are similar to those on which they are based, sometimes extending them, sometimes limiting their capabilities.
FormatFilename extensionOwner or creatorInitial releaseLicenseVBR audioVFRHardware playersStreamingMetadataChapters
Matroska.mkv,.mk3dCoreCodec2002-12
MPEG-4 Part 14 .mp4,.m4vMPEG2001-10
QuickTime File Format .mov,.qtApple Inc.1991-12
Advanced Systems Format .asf,.wmvMicrosoft1996-09
Audio Video Interleave .aviMicrosoft1992-11
Material Exchange Format .mxfSMPTE2004-09
MPEG program stream .m2p,.psMPEG1993-08
MPEG transport stream .ts,.tsvMPEG1995-07
BDAV MPEG-2 transport stream .m2ts,.mtsBDA2004-08
Video Object .vobDVD Forum1996-11
Enhanced VOB .evoDVD Forum2006-03
3GPP .3gp3GPP2003-04
3GPP2 .3g23GPP22004-01
Flash Video .f4vAdobe Inc.2007-12
Flash Video .flvAdobe Inc.2003-09
Ogg.ogv,.ogxXiph.Org2003-05
WebM.webmGoogle2010-05
RealMedia Variable Bitrate .rmvbRealNetworks2003
DivX Media Format .divxDivX, Inc.2005-06

Support level legend:
Some features are only supported by a few containers:
  • Attachments are only supported in Matroska, MP4 and QTFF. M2TS supports attachments as multiple files in a specific file structure: fonts for subtitles are in .otf files in the /BDMV/AUXDATA/ directory.
  • Interactive menus are only supported in MP4, QTFF, M2TS, EVO and DMF. VOB supports interactive menus as multiple files in a specific file structure for encoding DVD content, requiring a companion .ifo file. Matroska has been planning to support interactive menus as part of a draft specification since 2004.
  • Digital 3D is only supported at the container format level in Matroska, MXF and WebM. M2TS supports Digital 3D as multiple files in a specific file structure for encoding stereoscopic video: MVC stereoscopic data is in .ssif files in the /BDMV/STREAM/SSIF/ directory and require a respective base .m2ts file. Digital 3D in QTFF and ASF is possible, but not standard. MP4 only supports Digital 3D at the video format level.
Some common multimedia file formats are not completely distinct container formats. Some are containers for specific audio and video coding formats, such as WebM, a subset of Matroska. Some are combinations of common container formats and audio and video coding profiles, such as AVCHD and DivX formats. Although sometimes compared to DivX products, Xvid is neither a container format nor a video format, it is a software library that encodes video using specific coding profiles of the common MPEG-4 ASP video format. Those types of restrictions are intended to simplify the construction of multimedia recorders and players.

Video coding formats support

FormatTypeInitial releaseLicenseMKVMP4QTFFASFAVIMXFPS, TS3GP, 3G2
MPEG-H HEVC (H.265)Lossy or lossless2013-06
MPEG-4 AVC (H.264)Lossy or lossless2004-08
AV1Lossy or lossless2018-03
VP9Lossy or lossless2013-06
VP8Lossy or lossless2008-09
DiracLossy or lossless2008-03
MVCStereoscopic2009-05
MPEG-1 VideoLossy1993-08
MPEG-2 VideoLossy1996-05
MPEG-4 VisualLossy1999-12
Microsoft MPEG4 V2Lossy2003
VC-1Lossy2006-02
H.263Lossy1996-03
TheoraLossy2004-06
CinepakLossy1991
SorensonLossy1998-03
RealVideoLossy1997-02
VP6Lossy2003-05
DVIntra-frame1995
M-JPEGIntra-frame1994-05
MJ2Intra-frame2003-12
Apple ProResIntra-frame2007-04
HuffYUVLossless2000
YCbCrNot compressed1982
OtherOther

Support level legend:
Some containers only support a restricted set of video formats:

Audio coding formats support

FormatTypeInitial releaseLicenseMKVMP4QTFFASFAVIMXFPS, TS3GP3G2
AACLossy1997-12
MP3Lossy1991-12
AC-3Lossy1991-02
E-AC-3Lossy2005-02
DTSLossy1993-06
WMALossy1999-08
OpusLossy2012-09
VorbisLossy2000-05
MP2Lossy1991-12
MP1Lossy1991-12
QDesign Music 1 and 2Lossy1998
ATRAC3Lossy2000-09
FLACLossless2001-07
ALACLossless2004-04
WMA LosslessLossless2003-01
DTS-HDLossless2011-08
Dolby TrueHDLossless2006-04
Lossless Packing|MLP]Lossless1999-03
ALSLossless2006-03
SLSLossless2006-06
LPCMNot compressed1979
A-law PCMNot compressed1972-12
μ-law PCMNot compressed1972-12
IEEE floating-point PCMNot compressed≥1985
Microsoft ADPCMNot compressed1992-05
DV AudioNot compressed1995
AMRSpeech1999-06
G.728Speech1992-09
SpeexSpeech2003-03
QCELPSpeech1994
OtherOther
ObsoleteOther

Support level legend:
Some containers only support a restricted set of audio formats:
Audio-only content can sometimes be placed in a simpler audio-only container, such as Native FLAC for FLAC and ADTS for AAC.

Subtitle formats support

FormatTypeInitial releaseLicenseMKVMP4QTFFASFAVIMXFPS, TS3GP, 3G2
SubRipFormatted text2000-03
WebVTTFormatted text2010-08
ASS, SSAFormatted text1996
TTXTXML2006-04
USFXML2002-11
SAMIHTML1998-06
VobSubPicture2001
Picture2006-03
DVB-SUBPicture1997-09
Ogg KatePicture or formatted text2008-03
TextSTText stream2006-03
MicroDVDPlain text2000-03
OtherOther

Support level legend:
Some containers only support a restricted set of subtitle formats:
  • DMF only supports XSUB.
  • EVO only supports HD DVD.
  • F4V only supports TTXT. SubRip and WebVTT can be converted losslessly to TTXT.
  • FLV only supports loading subtitles with ActionScript, but this functionality may be restricted to the official Adobe Flash Player. WebVTT can be converted losslessly to ActionScript.
  • M2TS only supports Blu-ray. VobSub can be partially converted to PGS using tools that are not officially related to the container format.
  • Ogg only supports Ogg Kate and CMML. SubRip can be converted losslessly to Ogg Kate. Ogg Writ is well supported in Ogg in common tools such as OGMtools and VLC, but there's no intention to turn its draft into a fully supported specification. Xiph recommends using Kate for subtitles. MicroDVD can be converted to Ogg Writ.
  • RMVB only supports RealText. SMIL can be partially converted to RealText.
  • VOB only supports VobSub. can be partially converted to VobSub using tools that are not officially related to the container format.
  • WebM only supports WebVTT. SubRip can be converted losslessly to WebVTT.
Converting image subtitles to text formats is possible using third-party tools but relies on optical character recognition, which is not perfectly accurate and can at best extract basic formatting. Conversion of text to images is possible while preserving content and style. Round-trip format conversion between text formats may not be possible without losing some formatting features.

Overhead

Multimedia containers interleave data in media streams to enable efficient playback using fewer computational resources, such as time spent reading from the storage drive, memory needed to buffer selected media streams, and time spent decoding when seeking to a different position in time. In this sense, muxing overhead is the control information added by the container to carry interleaved streams. A smaller overhead results in a smaller file when carrying the same streams with the same data. Overhead is affected by the total number of packets and by the size of stream packet headers. In high bitrate encodings, the content payload is usually large enough to make the overhead data relatively insignificant, but in low bitrate encodings, the inefficiency of the overhead can significantly affect the resulting file size if the container uses large stream packet headers or a large number of packets.
In general, Matroska requires the least overhead, followed by MP4, AVI and Ogg.