is it normal for a trm lookup in database to find multiple files
? Why is this?
wheels
Imperfect matches.
Berkz
wheels: can 2 audio files actually have the same trm signature?
wheels
I would assume so.
Berkz: But remember -- you're usually working against comparing lossy audio to more lossy audio.
Berkz
how come they didn't use something like a md5 hash where no 2 files can have the same signature... ?
wheels
Berkz: Because then two files ripped on different machines would never match.
Berkz: Like if we both buy a CD and I rip it with LAME and you rip it with iTunes -- even though they're the same song at the same bitrate they wouldn't match.
Berkz
i c
good point
wheels
And of course md5 sums can be identical too. ;-)
That's the magic of TRM -- it's not completely deterministic. It would be pretty useless if it was.
Berkz
I think they can't be the same size and have the same sum unless it's exactly the same file..
wheels
Well, deterministic isn't the right word there, but I think the point was still clear. :-)
Berkz: Who said they had to be the same size?
Berkz: And statistically that's not possible. You can't reduce a gigbyte of data to a small hash without having a number of overlaps in possibilities in that gigbyte.
Berkz
my point is that md5 hash would be the perfect matchmaker cause then u could be sure if the file is the same size...
wheels
Berkz: Otherwise you would have just invented the world's best data compression. ;-)
Berkz
wheels: what app do you use for you id3 tagging
?
wheels
JuK
Berkz
me2
I just wish it would use part of the file name to compare to the "suggestions" from the musicbrainz server to preselect the "most likely" one...
wheels
Berkz: Well, there is a value for relevance that's returned by the TRM server, but I think that's currently ignored.
Berkz
being ignored by the client or server?
wheels
by JuK
But ideally that will be fixed in KDE 3.3.
Berkz
cool
have u tried amarok?
wheels
yes
Berkz
liked it?
wheels
Too flashy for me.
Berkz
haven't tried it yet. Really like juk
are you running the beta2?
wheels
CVS
Berkz
life on the edge :)
can you log into msn through kopete?
wheels
Don't know; don't care. ;-)
Berkz
o.k
wheels
I haven't updated in a few days anyway though...
Berkz
what distro?
wheels
a very old suse
But I meant KDE CVS.
Pipian
Hmm... I've found TRM to be a little more unique than might otherwise be expected.
Berkz
I know
Pipian
i wonder
if I did a TRM on all the files I've ripped myself
honestly how many of them would turn up correct positive matches?
wheels
Pipian: Well, right now I'm getting about 50% drops from the server.
Berkz
I'm currently running TRM through my collection.. 1/3 finds matches..
Pipian
Well
I've calculated TRM's for many of my rips thus far
wheels
Berkz: It used to be a lot higher -- but right now the server is overloaded and about half of the time just returns with an error.
Pipian
I wonder if I could rig up a program to check what TRMs that have been calculated DON'T match with existing TRM- searches
Berkz
Pipian: what bugs me is that when I find matches I find 2-5 matches and I have to select which one :)
Pipian
shame musicbrainz python doesn't work on Gentoo
blah
wheels
Berkz: Well, probably better than incorrectly tagging your music. :-)
Berkz
wheels: true
wheels
ruaok: does that seem about on par -- 50% of lookups failing lately? Or is the code I'm working on just really b0rked? :-)
Berkz
when using command : trm -m $filename.mp3 .. does the trm command contact the master server at all?
Pipian
*goes to emerge gcj so libffi installs*
ruaok
wheels: what kind of lookups?
wheels
ruaok: TRM
ruaok
yup.
there server is overloaded. :-(
Nothing we can do about it right now.
wheels
ruaok: yeah, that's what I assumed -- but it's scarry when debugging code. :-)
ruaok
I'm hoping to deploy a new server soon, but that won't help much.
ok, time to get off the computer for a bit. I need to relax a bit... OSCON was hard work.
ruaok is away: relax
Pipian
Grar
Pipian kicks Gentoo for not letting ctypes compile
Berkz
when using command : trm -m $filename.mp3 .. does the trm command contact the master server at all?
I thought the TRM would only make a TRM signature and dump it on the console?
wheels
Berkz: yes
Berkz
wheels: why does it need to contact the master server?
wheels: I thought it would only do that If I was to select the -lookup flag..
wheels
Berkz: I'm thinking that there's a wiki page that explains all of this...looking.
ruaok: I seem to be getting some strange values back from eResult for the type -- it's a value greater than any specified in the enum...
ruaok: As such I'm having trouble resolving collisions.
MacIntire
MacIntire is now known as bkdelong
Pipian
aha
I got a crappy ebuild of gcc-3.3.3-r6
that might explain why ctypes won't compile
wheels
Gotta love Gentoo. ;-)
Pipian
apparently it didn't have the right use flags
so it couldn't possibly compile gcj
which is what ffi is compiled for.
thus ctypes couldn't work
wheels still uses gcc 2.95. :-)
somnolent has quit
that's one way to go about it =P
wheels
ruaok: Oh, another thing that I meant to point out -- you might want to run some of the example thingers and whatnot under valgrind -- I ran into a couple of memory errors there.
Woohoo. And now it seems that things are working...
Pipian kicks emerge and tries to compile gcc... again... with gcj this time.
ruaok: Oh, and I know you're not here at the moment -- but queing questions for batch processing later... Under which circumstances will tr_GetResults() resturn something other than eTrackList for the type?
arudolph joined the channel
bramp has quit
bramp joined the channel
arudolph
Hi. Based on the supported calls, it seems that the exposed web-service API is meant for tagging files, not more general queries about the info in the db.
for example, there doesn't seem to be a good way to map artist->list of albums, even via a series of calls (unless one knows a track on an album to do FileInfoLookup
)
wheels
Which API specifically are you referring to?
arudolph
the api exposed at mq_2_1.pl
i.e. the set of rdf calls responded to by the server (or really, any exposed way to query data; but scraping the data from the artist page doesn't count)
for example, in Artist.pm (used to display the artists albums via the web pages), there's a query into the database to compile the list of albums by an artist, but there is no way for me to query this information without downloading a dump (which I have done), or scraping the web page
wheels unfortunately hasn't ever looked at the Perl API -- or really anything but the C API.
uh, well I mean there's a pretty direct mapping between the calls supported in the mb_server project and those in the mb_client project to which you refer
in particular, the list of queries I mentioned in the Server queries section of include/musicbrainz/queries.h
all the MBQ_FOO calls
whether you're using mb_client or some ad hoc rdf code (the latter being my approach), there's still no way to get list of albums by an artist
because the rdf api seems geared only toward the mb_client client, which is meant for tagging-applications...it just seems like a richer api could be exposed...there seems to be nowhere else for me to discuss such an idea/proposal
i mean it's essentially trivial to implement in mb_server, and adding it to mb_client is just writing some menial hooks
somniloquy joined the channel
MacIntire joined the channel
bkdelong has quit
Berkz has quit
real has quit
Pipian has quit
sbw has quit
Misirlou has quit
real joined the channel
Pipian joined the channel
Misirlou joined the channel
sbw joined the channel
MacIntire has quit
MacIntire joined the channel
arudolph has quit
MacIntire has quit
determinist joined the channel
determinist has quit
Knio_ joined the channel
Knio has quit
djce has quit
Pipian will finish up his TRM algorithm "uniqueness" tester tomorrow.
Pipian
(Cycles through all files cross-checking previously calculated but not-inserted-into-the-database-by-me TRMs against results in the database to figure out whether or not the algorithm results in more or less unique hits (Of course it may be offset by luck of people having the same encoding as me)
Will also be helpful in identifying TRMs to *add* =P