Most codecs are now patent-free

While there was a big cheer when the final MP3 patent expired, it seems we’ve completely lost track of the patent status of codecs ever since. This partially is due to the patent holders “evergreening” their patent pool, ie adding random crap after the release (when I last checked the 3077 patents in the AAC patent pool, I found stuff related to… how DVD players work, I think?), partially due to the software itself being continuously developed and gaining new – patentable – features, and partially because mp3 is just good enough for most intents and purposes. However, this means that a bunch of the legacy formats which used be excluded from open source software out of patent fears can now be shipped, and probably could’ve been shipped for many years. I’ll go into a bit more depth at the end, but first, have the tables.

(the cells all have hover text with additional info if you really need it)

Video codecs

CodecReleaseUSEUJPOthersAvailable in FFmpeg
H.2611988, 1990sFREEsFREEsFREEsFREEsDecode & encode
MPEG-1 Part 21993sFREEsFREEsFREEsFREEsDecode & encode
MJPEG (baseline)1992sFREEsFREEsFREEsFREEsDecode & encode
DV / DVCPRO1995s sFREEsFREEsFREEsFREEsDecode & encode
H.263 / H.263+ / FLV11996, 1998, 2002s sFREEsFREEsFREEsFREEsDecode & encode
MPEG-2 Part 2 / H.2621995sFREEsFREEsFREEsFREEsDecode & encode
JPEG 2000 Part 12000sFREEsFREEsFREEsFREEsDecode & encode
RealVideo (RV10–RV40)1997, 1998, 2000, 2002s sFREEsFREEsFREEsFREEsPartial
MPEG-4 Part 2 Visual1999, 2001s sFREEsFREEsFREEsFREEsDecode & encode
WMV7 & WMV82000, 2001s sFREEsFREEsFREEsFREEsDecode & encode
Avid DNxHD (SMPTE VC-3)2004, 2008s s2027-01-18sFREEsFREEsFREEsDecode & encode
WMV9 / SMPTE VC-12003, 2006s s2028-05-19sFREEsFREEsBR 2030-11-10sDecode only
H.264 / MPEG-4 AVC2003, 2005s2030-11-26sFREEsFREEsBR 2030-11-10sDecode & encode

Audio codecs

CodecReleaseUSEUJPOthersAvailable in FFmpeg
ITU-T voice codecs1972, 1988, 1990, 1996s sFREEsFREEsFREEsFREEsPartial
MP1 & MP2 (MPEG-1/2 Audio Layers I & II)1993, 1995s sFREEsFREEsFREEsFREEsPartial
MP3 (MPEG-1/2 Audio Layer III)1993, 1995s sFREEsFREEsFREEsFREEsDecode & encode
AC-3 (Dolby Digital)1992sFREEsFREEsFREEsFREEsDecode & encode
E-AC-3 (Dolby Digital Plus)2005sFREEsFREEsFREEsFREEsDecode & encode
MLP / Dolby TrueHD1998, 2005s sFREEsFREEsFREEsFREEsDecode & encode
DTS Coherent Acoustics (DTS Core)1996sFREEsFREEsFREEsFREEsDecode & encode
AAC-LC1997, 1999s sFREEsFREEsFREEsFREEsDecode & encode
HE-AAC v12003s2027-10-24sFREEsFREEsBR 2027-11-07sDecode & encode
HE-AAC v22004s2027-12-27sFREEsFREEsBR 2027-12-12sDecode & encode
WMA Standard 9.2 and below1999–2006s sFREEsFREEsFREEsFREEsDecode & encode
WMA 9 Lossless2003sFREEsFREEsFREEsFREEsDecode only
WMA 9 Professional2003sFREEsFREEsFREEsFREEsDecode only
AMR-NB & AMR-WB1999, 2002s sFREEsFREEsFREEsFREEsDecode & encode
Sony ATRAC1 / ATRAC3 / ATRAC3plus1992, 1999, 2003s s sFREEsFREEsFREEsFREEsDecode only
Qualcomm aptX (Classic & HD)c. 1990, 2016s sFREEsFREEsFREEsFREEsDecode & encode
RealAudio (RA / Cook / SIPR)1995–1998s sProbably free?sFREEsFREEsProbably free?sPartial

Containers

ContainerReleaseUSEUJPOthersAvailable in FFmpeg
MPEG-1 / MPEG-2 Program Stream1993, 1995s sFREEsFREEsFREEsFREEsMux & demux
MPEG-2 Transport Stream (.ts, .m2ts)1995sFREEsFREEsFREEsMY 2035-09-08sMux & demux
MP4 / ISOBMFF2003, 2004s sFREEsFREEsFREEsFREEsMux & demux
MPEG-4 Part 1 Systems1999sFREEsFREEsFREEsFREEsPartial
QuickTime File Format (.mov, .qt)1991sFREEsFREEsFREEsFREEsMux & demux
3GPP / 3GPP2 (.3gp, .3g2)2003, 2004s sFREEsFREEsFREEsFREEsMux & demux
Advanced Systems Format (.asf, .wmv, .wma)1997sFREEsFREEsFREEsFREEsMux & demux
Flash Video (.flv, .f4v)2002, 2007s sFREEsFREEsFREEsFREEsMux & demux
RealMedia / RMVB (.rm, .rmvb)1997, 2002s sFREEsFREEsFREEsFREEsMux & demux
MXF (.mxf)2004sFREEsFREEsFREEsFREEsMux & demux

Background info

Patents work differently to copyright. While in copyright, what matters is that you wrote something yourself with your own, original ideas, in patents what matters is that you were the first to make (and claim to have made) an invention. Because of this, it’s impossible to use a patent-encumbered codec by just telling claude “make me a clean-room implementation”, as it’s not the code that’s the problem, it’s the very idea of how the codec works. The good news is that, while copyright lasts two lifetimes, patents only last 20 years after being filed. So as a rule of thumb, if a codec is 20 years or older, it’s patent-free…

… except, it’s not so simple. The first outlier here is, as per usual, the United States. Over there, the patent term is counted not from the date the invention is claimed, but from whenever the patent office was done reviewing it. Or, well, not that either, it uses a special adjustment calculation to make up some of the difference. The EU doesn’t do this, and this is where most of the differences stem. If we take our friend, the first patent of the HE-AAC v1 codec, you’ll see that the European Patent was filed 2002-10-07 and expired 2022-10-07. The US version of the same patent meanwhile was filed on the same day, but because it only got granted in 2008, its expiration was in… 2024? So why do I list 2027 up there?

As it turns out, it’s yet more complicated! I can’t claim to understand the specifics (this is deep lawyer voodoo magic), but apparently, you can file a patent and while waiting for that patent to be granted, you file another patent which is the same thing again, but with somewhat minor changes. This “divisional patent” keeps the filing date of the original, so it doesn’t extend the patent term per se, however, it does allow you a) roll the dice again on how much term extension you get if this patent for whatever reason takes much longer to review than your previous patent, and b) it allows you to create additional stress on the system which causes yet more delay for all patents in the queue. And apparently, this massively peaked around 2008, hence why the patent that survived this day was one filed in 2005 but only granted in 2012!

Or in other words, in the US, you can DDoS the patent office to get longer patent terms. Apparently. At least this is what it smells like to me.

Anyhow: This extendomatic-fantastic system mercifully doesn’t work in the EU, so if you’re EU based (and don’t want to sell stuff to the US), the 20 years is probably what you want, though of course, I’m not a lawyer, this is not legal advice etc. pp.

And with that: Go forth, and make your old files compatible with your favorite open source multimedia tool!