AcoustId Generator [MM3/MM4] v1.0 2012-01-28

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

AcoustId Generator [MM3/MM4] v1.0 2012-01-28

Postby booblers » Sat Jan 28, 2012 11:39 am

This script is based on Trixmoto's Generate PUID script. The framework of the script comes from his original but it has been updated to work with AcoustId.

Download: http://www.mediafire.com/file/dwjhzih0i ... MM3-4.mmip

The goal is essentially the same. To generate the unique identifiers related to AcoustId and store them in various places. There are some differences:

-The time to generate a fingerprint and save it to the various places is 1-2 seconds (depending on your system)
-You can choose to use Writetag to save the information to community standard "custom" tags.
-You can choose to save the information to SQL tables that can be used in other scripts (like my MusicBrainz NGS + AcoustId Tagger)
-You can choose to save the actual fingerprints and/or the associated unique identifiers
-You can enter a User API key and contribute to the AcoustId Database.

It is also still possible to save the AcoustId unique identified to an MM field of your choosing.

There are some caveats/warnings associated with writing the custom tags. You can read about them in the first post of the thread the MusicBrainz NGS tagger linked above.

I haven't tested this extensively on file formats that I don't use (like m4b, wma, etc) - I'm not sure how it will react in those situations. Please let me know how it does with those if you have any to test with. In principle one should be able to tag an entire library with the acoustid identifiers and then the MusicBrainz NGS tagger will detect the embedded tags and give you speedy results in the future.

Usage Notes:
Tools->Scripts->AcoustId Generator (after selecting the files you'd like to tag/analyze)

When testing new file formats you might want to leave logging on - but in general it should be off because it slows things down.

In order to cut down on requests the script is making batch requests to the Acoustid server. After fingerprinting 10 files (or reaching the end of the list) it will request unique ids from the server. This means that if you terminate the script you can lose up to 9 calculated fingerprints. Not a huge deal but someone might wonder why some weren't saved.
Last edited by booblers on Sat Jan 28, 2012 11:42 am, edited 1 time in total.
booblers
 
Posts: 97
Joined: Sat Sep 27, 2008 6:57 pm

Re: AcoustId Generator [MM3/MM4] v1.0 2012-01-28

Postby booblers » Sat Jan 28, 2012 11:39 am

reserved for faq
booblers
 
Posts: 97
Joined: Sat Sep 27, 2008 6:57 pm

Re: AcoustId Generator [MM3/MM4] v1.0 2012-01-28

Postby MMuser2011 » Thu Apr 05, 2012 1:49 am

If a track already contains the calculated fingerprint in the id3tag, do you skip this song or do you re-calculate the data?

Is there a possibility to read/import existing Fingerprints (+ID, +Duration) from tracks to "your" SQL table?
Magic Nodes v4.2 (2011-07-01) SQL Viewer v2.4 (2009-10-25)
ExternalTools v1.4 (2011-05-09) iTunesMonkey 1.0 + Acoustid
Calculate Cover Size v1.7 (2012-10-23) RegExp Find & Replace v4.3 (2011-07-06)
MMuser2011
 
Posts: 671
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

Re: AcoustId Generator [MM3/MM4] v1.0 2012-01-28

Postby mhendu » Tue Jul 23, 2013 12:25 am

It seems that songs I'm trying to tag with the AcoustID that are not in the database are not updating with an AcoustID now - I had this working on multiple PCs as of a week ago and now it's not working on any of them. Either my API key has been invalidated, the script needs to be updated or something's broken at AcoustID. It looks like AcoustID is continuing to receive submissions so it doesn't seem to be an issue on their end.

Any thoughts?
mhendu
 
Posts: 65
Joined: Thu Jan 12, 2006 11:18 am

Re: AcoustId Generator [MM3/MM4] v1.0 2012-01-28

Postby MMuser2011 » Tue Jul 23, 2013 3:19 am

To test if the service is running, you can call the "official" windows commandline tool fpcalc.exe with one of your audiofiles.
You should get the DURATION and the FINGERPRINT.

With the Values for DURATION and FINGERPRINT, you can make a call to the AcoustID webservice:
http://api.acoustid.org/v2/lookup?clien ... 0qUkZK4....
This client API-Key is for demonstration only!

If the service is running, you get back a JSON or XML response like this:
{
"status": "ok",
"results": [{
"id": "9ff43b6a-4f16-427c-93c2-92307ca505e0",
"score": 1.0
}]
}

For further informations, please have a look at: http://acoustid.org/webservice
Magic Nodes v4.2 (2011-07-01) SQL Viewer v2.4 (2009-10-25)
ExternalTools v1.4 (2011-05-09) iTunesMonkey 1.0 + Acoustid
Calculate Cover Size v1.7 (2012-10-23) RegExp Find & Replace v4.3 (2011-07-06)
MMuser2011
 
Posts: 671
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

Re: AcoustId Generator [MM3/MM4] v1.0 2012-01-28

Postby mhendu » Tue Jul 23, 2013 7:19 am

Thanks - I tested this with a song that's not in the database as far as I can tell and while I got a response it failed to return an id. I enabled logging for the script and it looks like the status is pending for the tracks I am trying to submit via the API. So I gather that basically things are working on my end but the service is failing to generate the AcoustID for these tracks, which usually it does within an hour or so but in this case it's been a few days.
mhendu
 
Posts: 65
Joined: Thu Jan 12, 2006 11:18 am

Re: AcoustId Generator [MM3/MM4] v1.0 2012-01-28

Postby MMuser2011 » Tue Jul 23, 2013 8:41 am

Are this missing tracks all available in MusicBrainz? What's about theyr duration?

If yes, you could ask Lukáš Lalinský in the Google Group: https://groups.google.com/forum/#!forum/acoustid if he can check this specific cases (provide the trackid from MusicBrainz)
Magic Nodes v4.2 (2011-07-01) SQL Viewer v2.4 (2009-10-25)
ExternalTools v1.4 (2011-05-09) iTunesMonkey 1.0 + Acoustid
Calculate Cover Size v1.7 (2012-10-23) RegExp Find & Replace v4.3 (2011-07-06)
MMuser2011
 
Posts: 671
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

Re: AcoustId Generator [MM3/MM4] v1.0 2012-01-28

Postby mhendu » Wed Jul 24, 2013 12:09 am

They're cleared up now - I reran the script today and all the tracks were tagged. Must've been a processing issue on their end. Hopefully not a recurring problem - I remember running into this type of issue with PUIDs in the past and at one point it was months before the tracks were tagged.
mhendu
 
Posts: 65
Joined: Thu Jan 12, 2006 11:18 am


Return to Need Help with Addons?

Who is online

Users browsing this forum: No registered users and 12 guests