evanpurkhiser / keyfinder-cli Goto Github PK
View Code? Open in Web Editor NEWA CLI wrapper for libkeyfinder. Making DJs lives easier.
License: GNU General Public License v3.0
A CLI wrapper for libkeyfinder. Making DJs lives easier.
License: GNU General Public License v3.0
Hi guys,
Thanks for sharing your work. I am very interested in getting this cli version working in OSX (Mavericks: 10.9.5).
I'm not necessarily an Unix expert and wonder if you could give me some pointers/quick guide to get this to compile? (Dependencies/environment). When I try to run $make keyfinder_cli I get a host of missing includes. I tried adding keyfinderlib files and some of their dependencies but I keep getting a lot of errors and warnings.
These are some of the errors:
In file included from keyfinder_cli.cpp:10:
./libavutil/opt.h:727:61: error: ISO C++ forbids forward references to 'enum' types
int av_opt_set_pixel_fmt (void *obj, const char *name, enum AVPixelFormat fmt, int search_flags);
./libavcodec/libavutil/frame.h:477:10: error: ISO C++ forbids forward references to 'enum' types
enum AVColorPrimaries color_primaries;
^
./libavcodec/libavutil/frame.h:479:10: note: forward declaration of 'AVColorTransferCharacteristic'
enum AVColorTransferCharacteristic color_trc;
^
./libavutil/opt.h:727:61: note: forward declaration of 'AVPixelFormat'
int av_opt_set_pixel_fmt (void *obj, const char *name, enum AVPixelFormat fmt, int search_flags);
^
These are some of the errors ..
Thanks guys
Keyfinder is failing to build on arch linux becuase they've updated to the ffmpeg that has dropped seport for libavresample
https://travis-ci.com/EvanPurkhiser/PKGBUILDs/jobs/166961433
$ g++ -std=c++11 -Wall -lkeyfinder -lboost_system -lavcodec -lavformat -lavutil -lavresample -o keyfinder-cli keyfinder_cli.cpp -I. -I/usr/include -I/usr/local/include -L/usr/lib -L/usr/local/lib -lavresample
keyfinder_cli.cpp: In function ‘void fill_audio_data(const char*, KeyFinder::AudioData&)’:
keyfinder_cli.cpp:162:57: error: ‘av_frame_alloc’ was not declared in this scope
std::shared_ptr<AVFrame> audio_frame(av_frame_alloc(), &av_free);
^
keyfinder_cli.cpp:220:100: error: ‘avresample_convert_frame’ was not declared in this scope
if (avresample_convert_frame(resample_ctx_ptr, converted_frame.get(), audio_frame.get()) < 0)
I'm sure this is obvious for many devs, but it took me a minute to remember.
(And there was a time when I would never have figured it out...)
It would be helpful if you added "make install" to the readme.
As in, update it to say:
As long as these two dependencies are installed then you should be able to simply type:
$ make
$ make install
Thanks!
This way I can more easily catch when the build is no longer working due to changes in libkeyfinder.
I am using keyfinder-cli since almost a year and I like to add it as package to my distro, could you do a github release so I can create the package? (We should not create packages from git directly)
Jean-Louis
I get a ld: library not found for -lkeyfinder
when trying to make
.
I'm running El Capitan, have run qmake
, make
and make install
in libKeyFinder, even with the fixes mentioned in the other commit.
I have a DJ gig tomorrow, but I can't seem to build keyfinder-cli
.
Where can I find the files keyfinder.h and constants.h included in keyfinder.cpp?
Thanks
Hello,
i have trouble compiling wrapper under Ubuntu 14.04. Could you provide build instructions or dependencies and its versions?
I can succesfully compile libKeyfinder and keyfinder-cli on Ubuntu Bash (Windows Subsytem for Linux - WSL). It uses Ubuntu 18.04.2 LTS.
In the past I was able to successfully analyze files. Since reinstalling Windows, however I have issues when running keyfinder-cli:
$ keyfinder-cli test.mp3
Unable to decode packet
What can I do to fix it? Many thanks!
make
c++ keyfinder_cli.cpp -std=c++11 -Wall -lkeyfinder -lavcodec -lavformat -lavutil -lswresample -lfftw3 -o keyfinder-cli
keyfinder_cli.cpp:10:10: fatal error: 'libavutil/avutil.h' file not found
I have installed ffmpeg from homebrew. How can I force define ffmpeg include directory path? Because it can't find it
Hi guys,
I receive an error on make saying:
fatal error: keyfinder/keyfinder.h: No such file or directory
i installed libkeyfinder in /usr/lib/libkeyfinder but also in /usr/lib/keyfinder and /usr/lib/lkeyfinder
I'm on Debian GNU/Linux bookworm/sid
what am I doing wrong??
thanks rob
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.