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

what should be the format of mp3 files ? audfprint.py not working #74

Open
ksharm50 opened this issue Jan 17, 2020 · 1 comment
Open

Comments

@ksharm50
Copy link

PS Z:\experimental_codebase\audio_fingerprint> python audfprint.py new --dbase fpdbase.pklz Z:\experimental_codebase\audio_fingerprint\Fingerprint_files*.mp3
Fri Jan 17 12:51:15 2020 ingesting #0: Z:\experimental_codebase\audio_fingerprint\Fingerprint_files*.mp3 ...
Z:\experimental_codebase\audio_fingerprint\Fingerprint_files*.mp3 not found.
Traceback (most recent call last):
File "Z:\experimental_codebase\audio_fingerprint\audfprint_analyze.py", line 358, in wavfile2peaks
d, sr = audio_read.audio_read(filename, sr=self.target_sr, channels=1)
File "Z:\experimental_codebase\audio_fingerprint\audio_read.py", line 59, in audio_read
return audio_read_ffmpeg(filename, sr, channels)
File "Z:\experimental_codebase\audio_fingerprint\audio_read.py", line 79, in audio_read_ffmpeg
sample_rate=sr, channels=channels) as input_file:
File "Z:\experimental_codebase\audio_fingerprint\audio_read.py", line 195, in init
raise ValueError(filename + " not found.")
ValueError: Z:\experimental_codebase\audio_fingerprint\Fingerprint_files*.mp3 not found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "audfprint.py", line 504, in
main(sys.argv)
File "audfprint.py", line 487, in main
strip_prefix=args['--wavdir'])
File "audfprint.py", line 180, in do_cmd
dur, nhash = analyzer.ingest(hash_tab, filename)
File "Z:\experimental_codebase\audio_fingerprint\audfprint_analyze.py", line 452, in ingest
hashes = self.wavfile2hashes(filename)
File "Z:\experimental_codebase\audio_fingerprint\audfprint_analyze.py", line 400, in wavfile2hashes
peaks = self.wavfile2peaks(filename, self.shifts)
File "Z:\experimental_codebase\audio_fingerprint\audfprint_analyze.py", line 363, in wavfile2peaks
raise IOError(message)
OSError: wavfile2peaks: Error reading Z:\experimental_codebase\audio_fingerprint\Fingerprint_files*.mp3
PS Z:\experimental_codebase\audio_fingerprint>

@dpwe
Copy link
Owner

dpwe commented Jan 17, 2020 via email

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