worldveil / dejavu

Audio fingerprinting and recognition in Python
MIT License
6.36k stars 1.43k forks source link

Does the audio format listened to by dejavu have to be the same as the one I want to recognise? #235

Open fengzstrong opened 4 years ago

fengzstrong commented 4 years ago

Please help me.

Xuenew commented 3 years ago

测试可以mp3和mp4进行比较,不用音频格式都相同。个人会进行后缀的统一修改,都用.mp3

outhud commented 2 years ago

They don't have to be the same codec. I believe dejavu uses ffmpeg to decode to wav before fingerprinting and recognising.

However, from my own experience, I find that they do need to be the same sample rate. A track fingerprinted by dejavu from a 48kHz version of an mp3 will not match with a 44.1kHz version of the same song. Open to correction on that though.