In order to set up the keyfinder command line tool in Ubuntu 20.04
- start by cloning/downloading the following: https://github.com/evanpurkhiser/keyfinder-cli
as requested here https://github.com/evanpurkhiser/keyfinder-cli#building,
- install ffmpeg
- follow the instructions at https://github.com/mixxxdj/libkeyfinder/ to clone and install libkeyfinder (make sure to install it at root (/) so that it will be detected by keyfinder-cli (note that you can verify the number of CPU cores by typing
lscpu, listed under CPU(s))
then you will need to install libav codec related stuff, since ffmpeg doesn't handle it the way keyfinder-cli requires it:
- as noted here https://rodic.fr/blog/libavcodec-tutorial-decode-audio-file/, you can simply do
apt install libavcodec-dev libavformat-dev libavutil-dev libswresample-dev
once this is done, head to the keyfinder-cli folder you cloned and follow the remaining instructions listed here: https://github.com/evanpurkhiser/keyfinder-cli#building
Now, keyfinder-cli should work as a command anywhere in your linux command line.