WebM-Enabled Browser Usage Share Exceeds H.264-Enabled Browser Usage Share on Desktop (in StatCounter Numbers)

Looking at StatCounter stats, it occurred to me that they might not match the common narrative about H.264 market share. I decide to run some numbers using StatCounter stats. It turns out that during the first two weeks of 2012, on desktop, the usage-share of browsers that support WebM in HTML5 video exceeded the usage share of browsers that support H.264 in HTML5 video—except in North America and Oceania.

Methodology

I downloaded StatCounter data as CSV and fed it to a Python script I wrote. The script categorizes the StatCounter-reported usage share into six buckets:

  1. Total desktop (this excludes Safari on iPad, the Android browser, the browser of Playstation 3, etc.)
  2. Theora
  3. WebM
  4. H.264
  5. No support for HTML5 video
  6. Unknown HTML5 video support

The total desktop bucket adds up to 97.7% globally. In other words, the non-desktop browsers that StatCounter reports in its desktop stats account for less than 3% of usage. I divided the numbers in the other buckets by the total desktop bucket to scale the other numbers to be percentages of desktop only.

The script (which you can audit) has baked-in knowledge of which browser versions support what. Only out-of-the-box support is considered, so IE9 is considered to support H.264 but not WebM even though WebM support can be added as a separate installation. As an exception, Safari is counted as if Safari for Windows always also had QuickTime installed (because the data is not granular enough to do otherwise).

Results for Week 1 and Week 2 of 2012

The percentage means the Web usage share (as measured by StatCounter) of desktop browsers that support a given video format in HTML5 <video>. The percentages do not add up to 100%, because some browsers support multiple video formats. The numbers for Theora are always higher than the numbers for WebM, because all browsers that support WebM also support Theora but there are browsers that support Theora but not WebM.

World Africa Asia Europe North America Oceania South America
Theora 55% 64% 58% 62% 42% 49% 66%
WebM 51% 55% 52% 57% 38% 45% 62%
H.264 45% 38% 42% 44% 47% 50% 53%
No <video> 28% 27% 32% 21% 32% 25% 25%
Unknown 0% 0% 0% 0% 0% 0% 0%

Addendum: FAQ

Answers to questions from Twitter.

What Happens if You Include iPad?

I tried to make the point that the share of tablets is tiny relative to desktops. If Safari on iPad and the Android default browser are both counted as H.264 and no attempt is made to count any versions of the Android default browser as WebM (although some versions support WebM), the differences in world-wide numbers are lost in rounding and do not change the rounded percentages.

What Happens if You Include Phones?

The desktop+tablet numbers that StatCounter provides are not commeasurable with the phone numbers they provide.

What Happens if You Include Pluggable Codecs?

If pluggable codecs were considered, the WebM and Theora numbers would be higher, since IE9 supports WebM if WebM support is installed to Media Foundation and Safari (on Mac at least) supports WebM and Theora if WebM or Theora support is installed for QuickTime.

The H.264 numbers would not be higher, because Firefox and current versions of Opera do not support H.264 as a pluggable codec and Chromium usage is very low. (Earlier versions of Opera for Linux and FreeBSD supported pluggable H.264, but those versions have already faded out of significance.) The Windows Media Player extension that Wikipedia counts as adding H.264 support to Firefox does not actually add H.264 support to the HTML5 video element. Instead, it replaces the video element with a plug-in instance that does not support the HTML5 video API, so the HTML5 video element is no longer there. (Feel free to try to fix the wikitruth. I have given up.)

Can You Run the Numbers for Another Time Period?

I have no plans to do that at this time. The script is available under a Free Software license, so feel free to run it over data from a different time period.

You Are Counting Chrome as Supporting H.264 Even Though They Dropped Support!

In January 2011, they announced that H.264 support would be dropped. As of January 2012, Chrome has not yet dropped support for H.264.

Do You Count [browser] as Supporting [codec]?

Please see the source of the script.