-
Notifications
You must be signed in to change notification settings - Fork 291
Windows CodeGen - "{\"error\":\"could not decode\" - #69
Comments
Same here tried it with a ".flac". I tried to convert the file to ".mp3" with ffmpeg to ensure it is readable and valid. Of course both the .flac and .mp3 is playable. Also on the .mp3 i got: {"response": {"status": {"version": "4.2", "code": 0, "message": "Success"}, "songs": [{"tag": 0, "error": "need codes in query for fingerprint matching"}]}} Any hints on this? |
I think i have found a decent hint: call: in the result you will get: Now just turn the filelist to: call again: And the result looks like the following: [ So i think this is a bug. Please verify if you are getting the same result. Regards |
Echonest will shutdown it's fingerprinting service on 5 Jan 2015. |
Thanks for this information! - And THEN?! Do you have a source of this bad news? |
There is some, Like Last.fm and Gracenote .. |
Anyway found the source by myself :( Thanks |
Hi
I was able to compile the windows code for codegen on Visual Studio 2013 in 32 bit configuration. Now when I run the codegen executable, I get the error:
[
{"error":"could not decode", "tag":0, "metadata":{"filename":"C:\Maid.mp3"}}
]
When I debug the code, it seems the issue is in the function -
codegen_response_t codegen_file(char filename, int start_offset, int duration, int tag)
at the following lines
int numSamples = pAudio->getNumSamples(); //In my code I get 0 samples
if (numSamples < 1) {
char* output = (char*) malloc(16384);
sprintf(output,"{"error":"could not decode", "tag":%d, "metadata":{"filename":"%s"}}",
My machine is a Windows 8.1 - X64.
I installed FFMPEG (32 bit) in the path and checked it invoking from command line and it identifies the command.
Please advise if there could be any other issue.
Thanks
Prabhat
The text was updated successfully, but these errors were encountered: