314 points · by doener · 5y ago · 165 comments
IIRC, H.264 is one of a few non-Google technologies that is included in Chrome, but is not included in Chromium.
> So, how much does those rights cost? Under the terms in place for 2011-2015, the royalty rates are the same regardless of whether a product is part of an OS. There's no royalty for the first 100,000 units of a licensed product; sublicensees pay 20 cents per unit up to 5 million and 10 cents per unit above 5 million. The current agreement includes an annual limit: “The maximum annual royalty (‘cap’) for an Enterprise [is] $6.5 million per year in 2011-2015.”
What happens in 2016? Under the MPEG LA license, the terms are "renewable for successive five-year periods … on reasonable terms and conditions.” The per-copy royalty rates "will not increase by more than 10% at each renewal.” If rates go up by the maximum 10% for that five-year period, the cost of 10 million licenses will increase by $150,000 from a current rate of $1.48 million to $1.63 million.
There's a small gotcha in the new MPEG LA license agreement. Footnote 17, which appears in tiny print at the very end of the summary of license terms, notes that “Annual royalty caps are not subject to the 10% limitation.” Although that sounds like a loophole, it really only affects the largest players in the market.
1: https://www.zdnet.com/article/a-closer-look-at-the-costs-and....
Cisco’s free to use h264 encoder/decoder binaries of its open source OpenH264 are a result of this license cap so potentially it could affect others if those rates rise to the point they withdraw availability.
That's interesting, I never missed it and use both Chromium and Firefox. Apparently we can do without this tax. Or might a nonfree codec package in Debian have something to do with it? I did hear someone complain once about my sending a nonfree video format (in a jovial manner), not sure about the details anymore but it played out of the box for me (in Chromium).
> OpenH264 Video Codec provided by Cisco Systems, Inc.
> This plugin is automatically installed by Mozilla to comply with the WebRTC specification and to enable WebRTC calls with devices that require the H.264 video codec. Visit https://www.openh264.org/ to view the codec source code and learn more about the implementation.
These provided MFTs have to meet certain minimum requirements for certification by Microsoft, which amounts to "good enough." Results vary in practice and can be incredibly frustrating (especially encode). It's often better to use the underlying SDKs but that comes with a lot of hassle.
(I've been working on a video capture and sharing app inspired by Shadowplay.)
Windows 10 is also rolling out support for AV1, though not bundled.[4]
[1]: https://docs.microsoft.com/en-us/windows/win32/medfound/h-26...
[2]: https://docs.microsoft.com/en-us/windows/win32/medfound/abou...
[3]: https://chromium.googlesource.com/chromium/src/+/master/medi...
[4]: https://www.microsoft.com/en-us/p/av1-video-extension/9mvzqv...
Why do they need to pay for their own licence then?
Many of the standards-essential ITU/MPEG patents have active litigation surrounding them, and the defendents would have been daft to not try to challenge video codec patents on exactly the sort of basis. The fact that the patents still stand would indicate that they are more than just maths.
I insist that the fact that the patents still stand is rather an indication of the systemic failure of the court system to enforce the non-patentability of what is ultimately still purely mathematical operations.
Sure, any patent-able invention uses math. That's a distraction. These patents are on the formulae (the data transforms) and their use itself. You're on the right track pointing out that it would be ridiculous to patent the discrete Fourier transform.
These kind of mathematical discoveries should not be encumbered, they should be free for anyone to use and implement.
I don't really like patents in general, but I don't really see this sharp distinction to be honest and I've always felt that the case against software patents in particular as a special case was rather weak.
I rather think that the courts have enforced the line the legislators endorse, which supports their ends of promoting industry: It's not a mistake of the court system, inventions that apply maths to achieve technical gains are patentable and maths itself remains un-patentable. The courts seem largely to properly discern where that line lies.
Developing maths that saves bandwidth, storage, and energy, for example, is beneficial and countries use the patent system to encourage that.
And on and on.
Using math to engineer solutions to problems is patentable.
Is that a reference to XKCD #435 ? ;)
All software is just a big number after all.
I support your sentiment, but most countries with strong software communities appear to have strong software patents (US, EU, Taiwan, SK). Maybe the only outlier is Russia (and possibly India)?
China also has a strong hardware community as well.
The patents are the result of engineering to create very precise and complicated tools.
And if it were simply math, then there would be no way to work around those patents, which plenty of open source codecs have done in various directions.
Unfortunately, most open source codecs are not as good at compression, mostly since the patented ones have a massively bigger pool of engineering behind them from dozens of companies banding together their work to develop best of breed solutions.
And eventually the patents expire, and the world gets these codecs free to use.
What makes you say that? Math usually leaves many ways of calculating the same thing.
> dozens of companies banding together
You could probably get a bigger group if there wasn't a patent vs. no patent conflict.
> And eventually the patents expire, and the world gets these codecs free to use.
How many of these techniques wouldn't have been reinvented a dozen times over in less time, if the original patenter never existed?
In the exact same details? None. There is an extreme number of parameters and details in each of these codecs.
How many times have you or a small band of people invented a world class video compression codec? They take a huge number of people and a lot of funding to create. That funding, in many cases, was paid for by places like Fraunhofer that has invented many such codecs before anyone else, and they do so because they know they will get a revenue stream to pay for the work.
If these things were easy to make, there would be constant new ones, each improving the last one. This is not the case - they take years and the effort of a lot of people to make new ones that are better enough to slowly replace old ones.
A simple way to see it - if these were so easy that people would invent a dozen if only patents didn't stop them, then people would invent those anyway and publish them for fun. I am unaware of ANY world class video codecs that some hacker invented in their basement, and the only ones close to best in breed were funded to the tune of the prices above by huge companies that want to use their leverage to move markets, for their own gain.
These things are in no way trivial to create.
> You could probably get a bigger group if there wasn't a patent vs. no patent conflict.
Removing a funding channel means there would be less, not more, incentive to pay tens of millions to billions to develop one. If you pay the R&D and anyone else can simply take the work and not pay for it, then less companies will work on it.
I don't know about "simply", but algorithms are mathematical. I know so because everyone who matters in the field of algorithms says so (e.g. Knuth's "every algorithm is as mathematical as anything could be.")
Knuth adds: "An algorithm is an abstract concept unrelated to physical laws of the universe." so "in the same way mechanical engineering is not simply math" doesn't hold, or have even much bearing on the truth of the statement "Algorithms are not simply math."
> And if it were simply math, then there would be no way to work around those patents
How does this follow? It seems to be an implication out of nowhere instead of an argument.
> most open source codes are ... since
Another assertion presented as an implication. Following the same line of reasoning one could state: "Open source is not as good at producing kernels, mostly since proprietary vendors have a massively bigger pool of engineering" which by now has been shown to be false, in other words: a post hoc fallacy
Algorithms are _literally_ mathematical objects. C.f. Church-Turing thesis.
> And if it were simply math, then there would be no way to work around those patents, which plenty of open source codecs have done in various directions.
Show me an H.264 codec that works around the patents in the MPEG LA pool. Also software patents are orthogonal to the question of "open source" (which is about copyright). That there is very often no way to work around the patents in an otherwise independent implementation is precisely the problem with Software patents.
> Unfortunately, most open source codecs are not as good at compression, mostly since the patented ones have a massively bigger pool of engineering behind them from dozens of companies banding together their work to develop best of breed solutions.
Show me the numbers. Because the numbers I know (for example the chart in the blogpost itself) show that x265 is the best codec (or encoder, if it's not a decoder too) for H.265, it self being "open source", better than proprietary alternatives.
> And eventually the patents expire, and the world gets these codecs free to use.
Even after patents expire, copyright expires in 90 years.
The Church-Turing thesis is about computability, and has precisely zero to do with if QuickSort or x264 is math.
Not a single machine on the planet is an actual Turing machine. So in practice the Church-Turing thesis applies to zero actual computers on earth. They don't fit the definition. So throwing out fancy sounding phrases does not help your argument.
As a simple example, theoretically the Halting problem is undecidable on a Turing machine. But on any finite machine the Halting problem is decidable. All physical machines are finite. Thus every physical machine is not a Turing Machine.
You might as well argue that reality is based on physics, and physics is based on math, so nothing can be patented. But reality, and especially law, works differently than that.
The fact remains that algorithms under certain conditions can be patented, precisely because it is engineering, and because some algorithms require massive investment to develop, and it's worthwhile to inspire companies to invest on the R&D.
>> And eventually the patents expire, and the world gets these codecs free to use.
> Even after patents expire, copyright expires in 90 years.
I didn't say the sourcecode was suddenly free to use. I said the codec, as in the algorithm (which is what can be patented - code cannot), is free once the patent expires.
Conflating the two is not useles s -they're orthogonal. I can write code for a non-patented algorithm, and you cannot just take it because that code is automatically copyrighted.
But we were discussing patents.
>Show me the numbers....
You keep confusing codec to mean a particular implementation of a codec. It does not. H.265 is a codec. x265 is an implementation of the codec. MP3 is a a codec. LAME is an implementation. Codecs can be patented, but not copyrighted. Implementations can be copyrighted, but not patented, but they can use patented ideas.
So yes, commercial codecs generally are better than open source. H.264, H.265 were/are both better than any codec released around the same time. MP3 was the same. JPEG was the same.
So you're agreeing with me - H265 is the best codec.
>Show me the numbers.
Here you are: http://compression.ru/
Concerning VLC, their FAQ [1] does not mention the EU aspect: they say that they cannot pay for the license because the software is free and that "the end-user becomes responsible for complying with the licensing and royalty requirements" (whether this would be defensible in court is debatable)
[1] https://wiki.videolan.org/Frequently_Asked_Questions/#What_a...
There's going to be a lag time before enough HW is being used that fully supports it but it'll happen eventually.
I trust the AOM will handle this the moment Sisvel actually attempts to file suit. If their patents are as solid as they're claiming, they probably would have sued someone like Netflix for using AV1 already. IIRC, Sisvel did this for both VP8 and VP9 and it didn't end up going anywhere.
A lot of times video struggles to start, buffers for a long time, stutters, .... I'm not talking about small blogs, but about sites like CNN, WaPo, ...
https://developers.cloudflare.com/stream/
Happy to take any critique y'all may have.
Someone on HN asked me what's wrong with HTML5 video. I forgot to reply as I was gathering examples and informations.
Eventually the ubiquity of hardware acceleration plus Moore's Law should make even lackluster hardware encoders generally available so average joes can use AV1 without needing to wait a day for a half hour of footage.
https://netflixtechblog.com/netflix-now-streaming-av1-on-and...
https://netflixtechblog.com/svt-av1-an-open-source-av1-encod...
https://www.youtube.com/watch?v=k3Yk6FrjMkQ
You can tell if it's playing back in AV1 in your browser by right-clicking on the video and selecting "Stats for Nerds" to find out the video and the audio codecs. On my system in Firefox it's AV1 for video and Opus for audio.
For that video the file size savings are a bit hit and miss. AV1 saves a lot versus H.264 at 1080p, saves a little bit at 720p and 480p, and saves a bit more at 360p.
The 1080p results for that video are:
- AV1 50.28MiB
- VP9 69.12MiB
- H.264 106.68MiB
So a clear win at 1080p for AV1 versus VP9 and H.264.
Sometimes YouTube's AV1 encodes can actually end up being bigger than the H.264 versions due to the vagaries of automated transcoding.
When AV1 support was newly added to Firefox I used this 1080p60 video as a benchmark for my system:
https://www.youtube.com/watch?v=Fmdb-KmlzD8
Over the course of the development of Firefox's AV1 support and the switch to the dav1d decoder (https://code.videolan.org/videolan/dav1d) that video has gone from being unwatchable due to too many dropped frames to now playing back smoothly.
My system still struggles with AV1 above 1080p in Firefox though.
Encoding to MPEG-4: Easy, fast, high-quality.
Encoding to WebM: Much slower to encode, requires tweaking the parameters, video usually looks noticeably worse at similar bit rates.
I don't know how much of this is caused by the encoder, how much is caused by the codec, and how much is caused by poor selection of parameters on my part. I use "recommended settings" that I find online and H.254/HiP.
After having gone through that effort, the costs of it better ultimately justify the outcome, and the MPEG LA licensing rates are very carefully to get you to avoid just this outcome.
Google basically had them continue what they were doing, but on a completely FOSS basis. They took VP8, bundled it with Ogg Vorbis and the Matroska container, and rebranded it as webm. They released VP9, and then started work on VP10 up until the whole H.265 licensing debacle happened. At this point all the holdouts for ITU/ISO standard codecs threw up their hands and decided to form a new standards consortium to build a new royalty-free video codec. Google, xiph, Cisco, and a few other companies basically put together some of their research projects and built AV1. This codec was more or less funded by their own research, and their business models are such that just having decoder ubiquity is worth more than patent royalties they could otherwise charge.
Video codec research is difficult, but mostly because it requires specialized knowledge of a lot of different related fields of mathematics and computer science. For various historical reasons, the way ITU (H.26x) and ISO (MPEG-n) paid for their research was by deliberately shipping patent-encumbered standards. Essentially, they just used whatever coding tools worked the best and assumed the economics would work out in favor of forming a patent pool under uniform-fee licensing rules. For example, despite the name, MPEG-LA has literally nothing to do with the ISO MPEG working group, or ITU VCEG, despite being the primary means by which their standards are licensed.
This sort of arrangement occasionally works out amazingly well (MPEG-4, H.264) or blows up spectacularly in their faces (H.263, H.265).
If you had the requisite knowledge I mentioned above, you probably could discover at least some small improvement upon the state-of-the-art for video coding techniques. However, I could not guarantee that it would be unencumbered by patents. Hell, MPEG even tried building a patent-free video codec of their own, but it failed completely because of some... rather interesting particularities of how standards bodies handle patent claims. You see, for various legal reasons, people proposing standards that they may have a patent interest in need to be very up front about what parts they will own. In ISO standards speak, these patent declarations come in three flavors:
Option 1, which means you agree to license your patents without a patent royalty (the AV1 patent model).
Option 2, or "FRAND" (Fair, Reasonable, And Non-Discriminatory), which means you agree to license patents for a royalty payment to any entity (the MPEG-LA patent model). (Note that RMS would prefer you call this "Uniform Fee Only" and not FRAND)
Option 3, which means you are refusing to license the patent under any terms suitable for a standard (the "get off my lawn" patent model).
An interesting peculiarity is that ISO will accept patent declarations under Option 1 or Option 2 that do not specifically name the patents potentially being infringed by the standard. This is not the case for Option 3; for obvious reasons. If a standards entity just accepted vague claims of infringement without any offer of licensing, then it would not be able to actually make standards. However, the acceptance of vague Option 2 claims meant that MPEG actually couldn't ascertain what part of their attempt at a royalty-free codec was infringing, so it was a standard dead in the water.
This problem isn't unique to MPEG either; vague claims of infringement are perfectly fine until you actually have to file a lawsuit, and at that point it's far too late to rewrite a standard. So if you do write your own video codec, you still have to have a team of lawyers examine everything about it against basically every patent even remotely relating to video codecs. You don't get the benefit of ISO-style patent disclosures either, as none of the patent owners are working with you and thus have no legal reason to tell you about the patents. Even if you managed to do the legal research yourself, it's entirely possible that another company had a patent application before you wrote your codec that you weren't aware of.
That is known as a "submarine patent" and it's why Microsoft and Apple were initially quite skeptical of VP8 and WebM. Having a large international standards process with basically the entire industry on-board means pretty much everyone with patents will need to disclose and license their patents (albeit only under Option 2). Having all that money into one large standard further creates economic incentives in favor of forming a patent pool. On2/Google going it alone means pretty much any patent claim will be some kind of submarine patent asserted against you far after you had any hope of changing the spec to avoid it. Google gets around this with lots of money and lawyers, which you don't have.
Woah there, HEVC and VP9 are not that good. Both are 25-30% better than h264. See Netflix's benchmarks. We're talking 4gb vs 6gb
A 1gb movie will always look like crap, even with an even better codec like AV1. Pause the movie during an action sequence or explosion and it'll look like you're watching the video on YouTube with all the compression artifacts that entails.
Even if they attempted to leverage an open source "enterprise" licensing scheme big corps would likely just use an existing industry proven codec.
That being said - fuck patent trolls.
This has its pros and cons, and is up for debate (Eg. Web Bluetooth API[1], another example is how much time it took Apple to implement Google/YouTube's codec). I personally prefer their slow and steady pace as I feel the browser is lighter and more easy on the battery than Chrome and Chromium based browsers.
This is one of the cons of letting one team decide about the future of the project without letting people challenge their decisions.
What's wrong with downloading media and viewing it in an external player, like VLC?
BTW, VLC can read videos while they are being downloaded just fine. It can also stream videos from, for instance, YouTube. Also, youtube-dl is your friend.
Okay.
Block uploads and streaming on youtube of 265. No support in chrome.
This would never happen, Apple in particular is in premium / everything costs big $ space so often doesn't mind the fees. But a few big players would make a big difference if they took action.
As a sibling comment mentions, Apple actually receives money for their role in the MPEG LA, but I doubt that this is anything more than a tiny dribble of money compared to the rest of their business. They're sitting just fine not having to pay out.
Not to mention that getting the entire Web ecosystem to adopt a different codec can take ages - new hardware has to support accelerating it, and software implementions need to be added to thousands of different ecosystems before it becomes worth using on the Web.
The AV1 support is obviously a step though in the right direction.