beetbox / pyacoustid

Python bindings for Chromaprint acoustic fingerprinting and the Acoustid Web service
MIT License
325 stars 66 forks source link

Fingerprint error #17

Closed avatar29A closed 10 years ago

avatar29A commented 10 years ago

Hi. Try use fpcalc.py

python fpcalc.py /home/warlock/Music/orig.mp3

It's ok.

python fpcalc.py /home/warlock/Music/orig.mp3 -raw

Exception:

Traceback (most recent call last): File "fpcalc.py", line 57, in main() File "fpcalc.py", line 47, in main raw_fp = chromaprint.decode_fingerprint(fp)[0] File "/home/warlock/Documents/pyacoustid-master/chromaprint.py", line 135, in decode_fingerprint ctypes.byref(algorithm), 1 if base64 else 0 File "/home/warlock/Documents/pyacoustid-master/chromaprint.py", line 81, in _check raise FingerprintError() chromaprint.FingerprintError

Lib libchromaprint-tools has been installed.

Please help. Thnks.

lalinsky commented 10 years ago

Old version of chromaprint has a bug in that it returns error code from chromaprint_decode_fingerprint even though it was successful. Upgrading to the latest version should fix that.

However, if you have libchromaprint-tools installed, you can use fpcalc instead of fpcalc.py.

avatar29A commented 10 years ago

Thnks, it's work. :+1: