Hello All!
I'm using madmom for a chord recognition script I'm working on. I have it working fine locally on my Mac OSX, but when I attempt to use it on my CentOS 6.9 server it is only partially working. As long as it doesn't need to fall back on FFMPEG it runs fine (with the occasional memory error). However, if I give it any mp3 file (or wav file that doesn't match madmom's basic wav requirements) I get the error message shown below. FFMPEG is definitely installed and definitely added to the $PATH variable. It is in the /usr/bin folder and the user Python is using can run on that folder.
I'm fairly confident the Python and madmom installation is correct since I can get it to work with a basic wav file. It seems to be that it isn't recognizing the FFMPEG install. Any thoughts? Is there a way to specify the path to FFMPEG in a madmom variable so it finds it?
Any help greatly appreciated. I've been hacking away for about a week. Thanks so much!
-Ben
[root@s166-62-42-100 Python-2.7.11]# python chord-recognition.py box-of-rain.mp3
Traceback (most recent call last):
File "chord-recognition.py", line 10, in <module>
chordArray = chordrec(sys.argv[1])
File "/usr/local/lib/python2.7/site-packages/madmom-0.15.dev0-py2.7-linux-x86_64.egg/madmom/processors.py", line 128, in __call__
return self.process(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/madmom-0.15.dev0-py2.7-linux-x86_64.egg/madmom/processors.py", line 336, in process
data = _process((processor, data, kwargs))
File "/usr/local/lib/python2.7/site-packages/madmom-0.15.dev0-py2.7-linux-x86_64.egg/madmom/processors.py", line 200, in _process
return process_tuple[0](*process_tuple[1:-1], **process_tuple[-1])
File "/usr/local/lib/python2.7/site-packages/madmom-0.15.dev0-py2.7-linux-x86_64.egg/madmom/processors.py", line 128, in __call__
return self.process(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/madmom-0.15.dev0-py2.7-linux-x86_64.egg/madmom/processors.py", line 336, in process
data = _process((processor, data, kwargs))
File "/usr/local/lib/python2.7/site-packages/madmom-0.15.dev0-py2.7-linux-x86_64.egg/madmom/processors.py", line 200, in _process
return process_tuple[0](*process_tuple[1:-1], **process_tuple[-1])
File "/usr/local/lib/python2.7/site-packages/madmom-0.15.dev0-py2.7-linux-x86_64.egg/madmom/processors.py", line 128, in __call__
return self.process(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/madmom-0.15.dev0-py2.7-linux-x86_64.egg/madmom/audio/signal.py", line 909, in process
return Signal(data, **args)
File "/usr/local/lib/python2.7/site-packages/madmom-0.15.dev0-py2.7-linux-x86_64.egg/madmom/audio/signal.py", line 743, in __new__
dtype=dtype)
File "/usr/local/lib/python2.7/site-packages/madmom-0.15.dev0-py2.7-linux-x86_64.egg/madmom/audio/signal.py", line 631, in load_audio_file
raise LoadAudioFileError(error)
madmom.audio.signal.LoadAudioFileError: "All attempts to load audio file 'box-of-rain.mp3' failed. Try installing ffmpeg (or avconv on Ubuntu Linux)."