fakeflac icon indicating copy to clipboard operation
fakeflac copied to clipboard

Only relies on cutoff?

Open yakuv0 opened this issue 2 years ago • 3 comments

was wondering if the tool only has cutoff as rely, even though this is the case, it returns 100 on files with -16k cutoff Screen Shot 2023-01-06 at 1 49 26 PM

yakuv0 avatar Jan 06 '23 10:01 yakuv0

The script only relies on cutoff to determine whether a low band filter was applied as part of a MPEG compression algorithm. There is nothing else the script does. I'm not experienced enough to read your picture nor do I know what a "-16k" cutoff is. I have no idea what compression was applied or what you wanted the script to detect. If you uncomment the "matplotlib.pyplot" line in the script you can see the frequency diagram and understand better what the script has seen and why it reported what it did.

NB: If you upload a (partial, 10 sec max) audio file I can analyze it for you and give you a better reply.

mevdschee avatar Jan 06 '23 11:01 mevdschee

@mevdschee this is what i wanted to make sure of and now you confirmed that it has no other relies. the file (tst0_upsampled.flac) has a cut off below 16000hz and still returns 100. tst.zip

plot figure Figure_1

the image attached earlier is a spectrogram of the file which shows frequency loudness over time. spectrogram

added a second file tst1_upsampled.flac in the zip if you'd like to have a look at, case is different where it has dynamic cutoffs.

really appreciate it.

yakuv0 avatar Jan 06 '23 13:01 yakuv0

from this article mentioned in the README.md Detecting 'fake' FLAC files : 'The Nyquist theory says you need to have a double sampling frequency in a discrete signal processing system (e.g. 40Khz)' which makes spectrogram and plots has same concept with doubled sampling frequency for plots, 16000 (16khz) = 32000 on plot.

yakuv0 avatar Jan 06 '23 13:01 yakuv0