Difference between revisions of "libdiscid"

From MusicBrainz Wiki
(Link to D bindings)
(Direct links to packages for .NET, Ruby and Rust bindings, added rust-discid-sys)
Line 54: Line 54:
 
==Language bindings==
 
==Language bindings==
  
* Ruby - [https://github.com/phw/ruby-discid ruby-discid]
+
* Ruby - ruby-discid: [https://rubygems.org/gems/discid Gem] ([https://github.com/phw/ruby-discid Github])
 
* Perl - [http://search.cpan.org/dist/MusicBrainz-DiscID/ http://search.cpan.org/dist/MusicBrainz-DiscID/] ([https://github.com/njh/perl-musicbrainz-discid GitHub])
 
* Perl - [http://search.cpan.org/dist/MusicBrainz-DiscID/ http://search.cpan.org/dist/MusicBrainz-DiscID/] ([https://github.com/njh/perl-musicbrainz-discid GitHub])
 
* Java:
 
* Java:
Line 64: Line 64:
 
** ''[[python-musicbrainz2]], deprecated, contains functions to access libdiscid using its own API, Python 2 only, no ISRCs''
 
** ''[[python-musicbrainz2]], deprecated, contains functions to access libdiscid using its own API, Python 2 only, no ISRCs''
 
* Haskell - [http://hackage.haskell.org/package/MusicBrainz-libdiscid Hackage] ([https://github.com/atwupack/MusicBrainz-libdiscid GitHub])
 
* Haskell - [http://hackage.haskell.org/package/MusicBrainz-libdiscid Hackage] ([https://github.com/atwupack/MusicBrainz-libdiscid GitHub])
* .NET/Mono - [https://github.com/phw/dotnet-discid dotnet-discid]
+
* .NET/Mono - DotNetDiscId: [https://www.nuget.org/packages/DotNetDiscId NuGet package] ([https://github.com/phw/dotnet-discid GitHub])
* Rust - [https://github.com/phw/discid-rs/ discid-rs]
+
* Rust:
 +
** rust-discid: [https://crates.io/crates/discid Crate] ([https://github.com/phw/rust-discid/ GitHub]), safe wrapper around rust-discid-sys
 +
** rust-discid-sys: [https://crates.io/crates/discid-sys Crate] ([https://github.com/phw/rust-discid-sys/ GitHub]), unsafe FFI bindings, in most cases you should use rust-discid instead
 
* D - [https://gitlab.com/jmdavisprog/libdiscid https://gitlab.com/jmdavisprog/libdiscid]
 
* D - [https://gitlab.com/jmdavisprog/libdiscid https://gitlab.com/jmdavisprog/libdiscid]
  

Revision as of 15:31, 6 May 2019

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:

Compiled packages:

Changes:

Feature Matrix

Linux Windows Mac (k)FreeBSD Open/NetBSD Solaris generic
read mcn isrc read mcn isrc read mcn isrc read mcn isrc read mcn isrc 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

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

Tools based on libdiscid

  • ISRC#Resources, many ISRC submit tools are based on libdiscid or one of the bindings and can be used to add disc IDs and ISRCs.
  • Picard uses libdiscid to calculate the disc ID (lookup by CD)

See also