What License Governs libmp3lame?
This article provides a clear overview of the open-source license
governing libmp3lame, the core library of the LAME MP3
encoder. It explains the specific terms of this license, how it affects
developers who want to use or modify the library, and how software
licensing interacts with historical MP3 patent concerns.
The Core License: GNU LGPL
The libmp3lame library is licensed under the GNU
Lesser General Public License (LGPL), specifically version 2.0
or later.
While the command-line interface (CLI) frontend of the LAME encoder
is sometimes distributed under the standard GNU General Public License
(GPL), the underlying shared library (libmp3lame) was
intentionally placed under the LGPL to allow broader integration with
other software applications.
Key Permissions and Requirements of the LGPL
The LGPL is a “weak copyleft” license. It allows developers to
integrate libmp3lame into both open-source and proprietary
software under specific conditions:
1. Linking and Integration
- Proprietary Software: You can link your proprietary
or closed-source application to
libmp3lame(ideally via dynamic linking) without being required to release your own application’s source code. - Reverse Engineering: If you link to
libmp3lame, the LGPL requires that you permit users to modify or replace the library version used by your application. This means you must allow reverse engineering for debugging those modifications.
2. Modifying the Library
- Copyleft on Modifications: If you make direct
changes to the source code of
libmp3lameitself, those modifications must be published and distributed under the LGPL. You cannot keep changes to the library’s core code proprietary.
3. Distribution
- Whenever you distribute software containing
libmp3lame, you must provide prominent notice that the library is used and is governed by the LGPL. You must also make the source code oflibmp3lame(including any modifications you made to it) available to your users.
Software Licensing vs. Patent Concerns
Historically, using libmp3lame was legally complex due
to MP3 encoding patents held by organizations like Fraunhofer IIS and
Technicolor (Thomson).
- The License: The LGPL only governs the copyright of the code itself. It does not grant patent licenses.
- The Patents: For many years, distributing compiled
binaries of
libmp3lamein certain countries required paying patent royalties, regardless of the LGPL open-source license. - Current Status: As of April 2017, all major patents
associated with the MP3 audio format have expired globally.
Consequently,
libmp3lamecan now be compiled, distributed, and used under the terms of the LGPL without the need for additional patent licensing.