overhead comparison



back to main page

Stream types

For this comparison, the following streams will be used:

RAW stream sizes

The following sizes will be used as RAW stream sizes when calculating file overhead (file size - raw stream sizes):

Muxing applications and settings

Remarks on those settings

Vorbis is only laced into blocks of 50 milliseconds because larger settings seem to be problematic. Sometimes, even laces of 1000 milliseconds work, sometimes even 100 milliseconds lead to jerky playback, depending on splitter and decoder. As I only want to use playable files in this comparison, I've used only the highest safe setting, which is 50 milliseconds. For other stream types, 200 milliseconds is a good compromise between overhead (larger laces mean less overhead) and seek accuracy.

For AC3-in-AVI, 5 frames per chunk is the largest value which really works, larger values can cause playback errors with some decoders.

When proper Cues are present, there is no need for Clusters to be indexed in the SeekHead, as it would only waste space. The Cues settings used in this comparison ensure that far more CuePoints than required for proper seeking are created.

Result

The overhead is indicated for: The difference between (2) and (1) is the overhead caused by the audio stream, and the overhead you have to add if you want to add another stream of this type (this is not 100% accurate, but certainly 99.9%). In the case of matroska, both Matroska v1 (i.e without SimpleBlocks) and Matroska v2 (i.e. with SimpleBlocks) is checked, and in the case of DTS, AC3 and MP3, the overhead is checked with and without header stripping. The first number represents the overhead with header stripping, the second one the overhead without header stripping. Note that, in case of audio formats with long synchronisation bytes sequences and short duration, like DTS, the space gained by header stripping can exceed the overhead matroska causes, leading to an overhead below 0. In the case of DTS audio, even one single DTS stream gains enough space for the total file overhead to be lower than 0.

streams container
OGM AVI MKV MP4
AVI 1.0 AVI 2.0
plain Open-DML low overhead v1 v2
video 1 only 10,320,645 4,926,908 3,313,528 1,844,120 VFW mode: 2,461,675
native: 1,436,437 / 2,205,189
VFW mode: 1,376,081
native: -51,098 / 717,584
1,214,770
video 2 only 10,305,184 4,961,091 3,346,273 1,877,513 VFW mode: 2,582,034
native: 1,913,303 / 2,682,110
VFW mode: 1,436,145
native: 427,840 / 1,196,557
1,693,988
video + dts 18,357,147 6,957,224 4,623,844 2,716,532 353,474
3,235,798
-924,267
1,958,075
-
video + ac3 15,580,849 6,292,268 4,197,584 2,443,768 2,392,921
2,873,313
1,211,273
1,691,665
-
video + he-aac - 9,038,499 6,070,977 3,377,655 3,037,528 1,859,594 1,943,544
video + lc-aac - 13,101,375 8,779,471 4,728,207 3,220,869 2,039,182 2,602,393
video + mpeg 1 layer 3 12,957,532 5,745,560 3,847,916 2,219,160 2,805,789
3,126,041
1,675,835
1,996,087
2,559,350
video + vorbis 11,352,901 - 3,951,485 2,577,660 -
video + mpeg 2 layer 3 11,607,777 5,692,520 3,813,660 2,166,168 2,650,275
2,970,545
1,520,359
1,840,629
2,539,350