dejavu icon indicating copy to clipboard operation
dejavu copied to clipboard

Wrong calculation of `offset_seconds` for non-default framerate

Open rstrobl opened this issue 3 years ago • 0 comments

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.

rstrobl avatar Mar 07 '21 10:03 rstrobl