HydrogenAudio

Lossy Audio Compression => Speech Codecs => Topic started by: polemon on 2017-08-15 19:41:52

Title: Patent expiry dates and software for AMR, AMR-WB, and AMR-WB+
Post by: polemon on 2017-08-15 19:41:52
Recently I've become interested in the AMR codecs, but it seems there isn't much software around to encode with.

At the same time, I was wondering about patents, and when they might expire. Given they're about ten years "younger" than MP3, I guess approximately ten years from now we'll see the first patents expire.

I'm kinda interested in the AMR codecs by 3GPP, because they see a lot of use in mobile communication. From what I've seen here, AMR-WB and Opus are quite comparable, and it's very much down to the sample which one wins out. It's not like one is better universally than the other, at comparable bitrates, etc.

For AMR and AMR-WB there seems to be VisualOn and OpenCore libraries available, but AMR-WB+ seems kinda barren, the list on Wikipedia (https://en.wikipedia.org/wiki/Comparison_of_audio_coding_formats#General_information) doesn't mention any library or software for AMR-WB+ coding, so I don't know.

I remember there were lists where various patents along with their expiry dates were listed for MP3 and I think AAC, although I can't find them just now, they were on some Wikia page or something. I wonder if such things exist for AMR, and if it is as complicated, too. I know that the various AMRs are covered by various patents from Nokia and NTT, and some other companies. There's a patent pool of course, etc. Also, there seems to be little information about what and how many patents are covering the AMR codecs. I can only guess that it's as chaotic and complicated as it was with MP3 with U-Boat patents and all that.

The ITU adopted AMR-WB as G.722.2, so that one sees the most use, I'd guess but the 3GPP codecs seem kinda interesting in general. I can imagine the companies behind AMR-WB and AMR-WB+ are kinda "protective" of their i.p., Wikipedia explains the licensing weirdness a bit. I'd imagine there's OSS code available similar to how LAME totally isn't MP3 - technicalities aside.

This is the first place where I'm asking for a list of patents covering AMR, AMR-WB, and AMR-WB+, as well as for libraries and software, preferably for Linux. At the same time, I wonder if someone in here did anything beyond using those codecs. I.e. developing encoders, decoders, working on libraries, etc. I might've seen one or two ABX result diagrams, where Opus was compared to AMR-WB, I wonder what software was used there, etc.

For Linux I found this: http://www.penguin.cz/~utx/amr
It's also the only thing I can find quickly in my repos, etc.
Title: Re: Patent expiry dates and software for AMR, AMR-WB, and AMR-WB+
Post by: polemon on 2017-08-16 01:58:48
OK, I've found this: http://www.voiceage.com/Patent-Portfolio.html
I can't be sure if that's like an exhaustive list, and how reliable the expiration dates are. Also, are those world wide expiration dates?

Then, there's this: https://hydrogenaud.io/index.php/topic,95034.0.html
However, I can't find the source code anywhere, I'm guessing I'm looking in the wrong places, but there's no link given in that post.

I can only find this: https://portal.3gpp.org/#55936-specifications
and when searching there for "AMR-WB+" it turns up four results, which seems to be all source code. Is that what is referred to in the post above?

Could someone help out?
Title: Re: Patent expiry dates and software for AMR, AMR-WB, and AMR-WB+
Post by: jensend on 2017-08-16 02:23:53
Submarine patents were pretty much ended by 2000 due to trade agreements and legislative reform, so that's one MP3 etc complication unlikely to arise here. AMR was released in 1999; patents will presumably be expiring by 2020. AMR-WB and -WB+ are 3-5 years newer. Obviously there could be complications with the patent situation, and given that VoiceAge claims there are 150 essential patents in its AMR* portfolio, it would take real legal work to try to dig up a full list.

update now that I see your new post: a claim of 2024 for WB+ sounds realistic. They say WB patents expire in 2019 except for two "families," but I'm skeptical about them claiming 2022 & 2024 expiry for those two, which have 2000 & 2001 filing dates. AMR-NB sounds like it should be safe by 2020, as I was saying before.

Most AMR vs Opus tests I'm aware of are six and a half years old (Nokia, Google, etc tests with 0.9.0). (There's another with 1.1, but it was performed by Fraunhoefer&c forcing Opus to hard-cbr trying to make it look bad next to EVS/xHE-AAC.) There have been tons of improvements to Opus since then, while AMR has been unchanged.

Even in those tests, it's only at the lowest bitrates that AMR can compete. Opus is vastly better than regular AMR by 12kbps and noticeably better than AMR-WB at 20kbps and up. AMR-WB+ performed better than Opus at various bitrates in one test, but the test revealed issues with Opus which were resolved before 1.0.

It'd be interesting to see updated tests. I'd hazard a guess that Opus 1.2 is probably better than AMR-WB from 12kbps up. Much less info out there about AMR-WB+; it might be roughly comparable to Opus up to about 32kbps. (Its max rate is 48kbps.)

A quick google search comes up with this packaging of 3GPP AMR-WB+ reference code (https://github.com/kholia/amr-wbp).
Title: Re: Patent expiry dates and software for AMR, AMR-WB, and AMR-WB+
Post by: polemon on 2017-08-16 14:16:01
OK, the scheme in which these documents are filed is a bit strange, and it seems there's lots of duplication going on.
All files have been updated or at least checked on March of 2017, so they're not that old, or at least not that much out of date.
The specification documents are in .DOC (Microsoft Office 2003) format, out of all things - I can't even...


It's hard to say if and what was changed in the main .DOC files warranting an update. For all I know, it might've been no changes at all, etc.

In general, there doesn't seem to be much maintenance going on. I can only imagine, that the reason why the fixed point variant and the floating point variant are kept in individual repositories, is just so they can be filed individually. There's really no reason not having both variants in one repository and simply have compilation rules for each variant. At the same time, it's just a matter of a couple functions to which this difference is pertaining. So they could be kept next to each other without confusion, etc. Maybe making licensing easier was another reason.

The repository mentioned in jensend's post, is essentially the floating point variant, re-uploaded and modified for compilation with autotools. I'll take a look at it later, perhaps.

Porting code from MSVC to GCC I find atrociously annoying, especially if the IDE is >10 years old...

EDIT: I've exported all .DOC and .RTF documents into .PDF in case anyone is interested.