trogan42 / audioscout

Automatically exported from code.google.com/p/audioscout
GNU General Public License v3.0
0 stars 0 forks source link

metadatadb: invalid option -- 'i' #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When i execute its showing errors
./metadatadb -i /path/to/database/file/audio.db

metadatadb: invalid option -- 'i'
auscoutd [options]
options:
-d --db              name of the path to the db sql file - mandatory
-p --port            port to bind on - default 4000
-n --threads         number worker threads (default 10)
-w --wd              working directory for the server
-l --level           log level, 0-7 as defined in syslog.h
-v --verbose         print more -- not implemented
-h --help            print this usage
?  --help            print this usage

Ho to execute metadatadb?

Original issue reported on code.google.com by j.deep...@gmail.com on 18 Sep 2012 at 10:11

GoogleCodeExporter commented 8 years ago
Did you create a database file with the audiodb.sql schema?

Use the sqlite3 program: sqlite3 audio.db
                         .read audiodb.sql

Also, specify which port to run it on: -p 4000

Original comment by starkd88@gmail.com on 18 Sep 2012 at 3:17

GoogleCodeExporter commented 8 years ago
All process are running now.
But what ever input (wav,mp3) its displaying error. Is there any way to give 
input files.
auscoutd[4679]: WORKER7 ERR: bad request, skipping

Original comment by j.deep...@gmail.com on 20 Sep 2012 at 10:40

GoogleCodeExporter commented 8 years ago
The option on the metadatadb server is -d /path/to/sql/index/file/mdata.db

Make sure the directory file from which the audio files are taken contains 
nothing but audio files.  It might be trying to open a file that is not audio.

Original comment by starkd88@gmail.com on 20 Sep 2012 at 4:09

GoogleCodeExporter commented 8 years ago
Directory contains only mp3 files
In client its printing

(0) 1.mp3
    1850 hash frames

Sending metadata:    1.mp3              0  0  0

Recieved: id = 0
***************************************************

(1) 2.mp3
    1397 hash frames

Sending metadata:    2.mp3              0  0  0

Recieved: id = 0
***************************************************

SERVER

Sep 21 12:52:52 graphics auscoutd[3010]: WORKER0 ERR: bad request, skipping
Sep 21 12:52:52 graphics auscoutd[3010]: cmd=2,nb=1850, #036  1.mp3  #036     
#036  #036  #036  #036 0 #036 0 #036 0, to table -2009001328
Sep 21 12:52:52 graphics auscoutd[3010]: WORKER1: send reply, id = 0
Sep 21 12:52:56 graphics auscoutd[3010]: WORKER4: inconsitent msg size=38
Sep 21 12:52:56 graphics auscoutd[3010]: WORKER4 ERR: bad request, skipping
Sep 21 12:52:56 graphics auscoutd[3010]: cmd=2,nb=1397, #036  2.mp3  #036     
#036  #036  #036  #036 0 #036 0 #036 0, to table -2009001328
Sep 21 12:52:56 graphics auscoutd[3010]: WORKER3: send reply, id = 0

Can you please help out

Original comment by j.deep...@gmail.com on 21 Sep 2012 at 7:25

GoogleCodeExporter commented 8 years ago
what is the command line you are using to invoke the auscoutclient program?

copy/paste the arguments. 

Original comment by starkd88@gmail.com on 21 Sep 2012 at 3:36

GoogleCodeExporter commented 8 years ago
./metadatadb -d /home/deep/audi/trunk/audio.db -l 7
./auscoutd -d tcp://localhost:4005 -l 7
./tblservd -s localhost -p 4005 -i /home/deep/audi/trunk/audio.db

./auscoutclient test/ tcp://localhost:4005 1 10 100

Have build with mpg123 support

Original comment by j.deep...@gmail.com on 21 Sep 2012 at 5:20

GoogleCodeExporter commented 8 years ago
That command is for querying, not submitting.  
this is the command for submitting files:

./auscoutclient <srcdir> <addr> <cmd> <nsecs> <nbtoggles>

cmd = 1 is for query, 2 is for submit.
nsecs is first no. secs to take from the start of file, 0 is for whole file.
nbtoggles is just for queries. It can be anywhere from 0 to 12. For 
submissions, 
            it should be 0.  

Original comment by starkd88@gmail.com on 21 Sep 2012 at 5:53

GoogleCodeExporter commented 8 years ago
yeah tried but giving that error. i am running on a 64 bit ubuntu 12

Sep 21 12:52:52 graphics auscoutd[3010]: WORKER0 ERR: bad request, skipping
Sep 21 12:52:52 graphics auscoutd[3010]: cmd=2,nb=1850, #036  1.mp3  #036     
#036  #036  #036  #036 0 #036 0 #036 0, to table -2009001328
Sep 21 12:52:52 graphics auscoutd[3010]: WORKER1: send reply, id = 0
Sep 21 12:52:56 graphics auscoutd[3010]: WORKER4: inconsitent msg size=38
Sep 21 12:52:56 graphics auscoutd[3010]: WORKER4 ERR: bad request, skipping
Sep 21 12:52:56 graphics auscoutd[3010]: cmd=2,nb=1397, #036  2.mp3  #036     
#036  #036  #036  #036 0 #036 0 #036 0, to table -2009001328
Sep 21 12:52:56 graphics auscoutd[3010]: WORKER3: send reply, id = 0

Original comment by j.deep...@gmail.com on 21 Sep 2012 at 5:59