News for hackers. Stuff that matters.
Re:Show HN: Discover what songs were used in YouTube videos by tk42 on Monday March 09, 2015 @06:46AM (#9170208)
The user can paste a youtube url which will then be analysed, fingerprinted and matched against a database of 7+ million audio fingerprints. It does not only identify a single song but is able to identify multiple songs contained in a single file or video and generates a timeline listing which tracks it contains at which time.

Our matching algorithm is based on the open source echoprint-codegen fingerprinting method, which we have built our own stack around:

- Replaced Solr/Tokyo Tyrant with Elasticsearch

- Reimplemented matching-logic

- Crawlers search multiple sources for audio files to be indexed (mp3s arent stored long term, only fingerprinted then deleted)

- Indexing about 1 new track per second

- Found method to verify unrealiable ID3 tags (in progress, current database also includes unferified)

- mogilefs as primary data store for fingerprints

- perl everything

We also provide a free music identification API.

Any feedback would be much appreciated!

Re:Show HN: Discover what songs were used in YouTube videos by corobo on Monday March 09, 2015 @07:17AM (#9170302)
Does it include music from oft-used music sources in YouTube videos such as AudioMicro and Incompetech[1]? I'd guess it's not really possible on the AudioMicro front as they're paid-for music that'd cost you a fortune to index but may be worth adding the latter

[1] http://incompetech.com/music/royalty-free/

Re:Show HN: Discover what songs were used in YouTube videos by lucaspiller on Monday March 09, 2015 @07:26AM (#9170316)
Where do you get the MP3s from in the first place, and how long did it take to index 7 million?
Re:Show HN: Discover what songs were used in YouTube videos by mo0 on Monday March 09, 2015 @07:54AM (#9170407)
Crawling the internet for mp3s. It took us a couple of months to get to 7m.
Re:Show HN: Discover what songs were used in YouTube videos by tixocloud on Monday March 09, 2015 @11:40AM (#9171495)
That's an absolutely creative way of doing it! Congrats. I'm interested in how you did it. For example, how do you exactly "crawl the internet"? Did you have a bunch of sites that you've pre-selected and then just crawl those or did you actually follow through on links?

Thanks.

Re:Show HN: Discover what songs were used in YouTube videos by tk42 on Monday March 09, 2015 @02:29PM (#9172770)
One-click hosters and cloud hosters with sharing options(such as docs.google.com), several music streaming sites, usenet. Also the amount of mp3s hosted on regular webservers which are indexed by and easily found using the usual search engines is mindblowing
Re:Show HN: Discover what songs were used in YouTube videos by rubicon33 on Monday March 09, 2015 @12:33PM (#9171901)
I am also interested in knowing more specifics about your crawling process (if you can divulge).

Did you just crawl random sites and search for .mp3 content on them? Or did you have a set of pre-defined search sites to craw?

Re:Show HN: Discover what songs were used in YouTube videos by tomtoise on Monday March 09, 2015 @07:11AM (#9170289)
Until you posted this clarification, my first thought was - What makes it different from Shazam?

Thanks for clearing that up, good luck with your site!

Re:Show HN: Discover what songs were used in YouTube videos by unltd on Monday March 09, 2015 @07:21AM (#9170311)
I've worked on the echoprint-codegen algorithm for my current project ( trak.rocks ) and I'm curious about how you reimplemented the matching logic ?

Do you plan to document/opensource you work ?

Re:Show HN: Discover what songs were used in YouTube videos by mo0 on Monday March 09, 2015 @08:15AM (#9170470)
First we rewrote echonests truescore logic in perl and then altered slightly and implemented some extra checks to further try to exclude false positives. We also believe what they used in the late song/identify API might have been different from what is open sourced in https://github.com/echonest/echoprint-server

Also we pack each individual hash before storing in Elasticsearch and gained at least 50% storage space this way.

Our Fingerprint data is quite different from theirs(unreliable ID3 tags, N versions of same track) which is why we needed some tweaks. So far the matching is still far from perfect...

Whether we will open source the whole thing at some point we don't know yet.

Re:Show HN: Discover what songs were used in YouTube videos by brianwhitman on Monday March 09, 2015 @12:33PM (#9171905)
song/identify supported both ENMFP and Echoprint, and AFAIK the Echoprint matching path was exactly the same as is published on Github.

I know at some point we did adapt the Solr end (for example, we removed the N most occurring codes) for speed optimizations.

Many users of Echoprint in the wild have adapted the python matching logic for their use case as well as changed the hash update rate on the codegen. A great modification to watch was Sunlight Labs' "Ad Hawk", which ID'd commercials: https://github.com/sunlightlabs/adhawk

Re:Show HN: Discover what songs were used in YouTube videos by caractacus on Monday March 09, 2015 @09:24AM (#9170729)
When you say the matching is far from perfect, is that at your end or on the part of the echoprint / echonest code? You made tweaks because you found issues with what they were doing....?
Re:Show HN: Discover what songs were used in YouTube videos by tk42 on Monday March 09, 2015 @10:28AM (#9171073)
The reason for it being far from perfect is likely a combination of both. If the correct song is indexed there is a high probabiliy for us to find the right match. However if its not, with a bit of bad luck a false positive can happen easily with the default solution (and ours too). Also when analysing a youtube video it can happen that in a 30sec snippet only 10 secs are a matching song and 20 are unrealated or 15 are one matching song the other 15 match a different one in which case 2 tracks or multiple versions of 2 different tracks will have relatively OK scores. Deciding what to consider a match (or whether to try different queries for the same or slightly altered timespan prior to deciding) is not trivial in these cases and our changes are mostly concerning when a match will be considered a match by altering thresholds and how matching truescores will be looked at in relation to other fingerprints true scores. Due to issues like these, specifying a timeframe for analysis will often produce better results.

http://static.echonest.com/echoprint_ismir.pdf

Re:Show HN: Discover what songs were used in YouTube videos by samcrawford on Monday March 09, 2015 @09:17AM (#9170701)
Do you have any intuition for whether the echhoprint-codegen algorithm would be suitable for saying whether two voice recordings match? One would be a little lossy, the other pretty much perfect.
Re:Show HN: Discover what songs were used in YouTube videos by unltd on Monday March 09, 2015 @10:30AM (#9171079)
Echonest can work with voice but is optimized for music so you might encounter a lot of false positive with it. Check out the echonest board on google. It's a recurring topic.
Re:Show HN: Discover what songs were used in YouTube videos by GarethX on Monday March 09, 2015 @07:27AM (#9170321)
It'd be good to have an option to provide an email address which results could be sent to once it has them, rather than keep checking an open tab.
Re:Show HN: Discover what songs were used in YouTube videos by mo0 on Monday March 09, 2015 @07:42AM (#9170358)
Good idea we'll keep it in mind. Bookmarking the ident page and coming back later to check on results will work too
Re:Show HN: Discover what songs were used in YouTube videos by wingerlang on Monday March 09, 2015 @07:52AM (#9170394)
For anyone often wondering about music in songs I will recommend Shazaams OSX app. It sits in the menu bar and listens to music and if it recognises something it will send a notification and add it to a list [0].

Watching youtube video, movies or just having someone else play something and it usually finds it without problems.

It's a different use case than OPs app though, which is more on demand I guess.

[0] http://i.imgur.com/0At4lJ6.png

Re:Show HN: Discover what songs were used in YouTube videos by Kurtz79 on Monday March 09, 2015 @09:06AM (#9170650)
You can also use Siri on iOs 8 directly (it uses Shazaam as the backend service) .

http://www.cnet.com/how-to/siri-can-now-name-that-tune-via-i...

It works fairly well.

Re:Show HN: Discover what songs were used in YouTube videos by ToastyMallows on Monday March 09, 2015 @09:37AM (#9170783)
You can also do this with Google Now

http://www.greenbot.com/article/2873722/how-to-perform-song-...

Again, works fairly well.

Re:Show HN: Discover what songs were used in YouTube videos by Hates_ on Monday March 09, 2015 @07:55AM (#9170408)
Does it still have to listen through a mic or can it detect songs from internal audio now? I don't have any speakers and just use headphones.
Re:Show HN: Discover what songs were used in YouTube videos by unltd on Monday March 09, 2015 @10:26AM (#9171064)
Shazam Mac osx app is quite powerful. It doesn't only listen to your mic so it will detect the song even when the sound is off. Also it often detects a song playing in somebody's else headphones at our office. Kinda creepy sometimes.
Re:Show HN: Discover what songs were used in YouTube videos by wingerlang on Monday March 09, 2015 @08:13AM (#9170464)
I don't really know. It's hard to test since I have only headphones with mics.
Re:Show HN: Discover what songs were used in YouTube videos by DanBC on Monday March 09, 2015 @07:52AM (#9170396)
I love this. Thank you.

On a slight tangent: I'd love a client that could identify my MP3 collection, and rename it and retag it (under some kind of supervision). Ideally it'd do the dentification in a batchmode when it got Internet connectivity (but this is perhaps an unreasonable requirement). And to make it perfect it would let me listen to and delete tracks.

I have a huge unweildy collection of MP3s and I can't bring myself to just delete gigabytes of music.

Re:Show HN: Discover what songs were used in YouTube videos by IanCal on Monday March 09, 2015 @08:17AM (#9170475)
Have you tried picard: https://picard.musicbrainz.org/

I used it to tag a massive amount of partially labelled and mostly metadata-free music files some time ago and it worked a treat.

Re:Show HN: Discover what songs were used in YouTube videos by vidyesh on Monday March 09, 2015 @10:44AM (#9171152)
This is nice. Anything to tag TV Shows and Movies?
Re:Show HN: Discover what songs were used in YouTube videos by kraymer on Monday March 09, 2015 @07:58AM (#9170423)
have a look at beets <https://github.com/sampsyo/beets>, for the identification part it get its metadata from MusicBrainz/Discogs/filenames
Re:Show HN: Discover what songs were used in YouTube videos by Tunecrew on Monday March 09, 2015 @09:58PM (#9175533)
This is very interesting - I see this as an ideal concept to be paired with one of the existing commercial solutions, e.g. Shazam.

If you're indexing all the random and free stuff out there, you're picking up a lot of material that may have never been commercially released or has not been re-released digitally. At the same time, Shazam, YouTube ContentID, Apple's iTunes Match, etc. have access to an extremely large set of references which (more than you could have) contain 99% accurate metadata. ContentID definitely picks up multiple songs in mixes, as well as pitch changes, with a high degree of accuracy (assuming the master sound recording has been submitted to YouTube).

A submission system would be great too, or some way for persons to tag stuff themselves ala discogs, etc.

Re:Show HN: Discover what songs were used in YouTube videos by amelius on Monday March 09, 2015 @09:14AM (#9170686)
I think what we need most is a community-backed source of fingerprints. Because the authority-based approach only works well for popular songs (at least, that is my impression, based on frequently using commercial recognizing apps).
Re:Show HN: Discover what songs were used in YouTube videos by mlinksva on Monday March 09, 2015 @12:16PM (#9171783)
Re:Show HN: Discover what songs were used in YouTube videos by volker48 on Monday March 09, 2015 @07:53AM (#9170397)
YouTube already does this on some videos does anyone know how this technique differs?
Re:Show HN: Discover what songs were used in YouTube videos by mo0 on Monday March 09, 2015 @08:21AM (#9170487)
They display Audio info if tracks from the audioswap library were used: https://support.google.com/youtube/answer/94316?hl=en
Re:Show HN: Discover what songs were used in YouTube videos by unltd on Monday March 09, 2015 @07:28AM (#9170326)
Great Job !

Could you describe the usecases ? Is it for mixtapes uploaded on youtube by DJs, or Over-The-Air recognition in music festival videos ?

Because Music ( single tracks ) uploaded on youtube is usually already identified so it could be found.

Re:Show HN: Discover what songs were used in YouTube videos by scrapcode on Monday March 09, 2015 @07:39AM (#9170348)
One of the most common comments on YT videos I see are people asking for the name of the song used in a video.
Re:Show HN: Discover what songs were used in YouTube videos by pvaldes on Monday March 09, 2015 @05:18PM (#9174141)
Yes, is one of the archetypical creatures of internet. I bet that 99% of those people are lawyers... or maybe the author of the song.
Re:Show HN: Discover what songs were used in YouTube videos by mo0 on Monday March 09, 2015 @07:50AM (#9170380)
Music used in compilations, ads, intros etc are typical usecases. Mixtapes & livesets of course are also great. But when pitch/bpms have been altered more than 1-2% we currently get a lot of false positives. We are still working on finding a solution to this.
Re:Show HN: Discover what songs were used in YouTube videos by unltd on Monday March 09, 2015 @10:23AM (#9171045)
I think I've read on the echonest board that the most common solution is to index multiple pitch variants of the same songs. Apparently that's what Shazam does.

Also the guys from Trax-air.com are doing something pretty similar to you guys but with pitch/bpm bending support.

Re:Show HN: Discover what songs were used in YouTube videos by tk42 on Monday March 09, 2015 @03:24PM (#9173285)
So far we've been hesitant to go that route as the current 7m fingerprints come down to 42m+ documents in Lucene. I.e. If we were to save 20 versions of each fingerprint in different bpms we'd quickly have about a billion+ documents on our hands to be searched on every query (with ~1000-2000 hashes per document)
Re:Show HN: Discover what songs were used in YouTube videos by p0l4rb34r on Monday March 09, 2015 @07:51AM (#9170389)
I was thinking about this too but read before that the echonest fingerprinting doesn't handle pitch changes like Shazam.

Would be interested to know if you figured a way around that!

Re:Show HN: Discover what songs were used in YouTube videos by weavie on Monday March 09, 2015 @07:37AM (#9170344)
Mix tapes is an ideal use case.
Re:Show HN: Discover what songs were used in YouTube videos by huhtenberg on Monday March 09, 2015 @08:38AM (#9170541)
Tried with a couple of videos, went out to grab lunch and 30 minutes later it is still stuck (with the progress bar extending to the first t in "http://"). Sorry :-/
Re:Show HN: Discover what songs were used in YouTube videos by tk42 on Monday March 09, 2015 @09:49AM (#9170848)
Hug of death occured faster than expected :) scaling now
Re:Show HN: Discover what songs were used in YouTube videos by oxplot on Monday March 09, 2015 @10:33AM (#9171094)
OK, I'm not if this occurred to anyone else: how about a Shazam like app that can search "the Internet" by listening a few seconds on your mic?
Re:Show HN: Discover what songs were used in YouTube videos by DevFactor on Monday March 09, 2015 @12:12PM (#9171753)
That's awesome. Now could you figure out why my intro #2 video: https://www.youtube.com/watch?v=dosy8zOooUU&list=PLP6PvXLevG...

Gets flagged as copyrighted music even though there is no music?

So many YouTuber's would thank you for a service that did this.