Closed caioketo closed 11 years ago
This is probably the cause of parshap/node-acoustid#1.
What are the files you've tried? Can you share one? Do they play in a player?
What happens if you run npm test
in the node_modules/fpcalc
project directory?
What happens if you use the fpcalc command-line tool on the file directly?
And what versions of node and fpcalc do you have installed?
That file is a mp3 file that I get from mp4 file (ffmpeg) from a video from youtube (music video) if you want, i can pass you one. When I run npm test it says: "> fpcalc@1.0.5 test /home/pi/node_modules/fpcalc
node test/test.js
module.js:340
throw err;
^
Error: Cannot find module 'tape'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.
When I try fpcalc command-line it says: " [mp3 @ 0xd091a0] Header missing ERROR: couldn't find stream information in the file ERROR: unable to calculate fingerprint for file stone.mp3, skipping"
When I run npm test it says:
Run npm install
first.
When I try fpcalc command-line it says:
It looks like something is wrong with the input file. This node fpcalc module just wraps the fpcalc command line tool, so if the tool failed to calculate the fingerprint something is wrong with either the input or the tool. I have not had any issues calculating fingerprints on a very large collection of audio files.
That said, you should still be getting an error object in the callback. I just pushed a new version of the module (1.0.6) with a few more sanity checks, can you update and try again?
The problem is in the file, mp3, got missing headers.
I tried with several files, and all returned empty object, and null err. Don't know what I'm doing wrong here.
fpcalc(file, function(err, result) { console.log(err); console.log(result); });