Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's incredible that the MPEG-LA mafia has gotten away with 23 patents on a system of mathematical operations. Math is explicitly outlined as non-patentable. While this extends to all software patents, I'm astounded that even this very narrow case hasn't been challenged on its face. We can't move to unencumbered codecs quickly enough.


Strictly speaking, pretty much any patentable invention is going to use maths. Video codec related patents aren't just "I patent the discrete fourier transform". It's "here's how you can use frequency domain transforms, texture lookups, entropy coding, and other things in order to build a low-bitrate video codec". There's detailed explanations of what the invention does and what is legally being claimed, which will usually be a quite-small improvement on an existing technology.

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.


> 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.


If I invent a new type of chair that can be stable with two legs, then the way this operates is essentially just a mathematical formula, no? No one would challenge that this would be patentable, and any patent application would describe the mathematics of it, and the usage of this mathematics would be covered in the patent.

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.


A chair is a physical object that may happen to have been designed using maths, a video codec is a set of instructions for what maths to do on your machine that does maths to make it play video.


This is my personal opinion and in no way relates to my employment:

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.


My understanding (IANAL) is that although maths are not patentable, the use of maths is – much as science is not patentable, but the use of science (technology) is.


Exactly this - otherwise inventions in physics would not be patentable (such as the laser - a purely theoretical construct long before it was engineered, same as the transistor), or chemicals (chemistry follows from physics, which is made of math..)

And on and on.

Using math to engineer solutions to problems is patentable.


When you patent a laser, the patent doesn't stop someone from calculating the laser's results. With math, you are prohibited from making certain calculations; very different.


You aren't prohibited from doing the calculations per se. You are prohibited from doing them for a particular purpose, specifically video playback, in this case. If you just want to sit down with a pencil and paper and calculate H264 by yourself, there's nothing illegal about that. It only becomes illegal when you embed it into a video player.


Again, IANAL. But my understanding is using ideas in a patent for "experimental purposes" is legally protected: https://nysstlc.syr.edu/wp-content/uploads/2014/09/NYSTAR-Th...


> chemistry follows from physics, which is made of math

Is that a reference to XKCD #435 ? ;)


Right, but encoding video is literally just pushing numbers through a function, is it not?


It's more concrete than that there's an input, from a computer, with some sort of physical storage, and an output, again with some storage, that ultimately is for viewing. The goal is to do stuff with those numbers outside of the computer, ie create light patterns on a viewing medium.


> It's more concrete than that there's an input, from a computer, with some sort of physical storage, and an output, again with some storage, that ultimately is for viewing.

None of which is novel, or even directly related to the subject of the patent. The patent isn't about the input mechanism, the computing hardware, the storage media, or the display tech. It's about the abstract math that is carried out mechanically by these existing computing elements.

Evaluating a mathematical formula and visualizing the results as a grid of colored squares—all by hand—should never be found to infringe on anyone's patent. (This appears to be relatively uncontroversial.)

Doing the same, only faster thanks to the aid of a computer, should be similarly exempt from all patent infringement claims. The patent doesn't cover the computer, which already existed. All that's left is the math.


I have a lot of sympathy with your position and conclusion. Really I was trying to explain the position applied, it's not what I would do. Ultimately, legislatures (or those who control them) want to encourage developments that lead to faster, cheaper (less energy intensive) methods of encryption and encoding and so the law will be wiggled until it fits this need. Hence in Europe we effectively have, AIUI, a variation of the long-standing "technical effect" requirement where if the development can be concretised it can be patented.

Things are slightly tighter in UK law and much looser in USA; I don't follow patent law in other countries.


It's the application of the maths for a purpose, not the maths itself.


Maybe it's the future of software will be built in a jurisdiction of the world that doesn't take a shit about software patents.

All software is just a big number after all.


Technically all information is just a big number.


And that number is 42. Now the question is how to write all the functions to decode what we want from it.


Use this encoder :

https://www.dangermouse.net/esoteric/lenpeg.html

It allows for compression to a negative, unbounded number of octets. I guess you just have to run it in reverse ?


Perhaps in China?

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)?


in the EU software is not patentable, though many companies find loopholes: https://fsfe.org/activities/swpat/swpat.en.html


I'd say China, India, Russia all have pretty strong software communities and are good candidates.

China also has a strong hardware community as well.


We can argue about the patents system all day. But we can call it a fact this it is not just "23" patents. I am not even sure how they arrive at the 23 numbers. I was thinking if it was some kind of joke that doesn't work with my /s detector.


Algorithms are not simply math, in the same way mechanical engineering is not simply math.

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.


> 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.

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?


>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.


> In the exact same details? None. There is an extreme number of parameters and details in each of these codecs.

The patent doesn't cover the extreme number of parameters and details, or someone would just change a couple and have a nice patent-free codec. Far more general techniques get snapped up by a single owner.

> 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.

That's because it takes so long to get implemented, and it's a big cost to re-encode.

If it was just a matter of adding support to a couple programs and sending out an update, you'd see incremental improvements all the time.

We're largely still stuck on jpg and png, for crying out loud, and those use thoroughly obsolete methods.

> 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.

There would be less total incentive, but there's still the enormous incentive from everyone working with video to get better compression/quality, and streamlining cooperation would be a big deal.


>get snapped up by a single owner.

If these things were as trivial as you think, then why doesn't open source simply patent all the good new ideas now?

Even if these easy to create ideas you think exist required some previous work, at least these new simple patents would free up stuff eventually.

But this doesn't happen. Ask yourself why.

Heck, spend some time and try to make a better method your self, and patent it. Then you can hold for-fee patents needing your brilliant idea hostage, and change the playing field.

Or maybe you're mistaken on how hard and non-trivial the needed components are?

And, if they're so non-trivial that open source, or Google, or whomever want them to be free, then the ideas are worth patents.

>That's because it takes so long to get implemented,

You think it takes longer to implement a compression codec than to create it? That's not true for this scale (I've worked on several high end compression codecs and have designed and implemented probably a few dozen compression codes in my career).

Creating one is by far the hardest part - trying tons and tons of ideas (coding them all up for testing), looking for new ideas, working on how various ideas interact, etc.

By the time the spec is solidified probably a few hundred throwaways have been made. Implementation is trivial, then optimization takes some time.

But neither effort, by far, approach the effort it takes to design one on this scale.

> There would be less total incentive, but there's still the enormous incentive from everyone working with video to get better compression/quality, and streamlining cooperation would be a big deal.

If that were true, you'd see all those same actors improving x264 compression, or MP3, or h265, and other compression codecs, but they are not. Improvements, despite being something ANY person can do and push to open libs, is rare. Most all modern compression schemes only define the decoding part, allowing improvements on the encoding side to be continually worked on. The technical skill to do so is non-trivial, and a tiny, tiny fraction of a percent of "everyone working with video" has any idea how to improve it.

This is how x264 kept improving and improving over and over for H.264 compression - there was pretty much one person, Dark Shikari, that worked on it for years and years to improve it.

If you want to see how terribly complex this work is, read his (internet archive) blog on the work. It was fun at the time watching one person make x264 the premier H.264 compressor.

But pretty much zero other besides him made significant improvements to it, despite being something anyone can work on.

So no, the vast majority of people working with video would be useless at making anything better.


> If these things were as trivial as you think, then why doesn't open source simply patent all the good new ideas now?[...]But this doesn't happen. Ask yourself why.

Because they didn't find the idea first. I'm not sure what your argument is here?

Lots of patents do go to open source projects. Is "this" a world where open source finds everything first? If so I'm not sure how you got the idea that I was arguing that.

> And, if they're so non-trivial that open source, or Google, or whomever want them to be free, then the ideas are worth patents.

The fact that a patent could be worth money doesn't imply that it should be granted. If I could convince the government to grant me any patent I wanted, I would go patent every word in the dictionary.

> You think it takes longer to implement a compression codec than to create it?

Most codecs aren't made from scratch. If you got rid of the network effects, there definitely would be "constant new ones, each improving the last one".

In a world where implementations have to be nailed down and then it takes years and years to roll out, then creating a codec takes a very long time.

If implementation was as easy as normal software, you'd see organizations that put out a new codec every couple months, featuring the latest ideas and tweaks.

> stuff about compression

I'm talking about the people working on h.265 and AV1. They're already working on codecs, so I know they can work on codecs. If a bunch of people are useless at working on compression, well that sucks but it's a sideline to my argument.


> Algorithms are not simply math

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 not simply math, in the same way mechanical engineering is not simply math.

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.


>Algorithms are _literally_ mathematical objects. C.f. Church-Turing thesis.

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/


So are companies in New Zealand not bound by H264 licensing fees? They banned software patents years ago.


They probably don't have to pay for any en/decoders distributed in New Zealand. If they want to distribute anywhere else they have to comply with that place's patent law (as well as all the other laws).


Really? I wasn't aware of that.


French companies are not bound. This is why VLC and other video players are developed by french devs.


Is this true? Software patent is a gray area in the EU and I would not recommend to take for granted that European companies do not have to pay the h.264 license, even if they only distribute in Europe.

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...


According to VideoLan's Legal team (in the French section of https://www.videolan.org/legal.html under Brevets):

Patents

According to article L 611-10 of the French Intellectual Property Code, software patents are not allowed under French law. At the [EEA] level, Article 52 of the European Patent Convention has also excluded the protection of computer programs.

As a result, any software supplied by VideoLAN is not subject to licenses on any software patent, regardless of its origin.

The relevant section of the French IP law states that:

1. New inventions, in all fields of technology, involving an innovative approach with industrial application are patentable.

2. The following are not considered as inventions within the meaning of the first Section of this Article in particular: a) The discoveries of scientific theories as well as mathematical methods; b) Aesthetic creations; c) Intellectual plans, principles and methods in the areas of sport or economic activities, as well as computer programs; d) Presentation of information.

3. The provisions of Section 2 of this Article shall exclude the patentability of the elements listed in the said provisions only to the extent that the patent application or patent concerns only one of these elements considered as such.

4. Subject to the provisions of Articles L. 611-16 to L. 611-19, inventions relating to a product consisting wholly or partly of biological material, or to a process for producing, processing or using biological material, shall be patentable under the conditions laid down in Section 1. Biological material is considered to be material that contains genetic information and can reproduce itself or be reproduced in a biological system.

Interpret that as you wish.


> the end-user becomes responsible for complying with the licensing and royalty requirements

Exactly. If you're using h.264 without a license in a country that requires it, it doesn't matter that some french people wrote the software for you. That's all they're saying.


Is CocaCola a patent on chemistry?


Coca-Cola is a trade secret. No one has figured out their recipe to date.


The recipe is not patented. This would force them to disclose it. The same goed for WD40. It's not patented because they don't want to disclose the formula.


Interestingly, open source colas do exist - with recipes under the GPL even.


Not only does the GPL seems like an extraordinarily poor fit for a recipe, recipes are generally considered to not be copyrightable in the first place.


Tell that to the people who do it then?


So with Coca-cola, the ingredients are fully known, it's just the process that's secret?


Also, perhaps, difficult to come by:

"...Though the company removed cocaine from the carbonated concoction over 100 years ago, coca leaves are actually still used to flavor Coke. The soda brand has an exemption with the government allowing them to import coca leaves into a decocanization plant in New Jersey where cocaine is removed so the leaves can be used in Coca-Cola for their natural flavors."

https://www.foodandwine.com/drinks/55-million-worth-cocaine-...


The ingredients for the Coca-Cola flavor are listed as "natural flavors". That's the extent of disclosure.

Trade secret just means that they don't share the recipe and make efforts to keep it secret. Calling it a "trade secret" is really a marketing strategy as much as anything else. Just like the rumors that coca leaf extract are an ingredient... something that is "neither confirmed nor denied". A marketing strategy.

I think that it's basically flavored with vanilla, cinnamon, a few essential oils (orange, lemon, lavender), and some spices (nutmeg!). One you start adding that many flavors to a recipe, the exact flavors are no longer important, and I'm sure you could replicate something similar at home if you were willing to do enough experimentation. There are a few recipes online that you can use.


A trade secret is a type of intellectual property and has a place in law.


> No one has figured out their recipe to date

> So ... the ingredients are fully known ... ?

No... because nobody has figured out their recipe. They just said that.

https://en.wikipedia.org/wiki/Coca-Cola_formula


Also the proportions. While (in the US at least) manufacturers are required to list their ingredients in the order of greatest proportion to least proportion, they are not required to disclose what those proportions are, which also adds some difficulty to reverse-engineering the recipe.


I think the biggest catch is being able to throw potentially thousands of different substances under the generic “natural flavorings.” Read the Coca Cola ingredients list and you certainly don’t see “coca leaf extract” on it.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: