Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match timestamps are not accurate #58

Closed
dannykopping opened this issue Feb 21, 2019 · 2 comments
Closed

Match timestamps are not accurate #58

dannykopping opened this issue Feb 21, 2019 · 2 comments

Comments

@dannykopping
Copy link

Hey @dpwe - great lib!

I'm struggling with a bit of an issue, I'm hoping you can shed some light on it.

Here's a screenshot of an audio file I've authored with 3 clips interwoven at various points in the timeline:
image

The bottom track is where I've inserted some audio markers (jingles in my case). You can see markers at roughly 03:45, 06:45 and 11:20.

These are the commands I used, and the result I received:

➜  audio-fingerprinting rm fpdbase.pklz; python3 audfprint/audfprint.py new --dbase fpdbase.pklz samples/JingleMultiple.mp3 -n30
Thu Feb 21 23:41:25 2019 ingesting #0: samples/JingleMultiple.mp3 ...
Added 77002 hashes (30.9 hashes/sec)
Processed 1 files (2488.7 s total dur) in 11.7 s sec = 0.005 x RT
Saved fprints for 1 files ( 77002 hashes) to fpdbase.pklz (0.00% dropped)
➜  audio-fingerprinting python3 audfprint/audfprint.py match --dbase fpdbase.pklz samples/jingle.wav -n30 -x4 -R                       
Thu Feb 21 23:41:54 2019 Reading hash table fpdbase.pklz
Read fprints for 1 files ( 77002 hashes) from fpdbase.pklz (0.00% dropped)
Thu Feb 21 23:41:56 2019 Analyzed #0 samples/jingle.wav of 5.851 s to 403 hashes
Matched    0.7 s starting at    0.9 s in samples/jingle.wav to time  308.4 s in samples/JingleMultiple.mp3 with    31 of   117 common hashes at rank  0
Matched    1.4 s starting at    0.4 s in samples/jingle.wav to time  226.3 s in samples/JingleMultiple.mp3 with    24 of   117 common hashes at rank  0
Matched    1.0 s starting at    0.5 s in samples/jingle.wav to time   27.2 s in samples/JingleMultiple.mp3 with    21 of   117 common hashes at rank  0
Processed 1 files (6.0 s total dur) in 2.2 s sec = 0.373 x RT

Now, I would've expected matches at (roughly) 225s, 405s and 685s respectively, but the matches are not in the correct place at all. There's nothing in the original track (i.e. not the markers inserted) that is even remotely close to the marker, so I'm not sure where these numbers are coming from.

Any assistance would be greatly appreciated!

@dpwe
Copy link
Owner

dpwe commented Feb 22, 2019 via email

@dannykopping
Copy link
Author

Appreciate the swift response @dpwe.
That indeed did the trick! I must've missed that final paragraph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants