dejavu
dejavu copied to clipboard
Wrong calculation of `offset_seconds` for non-default framerate
The offset_seconds
calculation uses the DEFAULT_FS even if the fingerprinted tracks have a different framerate (e.g. 48k)
nseconds = round(float(offset) / DEFAULT_FS * DEFAULT_WINDOW_SIZE * DEFAULT_OVERLAP_RATIO, 5)
Suggested solution: Store the framerate of the fingerprinted tracks in the database and use it for calculation.