Closed GoogleCodeExporter closed 9 years ago
the number of seconds parameter needs to be at least 15 seconds, meaning only
15 seconds of the file is actually hashed. Obviously, you need to submit the
files first, before querying, so use 0 which will hash the whole file. Also,
after submitting files, make sure you send the table servers a SIGHUP signal
with: kill -s SIGHUP <pid>. Make sure the pid is the process id for the
tblservd that is running.
So, first submit all the files in your music collection directory:
./auscoutclient /path/to/audio/files/dir tcp://localhost:4005 2 0
Then to query the same files:
./auscoutclient /path/to/audio/files/dir tcp://localhost:4005 1 15.0
Original comment by starkd88@gmail.com
on 29 Mar 2011 at 3:25
It is alright for dur and part fields to be 0.
Original comment by starkd88@gmail.com
on 29 Mar 2011 at 3:27
[deleted comment]
Still not working. Maybe my server config is not right.
Here are my steps.
1. ./metadatadb -d /home/soleo/audioscout-read-only/audio.db
2. ./auscoutd -d tcp://localhost:4000
3. ./tblservd -s 192.168.10.36 -p 4005 -i /home/soleo/audiodb
192.168.10.36 is my PC's IP, and I only use one PC to do the testing. I can see
all
the three programs are running, but when I use auscoutclient to query my audio
files, It didn't show the debug info in logs.
Original comment by shaoxinj...@gmail.com
on 29 Mar 2011 at 5:34
[deleted comment]
I am reading the code and find client only send cmd, snbframes and hash, not
sending toggles. Is sending toggles(in function audiohash) necessary for
quering? Maybe it is the cause of the problem.
Original comment by shaoxinj...@gmail.com
on 29 Mar 2011 at 9:14
More information.
1. In Terminal shows the info below
(0) 02.mp3
1375 hash frames
Sending query ...
Recieved: not found
2. In syslog
Mar 29 17:52:09 soleo-desktop tblserv[2064]: SUBSCR: recieved
cmd=1,nb=1375,rows=0
Mar 29 17:52:09 soleo-desktop tblserv[2064]: WORKER40: do lookup for hash[1375]
Original comment by shaoxinj...@gmail.com
on 29 Mar 2011 at 9:59
I'm sorry. You need to send a USER1 signal (not SIGHUP) to tell the tblservd
to merge tables. The SIGHUP terminates the process. So, after adding the new
files:
kill -s USR1 <pid>
Another thing: when you turn on the tblservd, do this:
./tblservd -s localhost -p 4005 -i /home/soleo/audio.db
The 192.168.10.36 address is for other pc's on your lan to access that
interface. You want the localhost. This tells the tblservd the address on
which to contact the auscoutd.
To get logging, you need to pass the -l flag with the desired logging level
(e.g. -l 7 for full logging)
Original comment by starkd88@gmail.com
on 29 Mar 2011 at 4:15
Thank you. It works.
Original comment by shaoxinj...@gmail.com
on 30 Mar 2011 at 2:59
Original comment by eklin...@gmail.com
on 4 May 2011 at 3:04
Original issue reported on code.google.com by
shaoxinj...@gmail.com
on 29 Mar 2011 at 2:11