bLight
Registered User
Registered User
Posts: 39
Joined: Wed Jan 11, 2017 2:42 pm

Re: New Audio Hashing technique and sample application (with source code)

Thu Feb 23, 2017 9:48 pm

I will add a checkbox that will remove the debug fields form the output once you've finalized on what fields will not be used.

I don't understand the hash lookup and "At the moment this will search both Hash1 and Hash2 for a result".

Lets summarize:
1. We have two hash types, Hash1 (start of file) and Hash2 (end of file).
2. You can only compare Hash1 to Hash1 and Hash2 to Hash2.
3. Comparing Hash1 to Hash2 will always result in a false positive as they are taken from different positions in the file, there's no reason we should try matching them.
4. When searching for a hash, the client needs to send both Hash1 and Hash2

Code: Select all

Something like:

http://www.theaudiodb.com/api/v1/json/{APIKEY}/search-hash.php?h1={Hash1}&h2={Hash2}
  or
http://www.theaudiodb.com/api/v1/json/{APIKEY}/search-hash.php?h={Hash1},{Hash2}

Whatever is easier for you.


DB Logic:

1. Check if Hash1 in DB
Yes: return Result, Success.
No:
2. Check if Hash2 in DB
Yes: return Result, Success.
No: return Null, Failure.

If you have CPU cycles to spare, you can scan for Hash2 even if Hash1 is successful and return a value that specifies if one or both hashes were matched, giving the client more control of what to use.

User avatar
zag
Site Admin
Site Admin
Posts: 1228
Joined: Wed Jun 06, 2012 9:19 am
Country: United Kingdom

Re: New Audio Hashing technique and sample application (with source code)

Fri Feb 24, 2017 11:03 am

Thanks, perfectly explained.

Code: Select all

http://www.theaudiodb.com/api/v1/json/{APIKEY}/search-hash.php?h1={Hash1}&h2={Hash2}

http://www.theaudiodb.com/api/v1/json/1 ... B8090D16CB

NOTE: At the moment both hashes are required and must each be 16 characters long

bLight
Registered User
Registered User
Posts: 39
Joined: Wed Jan 11, 2017 2:42 pm

Re: New Audio Hashing technique and sample application (with source code)

Fri Feb 24, 2017 7:04 pm

Cool, I'll add the code to zoomplayer's AudioDB plugin early next week and we'll see how well it performs.

User avatar
zag
Site Admin
Site Admin
Posts: 1228
Joined: Wed Jun 06, 2012 9:19 am
Country: United Kingdom

Re: New Audio Hashing technique and sample application (with source code)

Mon Feb 27, 2017 3:10 pm

I've imported 30,000 tracks now to our hashing database, all looking good.

You can see an example of a popular track. Already 6 hashes :)

http://www.theaudiodb.com/track/32724185

Thanks to all who sent in their AudioHash.xml files!

I'll keep adding more hashes from my own large library.

User avatar
zag
Site Admin
Site Admin
Posts: 1228
Joined: Wed Jun 06, 2012 9:19 am
Country: United Kingdom

Re: New Audio Hashing technique and sample application (with source code)

Tue Feb 28, 2017 4:29 pm

New landing page about hashing

http://www.theaudiodb.com/hashing.php

What we really need now is the sourcecode converted to c++ and a few other languages :)

This will mean other software developers take it up and we widen the hash database. 70,000 hashes already!

bLight
Registered User
Registered User
Posts: 39
Joined: Wed Jan 11, 2017 2:42 pm

Re: New Audio Hashing technique and sample application (with source code)

Wed Mar 01, 2017 10:57 am

I'm about half way writing the Zoom Player scraper plugin, it already seems to work, except my music collection somewhat sucks.

I'll post the code to GitHub once it's ready.

User avatar
zag
Site Admin
Site Admin
Posts: 1228
Joined: Wed Jun 06, 2012 9:19 am
Country: United Kingdom

Re: New Audio Hashing technique and sample application (with source code)

Sun Mar 05, 2017 7:21 pm

Nice, no rush.

I've imported about 155,000 song hashes now. I focused particularly on the artists in our music charts.

bLight
Registered User
Registered User
Posts: 39
Joined: Wed Jan 11, 2017 2:42 pm

Re: New Audio Hashing technique and sample application (with source code)

Mon Mar 06, 2017 3:26 pm

I finished my initial coding for the Zoom Player scraper based on TheAudioDB.com API, you can find the Delphi source code here:
https://github.com/bLightZP/Delphi-thea ... ng-plug-in

I will be releasing the scraper as part of the next beta version.

User avatar
zag
Site Admin
Site Admin
Posts: 1228
Joined: Wed Jun 06, 2012 9:19 am
Country: United Kingdom

Re: New Audio Hashing technique and sample application (with source code)

Wed Mar 08, 2017 9:57 am

Cool lets see how it goes.

165,000 hashes now after a few members of the Kodi forum submitted their collections.

bLight
Registered User
Registered User
Posts: 39
Joined: Wed Jan 11, 2017 2:42 pm

Re: New Audio Hashing technique and sample application (with source code)

Wed Mar 08, 2017 6:37 pm

Have you decided on which fields to remove from the hashing tool? I would like to update and make sure everyone is comfortable with the details it scrapes.

Return to “Developers”