libdiscid
Products > libdiscid
libdiscid is a C library for creating MusicBrainz and freedb disc IDs from audio CDs. It reads a CD's table of contents (TOC) and generates an identifier which can be used to lookup the CD at MusicBrainz. Additionally, it provides a submission URL for adding the disc ID to the database and gathers ISRCs and the MCN (=UPC/EAN) from disc.
The interface of this library is new, but the disc ID algorithm and the operating system dependent CD-ROM/DVD-ROM access code have been ported from libmusicbrainz version 2.
For more info about the interface read the API documentation. The repository is at GitHub and bugs should be reported at the MusicBrainz bug tracker.
libdiscid is licensed under the GNU Lesser General Public License 2.1 or later.
Download
Source code:
- libdiscid-0.6.4.tar.gz (384K)
Compiled packages:
- libdiscid-0.6.4-win.zip (68K)
- libdiscid-0.6.4-mac.zip (58K)
Changes:
- ChangeLog (GitHub)
Feature Matrix
Linux | Windows | macOS | (k)FreeBSD | Open/NetBSD | Haiku | Solaris | generic | |||||||||||
read | mcn | isrc | read | mcn | isrc | read | mcn | isrc | read | mcn | isrc | read | mcn | isrc | read | read | put | |
libdiscid 0.1.0 | • | • | • | |||||||||||||||
libdiscid 0.2.0 | • | • | • | • | ||||||||||||||
libdiscid 0.3.0 | • | • | • | • | • | • | • | • | • | • | ||||||||
libdiscid 0.3.1 | • | • | • | • | • | • | • | • | • | • | • | • | ||||||
libdiscid 0.4.0 | • | • | • | • | • | • | • | • | • | • | • | • | • | |||||
libdiscid 0.6.2 | • | • | • | • | • | • | • | • | • | • | • | • | • | • | • | • | • | |
libdiscid 0.6.3 | • | • | • | • | • | • | • | • | • | • | • | • | • | • | • | • | • | • |
The "read" feature can create an ID from a disc in the drive. Generic platform support was added in 0.4.0 and can only generate disc IDs with put() (without drive access). Put is also available for every platform where read is available. Only versions where new feature/platform support is implemented are listed.
Language Bindings
- C#/Mono/.NET - DotNetDiscId: bindings using a native libdiscid DLL (NuGet Package)
- D - https://gitlab.com/jmdavisprog/libdiscid
- Go - go-discid
- Hare - hare-discid
- Haskell - Hackage (GitHub)
- Java:
- Perl - http://search.cpan.org/dist/MusicBrainz-DiscID/ (GitHub)
- Python:
- python-discid, using ctypes (no compilation), Python 2 and 3
- python-libdiscid, using cython (compiled), Python 2 and 3
- python-musicbrainz2, deprecated, contains functions to access libdiscid using its own API, Python 2 only, no ISRCs
- Ruby - ruby-discid: Gem (Github)
- Rust:
Tools based on libdiscid
- Our tagger Picard that has a feature “Lookup by CD”
- Some of the ISRC submit tools that also support submitting Disc ID
Third party alternatives
- C#/Mono/.NET - MetaBrainz.MusicBrainz.DiscId (NuGet Package), a library which adds support for CD-TEXT retrieval, but does not currently support Solaris (no recent Mono, no .NET Core) or macOS (no machine available)
Tools based on third party alternatives
- mbdiscid, a command-line tool (written in Perl) that computes the Disc ID, and either prints it or submits it through a browser
- MetaBrainz.MusicBrainz.dotnet-mbdiscid (NuGet Package), a command-line tool (using the C#/Mono/.NET library
MetaBrainz.MusicBrainz.DiscId
) that shows information about an audio CD, including the Disc ID, CD-TEXT data, ISRC values…