dpwe / audfprint

Landmark-based audio fingerprinting
MIT License
536 stars 121 forks source link

can't run on wondows? #67

Open creboy opened 4 years ago

creboy commented 4 years ago

F:\dm\audio\audfprint-master>python audfprint.py new --dbase fpdbase.pklz 1.mp3 Wed Sep 18 11:32:54 2019 ingesting #0: 1.mp3 ... Error reading header info from F:\dm\audio\audfprint-master\1.mp3 Traceback (most recent call last): File "F:\dm\audio\audfprint-master\audio_read.py", line 216, in init self._get_info() File "F:\dm\audio\audfprint-master\audio_read.py", line 265, in _get_info raise ValueError("stream info not found") ValueError: stream info not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "F:\dm\audio\audfprint-master\audfprint_analyze.py", line 358, in wavfile 2peaks d, sr = audio_read.audio_read(filename, sr=self.target_sr, channels=1) File "F:\dm\audio\audfprint-master\audio_read.py", line 59, in audio_read return audio_read_ffmpeg(filename, sr, channels) File "F:\dm\audio\audfprint-master\audio_read.py", line 79, in audio_read_ffmp eg sample_rate=sr, channels=channels) as input_file: File "F:\dm\audio\audfprint-master\audio_read.py", line 218, in init raise ValueError("Error reading header info from " + filename) ValueError: Error reading header info from F:\dm\audio\audfprint-master\1.mp3

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 "F:\dm\audio\audfprint-master\audfprint_analyze.py", line 452, in ingest hashes = self.wavfile2hashes(filename) File "F:\dm\audio\audfprint-master\audfprint_analyze.py", line 400, in wavfile 2hashes peaks = self.wavfile2peaks(filename, self.shifts) File "F:\dm\audio\audfprint-master\audfprint_analyze.py", line 363, in wavfile 2peaks raise IOError(message) OSError: wavfile2peaks: Error reading 1.mp3

F:\dm\audio\audfprint-master>

creboy commented 4 years ago

1.mp3 in the same folder

dpwe commented 4 years ago

It's having a problem running ffmpeg on the mp3 file, or in parsing the results.

Can you run "ffmpeg -i 1.mp3" and paste the output here?

I'm running with ffmpeg version 2.5.4 and it's fine.

It's possible that there's a problem with 1.mp3, which should be evident from the ffmpeg info output.

DAn.

On Tue, Sep 17, 2019 at 11:38 PM creboy notifications@github.com wrote:

1.mp3 in the same folder

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dpwe/audfprint/issues/67?email_source=notifications&email_token=AAEGZUKNATIGWCXLK664A3DQKGPCPA5CNFSM4IXYUYSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD66WARA#issuecomment-532504644, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEGZULJYSS5A3B6IWWNWPLQKGPCPANCNFSM4IXYUYSA .

xuboot commented 2 years ago

ffmpeg 2.5.4 has no windwos version, are you running in a linux system, I also encountered this problem

xuboot commented 2 years ago

ffmpeg 2.5.4没有windwos版本,你是在linux系统下运行的,我也遇到这个问题