dpwe/audfprint

Reducing dependencies

Opened this issue · 1 comments

Hey, you have made a great algorithm. I have one need that is to eliminate the ffmpeg dependency. Is there a way i can avoid using that package or use an alternate library which does not use ffmpeg in the background. Thanks !!

dpwe commented

OK, I just added a HAVE_FFMPEG flag to the top of audio_read.py. If you set this to False, the FFMPEG code is skipped and instead sound files are read with scipy.io.wavread. However this means that only WAV format sound files are supported (no MP3 etc), and they must already be at the system sampling rate (--samplerate, 11025 Hz by default), since we use ffmpeg to do our resampling.