GithubHelp home page GithubHelp logo

dominikschnitzer / musly Goto Github PK

View Code? Open in Web Editor NEW
136.0 136.0 27.0 1.09 MB

Musly - Music Similarity Library

Home Page: http://www.musly.org

License: Mozilla Public License 2.0

C++ 67.78% C 26.67% CMake 5.55%

musly's People

Contributors

dominikschnitzer avatar f0k avatar grray avatar kaixhin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

musly's Issues

Can musly run by IDE on windows?

dr.dominik,
can musly run on windows, i want to simulate it in Visual Studio. because it will be more convenient to debug for me.
a little guide will be helpful, thanks.

Comparing two mp3 files

Hello,
Is it possible to calculate whether two MP3 files are similar or not?
Thanks!
Markus

Build errors

I'm trying to build musly on Ubuntu 16.10. Got following error after cmake ..:

CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find LibAV (missing: LIBAV_ROOT_DIR) (Required is at least
  version "0.8")
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindLibAV.cmake:218 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:34 (find_package)

If i run it like this cmake .. -DLIBAV_ROOT_DIR=/usr then I get compile error

/usr/src/musly/libmusly/decoders/libav.cpp: In member function ‘virtual std::vector<float> musly::decoders::libav::decodeto_22050hz_mono_float(const string&, float, float)’:
/usr/src/musly/libmusly/decoders/libav.cpp:182:5: error: ‘AVCodecParameters’ was not declared in this scope
     AVCodecParameters *decp = st->codecpar;
     ^~~~~~~~~~~~~~~~~
/usr/src/musly/libmusly/decoders/libav.cpp:182:24: error: ‘decp’ was not declared in this scope
     AVCodecParameters *decp = st->codecpar;
                        ^~~~
/usr/src/musly/libmusly/decoders/libav.cpp:182:35: error: ‘AVStream {aka struct AVStream}’ has no member named ‘codecpar’; did you mean ‘codec’?
     AVCodecParameters *decp = st->codecpar;
                                   ^~~~~~~~
/usr/src/musly/libmusly/decoders/libav.cpp:190:53: error: ‘avcodec_parameters_to_context’ was not declared in this scope
     avret = avcodec_parameters_to_context(decx, decp);                                                     ^

If i force this branch in code https://github.com/dominikschnitzer/musly/blob/master/libmusly/decoders/libav.cpp#L176, than it compiles successfully, but I don't know how to fix this properly for PR.

installation error

Hi,Dr.schnitzer,

   I install musly step by step. But two errors orrured at the step "Execute make && make install to compile and install Musly", and these two errors occur everytime when i try to install musly in any PC :(.  
    The errors printed on my screen is showing below.

     Linking CXX executable musly
    ../libmusly/libmusly.so: undefined reference to `pthread_create'
    ../libmusly/libmusly.so: undefined reference to `pthread_join'
    collect2: ld returned 1 exit status
    make[2]: *** [musly/musly] 错误 1
     make[1]: *** [musly/CMakeFiles/musly.dir/all] 错误 2

    Didi i miss something?Please help~.

Getting an error message when running the sample commands

I have downloaded, built and installed the latest version as instructed on a ubuntu.

I've tried to run the example :

musly -N
musly -x mp3 -a /path/to/my/music
musly -p input.mp3

Creating a new collection and analyzing a directory worked fine (first and second command).
But the last command did not work.
I get the following output:

Installed audio decoder: libav
Reading collection file: collection.musly
Loaded 29 musly tracks to memory.
Initializing jukebox...
File not found in collection! Aborting.

Add a switch (-p) to musly to evaluate the performance

initialize all available methods and perform systematic performance timing tests of:

  • the feature extraction
  • similarity computation

output is preferably a computer readable format. Results could be put on the website.

compile failed.

I try to build musly on centOS. I installed eigen 3 and libav 0.8 successfully. But I met some problems when compiling musly:
/root/musly/musly-master/libmusly/decoders/libav.cpp: In member function âvirtual std::vector<float, std::allocator > musly::decoders::libav::decodeto_22050hz_mono_float(const std::string&, float, float)â:
/root/musly/musly-master/libmusly/decoders/libav.cpp:369: error: avcodec_free_frame was not declared in this scope
/root/musly/musly-master/libmusly/decoders/libav.cpp:403: error: avcodec_free_frame was not declared in this scope
/root/musly/musly-master/libmusly/decoders/libav.cpp:483: error: avcodec_free_frame was not declared in this scope

could you please give me some advise? thanks a lot!

Building errors and solutions on Windows

Environment:

Problems:

  • Could not find libAV resource in CMake
    ==> Force comment out the last 4 lines of <musly_git_root_path>/musly/cmake/FindLibAV.cmake and comment out version requirement of root CMakeList.txt

  • Lack of M_PI_2 Definitions
    ==> Manually define _USE_MATH_DEFINES in VS

  • Conflicts of win32's min/max macro
    ==> Manually define NOMINMAX in VS

  • <musly_git_root_path>/libmusly/method.cpp line 66, VS mark as "Non-const array length buffer_size"
    ==> Add const qualifier to buffer_size's declaration

  • After define NOMINMAX, all std::min/std::max in <musly_git_root_path>/libmusly/resampler.cpp are invalid then.
    ==> Add nessesary header, i.e. #include <algorithm> at begin of this file

  • <musly_git_root_path>/libmusly/decoders/libav.cpp line 290, VS mark as "unrecognized identifer and"
    ==> Use && instead

  • Redefinition of uint8_t in <musly_git_root_path>/libmusly/lib.cpp line 15 and VS's stdint.h header.
    ==> Comment out the former

  • When CMake option BUILD_STATIC is selected, the output libmusly.lib cannot be recognize in my project, VS hint unresolved symbol ....jukebox_poweron.., am I wrong?
    When this option is unselected, the output contains only 'libmusly.dll' and generate an error that musly_resample.lib not found.
    ==> No solution

Musly executable has no flag to remove a track

The command line program doesn't have a flag to remove an entry from the database, even though the library seemingly has a function for it. This feels like an unnecessary limitation.

All songs get the same "score".

I noticed that I would get the same recommendations no matter what seed song I used, which also happened to be the first k song in the database. I then used the -s flag to export a similarity matrix and realized that all "similarity coefficients" are the same, 0.724762.

Self test says: "100% tests passed, 0 tests failed out of 1".

I'm running Debian 9 and followed the build instructions, compilation was without problems except for 2 compiler warnings regarding avcodec deprecations. I'm using the last version available in the repo since v0.1 gave me a lot of errors that apparently had already been fixed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.