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.- QTFF
- * ISO BMFF
- ** MP4
- ** 3GPP, 3GPP2
- ** F4V
- MPEG-PS
- * MPEG-TS
- ** M2TS
- * VOB
- ** EVOB
- MCF
- * Matroska
- ** WebM
- RIFF
- * AVI
- ** DMF
- RM
- * RMVB
| Format | Filename extension | Owner or creator | Initial release | License | VBR audio | VFR | Hardware players | Streaming | Metadata | Chapters |
| Matroska | .mkv,.mk3d | CoreCodec | 2002-12 | |||||||
| MPEG-4 Part 14 | .mp4,.m4v | MPEG | 2001-10 | |||||||
| QuickTime File Format | .mov,.qt | Apple Inc. | 1991-12 | |||||||
| Advanced Systems Format | .asf,.wmv | Microsoft | 1996-09 | |||||||
| Audio Video Interleave | .avi | Microsoft | 1992-11 | |||||||
| Material Exchange Format | .mxf | SMPTE | 2004-09 | |||||||
| MPEG program stream | .m2p,.ps | MPEG | 1993-08 | |||||||
| MPEG transport stream | .ts,.tsv | MPEG | 1995-07 | |||||||
| BDAV MPEG-2 transport stream | .m2ts,.mts | BDA | 2004-08 | |||||||
| Video Object | .vob | DVD Forum | 1996-11 | |||||||
| Enhanced VOB | .evo | DVD Forum | 2006-03 | |||||||
| 3GPP | .3gp | 3GPP | 2003-04 | |||||||
| 3GPP2 | .3g2 | 3GPP2 | 2004-01 | |||||||
| Flash Video | .f4v | Adobe Inc. | 2007-12 | |||||||
| Flash Video | .flv | Adobe Inc. | 2003-09 | |||||||
| Ogg | .ogv,.ogx | Xiph.Org | 2003-05 | |||||||
| WebM | .webm | 2010-05 | ||||||||
| RealMedia Variable Bitrate | .rmvb | RealNetworks | 2003 | |||||||
| DivX Media Format | .divx | DivX, 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
.otffiles 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
.ifofile. 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
.ssiffiles in the/BDMV/STREAM/SSIF/directory and require a respective base.m2tsfile. Digital 3D in QTFF and ASF is possible, but not standard. MP4 only supports Digital 3D at the video format level.
Video coding formats support
| Format | Type | Initial release | License | MKV | MP4 | QTFF | ASF | AVI | MXF | PS, TS | 3GP, 3G2 |
| MPEG-H HEVC (H.265) | Lossy or lossless | 2013-06 | |||||||||
| MPEG-4 AVC (H.264) | Lossy or lossless | 2004-08 | |||||||||
| AV1 | Lossy or lossless | 2018-03 | |||||||||
| VP9 | Lossy or lossless | 2013-06 | |||||||||
| VP8 | Lossy or lossless | 2008-09 | |||||||||
| Dirac | Lossy or lossless | 2008-03 | |||||||||
| MVC | Stereoscopic | 2009-05 | |||||||||
| MPEG-1 Video | Lossy | 1993-08 | |||||||||
| MPEG-2 Video | Lossy | 1996-05 | |||||||||
| MPEG-4 Visual | Lossy | 1999-12 | |||||||||
| Microsoft MPEG4 V2 | Lossy | 2003 | |||||||||
| VC-1 | Lossy | 2006-02 | |||||||||
| H.263 | Lossy | 1996-03 | |||||||||
| Theora | Lossy | 2004-06 | |||||||||
| Cinepak | Lossy | 1991 | |||||||||
| Sorenson | Lossy | 1998-03 | |||||||||
| RealVideo | Lossy | 1997-02 | |||||||||
| VP6 | Lossy | 2003-05 | |||||||||
| DV | Intra-frame | 1995 | |||||||||
| M-JPEG | Intra-frame | 1994-05 | |||||||||
| MJ2 | Intra-frame | 2003-12 | |||||||||
| Apple ProRes | Intra-frame | 2007-04 | |||||||||
| HuffYUV | Lossless | 2000 | |||||||||
| YCbCr | Not compressed | 1982 | |||||||||
| Other | Other |
Support level legend:
Some containers only support a restricted set of video formats:
- DMF only supports MPEG-4 Visual ASP with DivX profiles.
- EVO only supports MPEG-4 AVC, MPEG-1 Video, MPEG-2 Video and VC-1.
- F4V only supports MPEG-4 AVC, MPEG-4 Visual and H.263.
- FLV only supports MPEG-4 Visual, VP6, Sorenson Spark and Screen Video. MPEG-4 AVC in FLV is possible, but not standard.
- M2TS only supports MPEG-4 AVC, MPEG-1 Video, MPEG-2 Video, MPEG-4 Visual and VC-1.
- Ogg only supports Theora, MNG, JNG, PNG and Dirac. Firefox supports VP9 and VP8 in Ogg. VLC supports MPEG-2 Video, MPEG-4 Visual and VC-1 in Ogg.
- RMVB only supports RealVideo versions RV30, RV40 and RV60.
- VOB only supports MPEG-1 Video and MPEG-2 Video.
- WebM only supports VP9, VP8, and AV1.
Audio coding formats support
| Format | Type | Initial release | License | MKV | MP4 | QTFF | ASF | AVI | MXF | PS, TS | 3GP | 3G2 |
| AAC | Lossy | 1997-12 | ||||||||||
| MP3 | Lossy | 1991-12 | ||||||||||
| AC-3 | Lossy | 1991-02 | ||||||||||
| E-AC-3 | Lossy | 2005-02 | ||||||||||
| DTS | Lossy | 1993-06 | ||||||||||
| WMA | Lossy | 1999-08 | ||||||||||
| Opus | Lossy | 2012-09 | ||||||||||
| Vorbis | Lossy | 2000-05 | ||||||||||
| MP2 | Lossy | 1991-12 | ||||||||||
| MP1 | Lossy | 1991-12 | ||||||||||
| QDesign Music 1 and 2 | Lossy | 1998 | ||||||||||
| ATRAC3 | Lossy | 2000-09 | ||||||||||
| FLAC | Lossless | 2001-07 | ||||||||||
| ALAC | Lossless | 2004-04 | ||||||||||
| WMA Lossless | Lossless | 2003-01 | ||||||||||
| DTS-HD | Lossless | 2011-08 | ||||||||||
| Dolby TrueHD | Lossless | 2006-04 | ||||||||||
| Lossless Packing|MLP] | Lossless | 1999-03 | ||||||||||
| ALS | Lossless | 2006-03 | ||||||||||
| SLS | Lossless | 2006-06 | ||||||||||
| LPCM | Not compressed | 1979 | ||||||||||
| A-law PCM | Not compressed | 1972-12 | ||||||||||
| μ-law PCM | Not compressed | 1972-12 | ||||||||||
| IEEE floating-point PCM | Not compressed | ≥1985 | ||||||||||
| Microsoft ADPCM | Not compressed | 1992-05 | ||||||||||
| DV Audio | Not compressed | 1995 | ||||||||||
| AMR | Speech | 1999-06 | ||||||||||
| G.728 | Speech | 1992-09 | ||||||||||
| Speex | Speech | 2003-03 | ||||||||||
| QCELP | Speech | 1994 | ||||||||||
| Other | Other | |||||||||||
| Obsolete | Other |
Support level legend:
Some containers only support a restricted set of audio formats:
- DMF only supports MP3, AC-3, DTS and LPCM.
- EVO only supports MP3, AC-3, E-AC-3, DTS, MP2, MP1, DTS-HD, Dolby TrueHD, MLP and LPCM.
- F4V only supports AAC and MP3.
- FLV only supports AAC, MP3, LPCM, A-law PCM, μ-law PCM, Speex, Asao and SWF ADPCM.
- M2TS only supports AC-3, E-AC-3, DTS, DTS-HD, Dolby TrueHD and LPCM.
- Ogg only supports Opus, Vorbis, FLAC, A-law PCM, μ-law PCM, IEEE floating-point PCM, Speex and CELT. OGMtools supports MP3 and AC-3 in Ogg.
- RMVB only supports AC-3, ATRAC3, G.728, AAC-LC, HE-AAC v1, IS-54, Cook Codec, Sipro Lab, ACELP-NET and RealAudio Lossless.
- VOB only supports MP2 directly. It also supports AC-3, DTS, MLP and LPCM as private streams.
- WebM only supports Opus and Vorbis.
Subtitle formats support
| Format | Type | Initial release | License | MKV | MP4 | QTFF | ASF | AVI | MXF | PS, TS | 3GP, 3G2 |
| SubRip | Formatted text | 2000-03 | |||||||||
| WebVTT | Formatted text | 2010-08 | |||||||||
| ASS, SSA | Formatted text | 1996 | |||||||||
| TTXT | XML | 2006-04 | |||||||||
| USF | XML | 2002-11 | |||||||||
| SAMI | HTML | 1998-06 | |||||||||
| VobSub | Picture | 2001 | |||||||||
| Picture | 2006-03 | ||||||||||
| DVB-SUB | Picture | 1997-09 | |||||||||
| Ogg Kate | Picture or formatted text | 2008-03 | |||||||||
| TextST | Text stream | 2006-03 | |||||||||
| MicroDVD | Plain text | 2000-03 | |||||||||
| Other | Other |
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.
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.