Split fingerprinting - #87
thesunlover wants to merge 2 commits into
Conversation
|
this is the updated version of the previous pull request |
|
You don't consider the offset_seconds. |
|
@wangzhengyi 👍 |
|
Any news on merging this with the master branch? dejavu is almost unusable on low memory machines - even the example mp3 files give out of memory errors when trying to fingerprint on a 512MB machine :( (and relying on swap is a disaster on this machine - its only storage is a memory card). Thanks |
|
The solution that worked for me to get the offsets correct is to (A) extract the offset (in seconds) as defined by the split file name (ex. start_sec60_end_sec120.mp3), (B) convert the seconds value to the equivalent sampling offset value, and (C) add the derived sampling offset value to the offset as determined by the fingerprinting process for the given file. Note: I am using a different fork so some of the smaller details may be different ex. database.py naming. (A) Extract Offset Data & (B) Extract Offset Data Iterate and Pass the Value (C) Apply Offset |
test_fingerprint_by_splitting.py creates long file from the existing files in mp3/.
to fingerprint with a length check you should use
djv.fingerprint_with_duration_check(long_song, song_name="Concatenates_test")
as shown in the split-test file