/pyofa

Python Wrapper for MusicDNS (libofa)

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

pyofa: Python Wrapper for MusicDNS (libofa)

pyofa is a simple Python wrapper around the MusicDNS technology provided by MusicIP for generating PUIDs (audio fingerprints) from audio files (e.g. MP3, M4A, etc.).

On Ubuntu, this means installing the following packages (9.04, updated on [2009-05-13]):

pkg-config
python-mutagen
libavcodec-dev
libavformat-dev
liba52-dev
libmp3lame-dev
libx264-dev
libxvidcore-dev

You will need your own MusicDNS key to use this package. You simply provide it to the getpuid() function. You register for a key here:

http://www.musicip.com/dns/key.jsp

A Mercurial repository can be found at:

http://github.com/blais/pyofa

To build the dynlibs:

python setup.py config

In order for this to work, it should say "yes" for both ofa and avcodec. Then, to build and install:

python setup.py build_ext --inplace
python setup.py install

or to build an RPM (with AVCodec/FFMPEG and OFA enabled):

python setup.py bdist_rpm

Ubuntu, here are the list of packages you need to install:

# apt-get install python-mutagen libavcodec-dev libavformat-dev libofa0-dev

This code is distributed under the GNU General Public License;

Martin Blais <blais@furius.ca> (using the code of Lukáš Lalinský)

Note

Lukáš is the author of the great majority of the code, I just repackaged and simplified it outside of Picard because I wanted to write scripts using MusicDNS without a GUI application.