worldveil / dejavu

Audio fingerprinting and recognition in Python
MIT License
6.36k stars 1.43k forks source link

Issue of connecting jack server or ALSA library error #171

Open dinhtunglam opened 5 years ago

dinhtunglam commented 5 years ago

Dear all, I am using Ubuntu 18.04. After setting up, I try to run the simple example.py: Here is the error log: mp3/Brad-Sucks--Total-Breakdown.mp3 already fingerprinted, continuing... mp3/Choc--Eigenvalue-Subspace-Decomposition.mp3 already fingerprinted, continuing... mp3/Josh-Woodward--I-Want-To-Destroy-Something-Beautiful.mp3 already fingerprinted, continuing... mp3/Sean-Fournier--Falling-For-You.mp3 already fingerprinted, continuing... mp3/The-Lights-Galaxia--While-She-Sleeps.mp3 already fingerprinted, continuing... From file we recognized: {'song_id': 2, 'song_name': 'Sean-Fournier--Falling-For-You', 'file_sha1': 'A9D18B9B9DAA467350D1B6B249C36759282B962E', 'confidence': 127443, 'offset_seconds': 0.0, 'match_time': 24.967190980911255, 'offset': 0}

Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock From mic with 5 seconds we recognized: {'song_id': 3, 'song_name': 'Josh-Woodward--I-Want-To-Destroy-Something-Beautiful', 'file_sha1': 'C6364099D8E0DC297956EC9D8B2AC1B83403D407', 'confidence': 1, 'offset_seconds': 155.29506, 'offset': 3344}

No shortcut, we recognized: {'song_id': 3, 'song_name': 'Josh-Woodward--I-Want-To-Destroy-Something-Beautiful', 'file_sha1': 'C6364099D8E0DC297956EC9D8B2AC1B83403D407', 'confidence': 127098, 'offset_seconds': 0.0, 'match_time': 24.81162190437317, 'offset': 0}

=> I suppose I have to turn on jack server, isn't it?

ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave Cannot lock down 82280346 byte memory area (Cannot allocate memory)

Have you ever encountered this issue?

NathanielCustom commented 5 years ago

I get all kinds of similar warnings. They don't appear to affect the performance/operation of the program, as such they are not required to be resolved.

There are ways (google) to change the /usr/share/alsa/alsa.conf file to get some of the ALSA warnings to clear if you must. I didn't specifically look for a way to stop the jack server warnings.