MCPcopy Create free account
hub / github.com/acoustid/chromaprint

github.com/acoustid/chromaprint @v1.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.6.0 ↗ · + Follow
4,771 symbols 9,872 edges 315 files 1,305 documented · 27% updated 29d agov1.6.0 · 2025-08-28★ 1,31729 open issues

Browse by type

Functions 3,560 Types & classes 1,211
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Chromaprint

Chromaprint is an audio fingerprint library developed for the AcoustID project. It's designed to identify near-identical audio and the fingerprints it generates are as compact as possible to achieve that. It's not a general purpose audio fingerprinting solution. It trades precision and robustness for search performance. The target use cases are full audio file identifcation, duplicate audio file detection and long audio stream monitoring.

Building

The most common way to build Chromaprint is like this:

$ cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TOOLS=ON .
$ make
$ sudo make install

This will build Chromaprint as a shared library and also include the fpcalc utility (which is used by MusicBrainz Picard, for example). For this to work, you will need to have the FFmpeg libraries installed.

See below for other options.

FFT Library

Chromaprint can use multiple FFT libraries -- FFmpeg, FFTW3, KissFFT or vDSP (macOS).

FFmpeg is preferred on all systems except for macOS, where you should use the standard vDSP framework. These are the fastest options.

FFTW3 can be also used, but this library is released under the GPL license, which makes also the resulting Chromaprint binary GPL licensed.

KissFFT is the slowest option, but it's distributed with a permissive license and it's very easy to build on platforms that do not have packaged versions of FFmpeg or FFTW3. We ship a copy of KissFFT, so if the build system is unable to find another FFT library it will use that as a fallback.

You can explicitly set which library to use with the FFT_LIB option. For example:

$ cmake -DFFT_LIB=kissfft .

FFmpeg

FFmpeg is as a FFT library and also for audio decoding and resampling in fpcalc. If you have FFmpeg installed in a non-standard location, you can use the FFMPEG_ROOT option to specify where:

$ cmake -DFFMPEG_ROOT=/path/to/local/ffmpeg/install .

While we try to make sure things work also with libav, FFmpeg is preferred.

API Documentation

You can use Doxygen to generate a HTML version of the API documentation:

$ make docs
$ $BROWSER docs/html/index.html

Unit Tests

The test suite can be built and run using the following commands:

$ cmake -DBUILD_TESTS=ON .
$ make check

In order to build the test suite, you will need the sources of the Google Test library.

Related Projects

Bindings, wrappers and reimplementations in other languages:

Integrations:

If you know about a project that is not listed here, but should be, please let me know.

Standing on the Shoulders of Giants

I've learned a lot while working on this project, which would not be possible without having information from past research. I've read many papers, but the concrete ideas implemented in this library are based on the following papers:

  • Yan Ke, Derek Hoiem, Rahul Sukthankar. Computer Vision for Music Identification, Proceedings of Computer Vision and Pattern Recognition, 2005. http://www.cs.cmu.edu/~yke/musicretrieval/

  • Frank Kurth, Meinard Müller. Efficient Index-Based Audio Matching, 2008. http://dx.doi.org/10.1109/TASL.2007.911552

  • Dalwon Jang, Chang D. Yoo, Sunil Lee, Sungwoong Kim, Ton Kalker. Pairwise Boosted Audio Fingerprint, 2009. http://dx.doi.org/10.1109/TIFS.2009.2034452

Core symbols most depended-on inside this repo

Shape

Method 2,239
Function 1,321
Class 1,178
Enum 33

Languages

C++93%
Python6%
C2%

Modules by API surface

src/3rdparty/googletest/googlemock/include/gmock/gmock-matchers.h470 symbols
src/3rdparty/googletest/googletest/src/gtest.cc339 symbols
src/3rdparty/googletest/googletest/test/gtest_unittest.cc260 symbols
src/3rdparty/googletest/googlemock/include/gmock/gmock-actions.h192 symbols
src/3rdparty/googletest/googletest/include/gtest/internal/gtest-port.h130 symbols
src/3rdparty/googletest/googletest/include/gtest/gtest.h129 symbols
src/3rdparty/googletest/googletest/include/gtest/internal/gtest-param-util.h115 symbols
src/3rdparty/googletest/googletest/include/gtest/internal/gtest-internal.h106 symbols
src/3rdparty/googletest/googlemock/test/gmock-actions_test.cc105 symbols
src/3rdparty/googletest/googletest/include/gtest/gtest-matchers.h99 symbols
src/3rdparty/googletest/googlemock/test/gmock-matchers-comparisons_test.cc94 symbols
src/3rdparty/googletest/googlemock/include/gmock/gmock-spec-builders.h92 symbols

For agents

$ claude mcp add chromaprint \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page